golden hour
/var/softaculous/sitepad/editor/site-admin/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
accordion.js
2.89 KB
Del
OK
accordion.min.js
835 B
Del
OK
admin-custom.js
5.28 KB
Del
OK
bootstrap.min.js
56.71 KB
Del
OK
code-editor.js
11.32 KB
Del
OK
code-editor.min.js
3.09 KB
Del
OK
color-picker.js
9.59 KB
Del
OK
color-picker.min.js
3.44 KB
Del
OK
comment.js
2.73 KB
Del
OK
comment.min.js
1.22 KB
Del
OK
common.js
41.77 KB
Del
OK
common.min.js
15.02 KB
Del
OK
custom-background.js
3.27 KB
Del
OK
custom-background.min.js
1.12 KB
Del
OK
customize-controls.js
283.99 KB
Del
OK
customize-controls.min.js
109.36 KB
Del
OK
customize-nav-menus.js
106.46 KB
Del
OK
customize-nav-menus.min.js
45.38 KB
Del
OK
edit-comments.js
27.89 KB
Del
OK
edit-comments.min.js
14.72 KB
Del
OK
editor-expand.js
41.48 KB
Del
OK
editor-expand.min.js
13.2 KB
Del
OK
editor.js
44.25 KB
Del
OK
editor.min.js
13.12 KB
Del
OK
gallery.js
5.51 KB
Del
OK
gallery.min.js
3.75 KB
Del
OK
image-edit.js
28.61 KB
Del
OK
image-edit.min.js
9.99 KB
Del
OK
inline-edit-post.js
15.93 KB
Del
OK
inline-edit-post.min.js
7.16 KB
Del
OK
inline-edit-tax.js
7.52 KB
Del
OK
inline-edit-tax.min.js
2.82 KB
Del
OK
iris.min.js
23.05 KB
Del
OK
language-chooser.js
875 B
Del
OK
language-chooser.min.js
374 B
Del
OK
link.js
3.79 KB
Del
OK
link.min.js
1.61 KB
Del
OK
media-gallery.js
1.19 KB
Del
OK
media-gallery.min.js
537 B
Del
OK
media-upload.js
3.38 KB
Del
OK
media-upload.min.js
1.1 KB
Del
OK
media.js
5.11 KB
Del
OK
media.min.js
1.82 KB
Del
OK
nav-menu.js
41.48 KB
Del
OK
nav-menu.min.js
20.75 KB
Del
OK
password-strength-meter.js
3.1 KB
Del
OK
password-strength-meter.min.js
769 B
Del
OK
post.js
36.51 KB
Del
OK
post.min.js
17.88 KB
Del
OK
postbox.js
11.49 KB
Del
OK
postbox.min.js
4.09 KB
Del
OK
revisions.js
33 KB
Del
OK
revisions.min.js
17.51 KB
Del
OK
set-post-thumbnail.js
843 B
Del
OK
set-post-thumbnail.min.js
533 B
Del
OK
svg-painter.js
5.39 KB
Del
OK
svg-painter.min.js
2.35 KB
Del
OK
tags-box.js
10.83 KB
Del
OK
tags-box.min.js
3.07 KB
Del
OK
tags-suggest.js
5.12 KB
Del
OK
tags-suggest.min.js
2.12 KB
Del
OK
tags.js
4.25 KB
Del
OK
tags.min.js
1.67 KB
Del
OK
theme.js
53.11 KB
Del
OK
theme.min.js
25.99 KB
Del
OK
trail.js
4.39 KB
Del
OK
updates.js
78.62 KB
Del
OK
updates.min.js
34.96 KB
Del
OK
user-profile.js
11.96 KB
Del
OK
user-profile.min.js
6.17 KB
Del
OK
user-suggest.js
2.27 KB
Del
OK
user-suggest.min.js
679 B
Del
OK
word-count.js
7.51 KB
Del
OK
word-count.min.js
1.47 KB
Del
OK
wp-fullscreen-stub.js
680 B
Del
OK
wp-fullscreen-stub.min.js
331 B
Del
OK
xfn.js
7.53 KB
Del
OK
xfn.min.js
3.42 KB
Del
OK
Edit: custom-background.js
/** * @output wp-admin/js/custom-background.js */ /* global ajaxurl */ /** * Registers all events for customizing the background. * * @since 3.0.0 * * @requires jQuery */ (function($) { $(document).ready(function() { var frame, bgImage = $( '#custom-background-image' ); /** * Instantiates the WordPress color picker and binds the change and clear events. * * @since 3.5.0 * * @returns {void} */ $('#background-color').wpColorPicker({ change: function( event, ui ) { bgImage.css('background-color', ui.color.toString()); }, clear: function() { bgImage.css('background-color', ''); } }); /** * Alters the background size CSS property whenever the background size input has changed. * * @since 4.7.0 * * @returns {void} */ $( 'select[name="background-size"]' ).change( function() { bgImage.css( 'background-size', $( this ).val() ); }); /** * Alters the background position CSS property whenever the background position input has changed. * * @since 4.7.0 * * @returns {void} */ $( 'input[name="background-position"]' ).change( function() { bgImage.css( 'background-position', $( this ).val() ); }); /** * Alters the background repeat CSS property whenever the background repeat input has changed. * * @since 3.0.0 * * @returns {void} */ $( 'input[name="background-repeat"]' ).change( function() { bgImage.css( 'background-repeat', $( this ).is( ':checked' ) ? 'repeat' : 'no-repeat' ); }); /** * Alters the background attachment CSS property whenever the background attachment input has changed. * * @since 4.7.0 * * @returns {void} */ $( 'input[name="background-attachment"]' ).change( function() { bgImage.css( 'background-attachment', $( this ).is( ':checked' ) ? 'scroll' : 'fixed' ); }); /** * Binds the event for opening the WP Media dialog. * * @since 3.5.0 * * @returns {void} */ $('#choose-from-library-link').click( function( event ) { var $el = $(this); event.preventDefault(); // If the media frame already exists, reopen it. if ( frame ) { frame.open(); return; } // Create the media frame. frame = wp.media.frames.customBackground = wp.media({ // Set the title of the modal. title: $el.data('choose'), // Tell the modal to show only images. library: { type: 'image' }, // Customize the submit button. button: { // Set the text of the button. text: $el.data('update'), /* * Tell the button not to close the modal, since we're * going to refresh the page when the image is selected. */ close: false } }); /** * When an image is selected, run a callback. * * @since 3.5.0 * * @returns {void} */ frame.on( 'select', function() { // Grab the selected attachment. var attachment = frame.state().get('selection').first(); // Run an AJAX request to set the background image. $.post( ajaxurl, { action: 'set-background-image', attachment_id: attachment.id, size: 'full' }).done( function() { // When the request completes, reload the window. window.location.reload(); }); }); // Finally, open the modal. frame.open(); }); }); })(jQuery);
Save