golden hour
/var/www/nanshen/wp-includes/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin-bar.js
10.88 KB
Del
OK
admin-bar.min.js
6.61 KB
Del
OK
autosave.js
15.78 KB
Del
OK
autosave.min.js
5.23 KB
Del
OK
backbone.min.js
18.59 KB
Del
OK
colorpicker.js
28.4 KB
Del
OK
colorpicker.min.js
16.14 KB
Del
OK
comment-reply.js
1.2 KB
Del
OK
comment-reply.min.js
755 B
Del
OK
crop
-
Del
OK
customize-base.js
15.25 KB
Del
OK
customize-base.min.js
6.45 KB
Del
OK
customize-loader.js
4.18 KB
Del
OK
customize-loader.min.js
2.48 KB
Del
OK
customize-models.js
5.74 KB
Del
OK
customize-models.min.js
3.36 KB
Del
OK
customize-preview-widgets.js
3.64 KB
Del
OK
customize-preview-widgets.min.js
1.74 KB
Del
OK
customize-preview.js
3.48 KB
Del
OK
customize-preview.min.js
1.82 KB
Del
OK
customize-views.js
5.34 KB
Del
OK
customize-views.min.js
2.88 KB
Del
OK
heartbeat.js
18.52 KB
Del
OK
heartbeat.min.js
4.75 KB
Del
OK
hoverIntent.js
4.82 KB
Del
OK
hoverIntent.min.js
1.06 KB
Del
OK
imgareaselect
-
Del
OK
jcrop
-
Del
OK
jquery
-
Del
OK
json2.js
17 KB
Del
OK
json2.min.js
2.87 KB
Del
OK
masonry.min.js
30.31 KB
Del
OK
mce-view.js
17 KB
Del
OK
mce-view.min.js
7.01 KB
Del
OK
media-audiovideo.js
21.93 KB
Del
OK
media-audiovideo.min.js
11.92 KB
Del
OK
media-editor.js
27.87 KB
Del
OK
media-editor.min.js
9.46 KB
Del
OK
media-models.js
34.55 KB
Del
OK
media-models.min.js
11.46 KB
Del
OK
media-views.js
157.75 KB
Del
OK
media-views.min.js
78.25 KB
Del
OK
mediaelement
-
Del
OK
plupload
-
Del
OK
quicktags.js
18.61 KB
Del
OK
quicktags.min.js
8.83 KB
Del
OK
shortcode.js
10.21 KB
Del
OK
shortcode.min.js
2.49 KB
Del
OK
swfobject.js
9.99 KB
Del
OK
swfupload
-
Del
OK
thickbox
-
Del
OK
tinymce
-
Del
OK
tw-sack.js
4.85 KB
Del
OK
tw-sack.min.js
3.19 KB
Del
OK
underscore.min.js
13.98 KB
Del
OK
utils.js
3.98 KB
Del
OK
utils.min.js
1.67 KB
Del
OK
wp-ajax-response.js
3.04 KB
Del
OK
wp-ajax-response.min.js
2 KB
Del
OK
wp-auth-check.js
3.01 KB
Del
OK
wp-auth-check.min.js
1.61 KB
Del
OK
wp-backbone.js
10.17 KB
Del
OK
wp-backbone.min.js
2.93 KB
Del
OK
wp-list-revisions.js
914 B
Del
OK
wp-list-revisions.min.js
562 B
Del
OK
wp-lists.js
10.91 KB
Del
OK
wp-lists.min.js
7.13 KB
Del
OK
wp-pointer.js
6.45 KB
Del
OK
wp-pointer.min.js
3.53 KB
Del
OK
wp-util.js
3.08 KB
Del
OK
wp-util.min.js
977 B
Del
OK
wpdialog.js
435 B
Del
OK
wpdialog.min.js
237 B
Del
OK
wplink.js
14.66 KB
Del
OK
wplink.min.js
8.06 KB
Del
OK
zxcvbn-async.js
502 B
Del
OK
zxcvbn-async.min.js
317 B
Del
OK
zxcvbn.min.js
682.35 KB
Del
OK
Edit: customize-preview.js
(function( exports, $ ){ var api = wp.customize, debounce; debounce = function( fn, delay, context ) { var timeout; return function() { var args = arguments; context = context || this; clearTimeout( timeout ); timeout = setTimeout( function() { timeout = null; fn.apply( context, args ); }, delay ); }; }; api.Preview = api.Messenger.extend({ /** * Requires params: * - url - the URL of preview frame */ initialize: function( params, options ) { var self = this; api.Messenger.prototype.initialize.call( this, params, options ); this.body = $( document.body ); this.body.on( 'click.preview', 'a', function( event ) { event.preventDefault(); self.send( 'scroll', 0 ); self.send( 'url', $(this).prop('href') ); }); // You cannot submit forms. // @todo: Allow form submissions by mixing $_POST data with the customize setting $_POST data. this.body.on( 'submit.preview', 'form', function( event ) { event.preventDefault(); }); this.window = $( window ); this.window.on( 'scroll.preview', debounce( function() { self.send( 'scroll', self.window.scrollTop() ); }, 200 )); this.bind( 'scroll', function( distance ) { self.window.scrollTop( distance ); }); } }); $( function() { api.settings = window._wpCustomizeSettings; if ( ! api.settings ) return; var preview, bg; preview = new api.Preview({ url: window.location.href, channel: api.settings.channel }); preview.bind( 'settings', function( values ) { $.each( values, function( id, value ) { if ( api.has( id ) ) api( id ).set( value ); else api.create( id, value ); }); }); preview.trigger( 'settings', api.settings.values ); preview.bind( 'setting', function( args ) { var value; args = args.slice(); if ( value = api( args.shift() ) ) value.set.apply( value, args ); }); preview.bind( 'sync', function( events ) { $.each( events, function( event, args ) { preview.trigger( event, args ); }); preview.send( 'synced' ); }); preview.bind( 'active', function() { if ( api.settings.nonce ) preview.send( 'nonce', api.settings.nonce ); }); preview.send( 'ready' ); /* Custom Backgrounds */ bg = $.map(['color', 'image', 'position_x', 'repeat', 'attachment'], function( prop ) { return 'background_' + prop; }); api.when.apply( api, bg ).done( function( color, image, position_x, repeat, attachment ) { var body = $(document.body), head = $('head'), style = $('#custom-background-css'), update; update = function() { var css = ''; // The body will support custom backgrounds if either // the color or image are set. // // See get_body_class() in /wp-includes/post-template.php body.toggleClass( 'custom-background', !! ( color() || image() ) ); if ( color() ) css += 'background-color: ' + color() + ';'; if ( image() ) { css += 'background-image: url("' + image() + '");'; css += 'background-position: top ' + position_x() + ';'; css += 'background-repeat: ' + repeat() + ';'; css += 'background-attachment: ' + attachment() + ';'; } // Refresh the stylesheet by removing and recreating it. style.remove(); style = $('<style type="text/css" id="custom-background-css">body.custom-background { ' + css + ' }</style>').appendTo( head ); }; $.each( arguments, function() { this.bind( update ); }); }); }); })( wp, jQuery );
Save