/
home
/
techb158
/
public_html
/
wp-includes
/
js
/
/home/techb158/public_html/wp-includes/js
mkdir
upload
Name
Size
Mode
Actions
codemirror/
-
0777
rm
crop/
-
0777
rm
dist/
-
0777
rm
imgareaselect/
-
0777
rm
jcrop/
-
0777
rm
jquery/
-
0777
rm
mediaelement/
-
0777
rm
plupload/
-
0777
rm
swfupload/
-
0777
rm
thickbox/
-
0777
rm
tinymce/
-
0777
rm
admin-bar.js
10549
0666
edit
dl
rm
admin-bar.min.js
3487
0666
edit
dl
rm
api-request.js
3324
0666
edit
dl
rm
api-request.min.js
1023
0666
edit
dl
rm
autosave.js
22476
0666
edit
dl
rm
autosave.min.js
5807
0666
edit
dl
rm
backbone.js
80436
0666
edit
dl
rm
backbone.min.js
24314
0666
edit
dl
rm
clipboard.js
26807
0666
edit
dl
rm
clipboard.min.js
9009
0666
edit
dl
rm
colorpicker.js
29083
0666
edit
dl
rm
colorpicker.min.js
16498
0666
edit
dl
rm
comment-reply.js
12383
0666
edit
dl
rm
comment-reply.min.js
2950
0666
edit
dl
rm
customize-base.js
25822
0666
edit
dl
rm
customize-base.min.js
7852
0666
edit
dl
rm
customize-loader.js
7903
0666
edit
dl
rm
customize-loader.min.js
3551
0666
edit
dl
rm
customize-models.js
6821
0666
edit
dl
rm
customize-models.min.js
3681
0666
edit
dl
rm
customize-preview-nav-menus.js
15024
0666
edit
dl
rm
customize-preview-nav-menus.min.js
5033
0666
edit
dl
rm
customize-preview-widgets.js
23253
0666
edit
dl
rm
customize-preview-widgets.min.js
7820
0666
edit
dl
rm
customize-preview.js
28597
0666
edit
dl
rm
customize-preview.min.js
11011
0666
edit
dl
rm
customize-selective-refresh.js
33335
0666
edit
dl
rm
customize-selective-refresh.min.js
10693
0666
edit
dl
rm
customize-views.js
5222
0666
edit
dl
rm
customize-views.min.js
2567
0666
edit
dl
rm
heartbeat.js
24052
0666
edit
dl
rm
heartbeat.min.js
5947
0666
edit
dl
rm
hoverintent-js.min.js
1718
0666
edit
dl
rm
hoverIntent.js
7225
0666
edit
dl
rm
hoverIntent.min.js
1499
0666
edit
dl
rm
imagesloaded.min.js
5520
0666
edit
dl
rm
json2.js
31
0666
edit
dl
rm
json2.min.js
35
0666
edit
dl
rm
masonry.min.js
24138
0666
edit
dl
rm
mce-view.js
25849
0666
edit
dl
rm
mce-view.min.js
9770
0666
edit
dl
rm
media-audiovideo.js
24717
0666
edit
dl
rm
media-audiovideo.min.js
12049
0666
edit
dl
rm
media-editor.js
29460
0666
edit
dl
rm
media-editor.min.js
11092
0666
edit
dl
rm
media-grid.js
27752
0666
edit
dl
rm
media-grid.min.js
13686
0666
edit
dl
rm
media-models.js
44085
0666
edit
dl
rm
media-models.min.js
13338
0666
edit
dl
rm
media-views.js
273089
0666
edit
dl
rm
media-views.min.js
110741
0666
edit
dl
rm
quicktags.js
22601
0666
edit
dl
rm
quicktags.min.js
11132
0666
edit
dl
rm
shortcode.js
10758
0666
edit
dl
rm
shortcode.min.js
2643
0666
edit
dl
rm
swfobject.js
0
0666
edit
dl
rm
swfobject.min.js
35
0666
edit
dl
rm
tw-sack.js
4970
0666
edit
dl
rm
tw-sack.min.js
3288
0666
edit
dl
rm
twemoji.js
37180
0666
edit
dl
rm
twemoji.min.js
19848
0666
edit
dl
rm
underscore.js
68873
0666
edit
dl
rm
underscore.min.js
19012
0666
edit
dl
rm
utils.js
4665
0666
edit
dl
rm
utils.min.js
1864
0666
edit
dl
rm
wp-ajax-response.js
3903
0666
edit
dl
rm
wp-ajax-response.min.js
2571
0666
edit
dl
rm
wp-api.js
46994
0666
edit
dl
rm
wp-api.min.js
14682
0666
edit
dl
rm
wp-auth-check.js
4444
0666
edit
dl
rm
wp-auth-check.min.js
1689
0666
edit
dl
rm
wp-backbone.js
15241
0666
edit
dl
rm
wp-backbone.min.js
3039
0666
edit
dl
rm
wp-custom-header.js
10465
0666
edit
dl
rm
wp-custom-header.min.js
4442
0666
edit
dl
rm
wp-embed-template.js
6779
0666
edit
dl
rm
wp-embed-template.min.js
3174
0666
edit
dl
rm
wp-embed.js
3214
0666
edit
dl
rm
wp-embed.min.js
1251
0666
edit
dl
rm
wp-emoji-loader.js
13357
0666
edit
dl
rm
wp-emoji-loader.min.js
2977
0666
edit
dl
rm
wp-emoji-release.min.js
22752
0666
edit
dl
rm
wp-emoji.js
8792
0666
edit
dl
rm
wp-emoji.min.js
2855
0666
edit
dl
rm
wp-list-revisions.js
970
0666
edit
dl
rm
wp-list-revisions.min.js
597
0666
edit
dl
rm
wp-lists.js
25315
0666
edit
dl
rm
wp-lists.min.js
7521
0666
edit
dl
rm
wp-pointer.js
10233
0666
edit
dl
rm
wp-pointer.min.js
3621
0666
edit
dl
rm
wp-sanitize.js
1622
0666
edit
dl
rm
wp-sanitize.min.js
402
0666
edit
dl
rm
wp-tooltip.js
1555
0666
edit
dl
rm
wp-tooltip.min.js
530
0666
edit
dl
rm
wp-util.js
4689
0666
edit
dl
rm
wp-util.min.js
1431
0666
edit
dl
rm
wpdialog.js
569
0666
edit
dl
rm
wpdialog.min.js
281
0666
edit
dl
rm
wplink.js
21240
0666
edit
dl
rm
wplink.min.js
11317
0666
edit
dl
rm
zxcvbn-async.js
821
0666
edit
dl
rm
zxcvbn-async.min.js
351
0666
edit
dl
rm
zxcvbn.min.js
822237
0666
edit
dl
rm
Edit:
/home/techb158/public_html/wp-includes/js/customize-loader.js
(7903B)
/** * @output wp-includes/js/customize-loader.js */ /* global _wpCustomizeLoaderSettings */ /** * Expose a public API that allows the customizer to be * loaded on any page. * * @namespace wp */ window.wp = window.wp || {}; (function( exports, $ ){ var api = wp.customize, Loader; $.extend( $.support, { history: !! ( window.history && history.pushState ), hashchange: ('onhashchange' in window) && (document.documentMode === undefined || document.documentMode > 7) }); /** * Allows the Customizer to be overlaid on any page. * * By default, any element in the body with the load-customize class will open * an iframe overlay with the URL specified. * * e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a> * * @memberOf wp.customize * * @class * @augments wp.customize.Events */ Loader = $.extend( {}, api.Events,/** @lends wp.customize.Loader.prototype */{ /** * Setup the Loader; triggered on document#ready. */ initialize: function() { this.body = $( document.body ); // Ensure the loader is supported. // Check for settings, postMessage support, and whether we require CORS support. if ( ! Loader.settings || ! $.support.postMessage || ( ! $.support.cors && Loader.settings.isCrossDomain ) ) { return; } this.window = $( window ); this.element = $( '<div id="customize-container" />' ).appendTo( this.body ); // Bind events for opening and closing the overlay. this.bind( 'open', this.overlay.show ); this.bind( 'close', this.overlay.hide ); // Any element in the body with the `load-customize` class opens // the Customizer. $('#wpbody').on( 'click', '.load-customize', function( event ) { event.preventDefault(); // Store a reference to the link that opened the Customizer. Loader.link = $(this); // Load the theme. Loader.open( Loader.link.attr('href') ); }); // Add navigation listeners. if ( $.support.history ) { this.window.on( 'popstate', Loader.popstate ); } if ( $.support.hashchange ) { this.window.on( 'hashchange', Loader.hashchange ); this.window.triggerHandler( 'hashchange' ); } }, popstate: function( e ) { var state = e.originalEvent.state; if ( state && state.customize ) { Loader.open( state.customize ); } else if ( Loader.active ) { Loader.close(); } }, hashchange: function() { var hash = window.location.toString().split('#')[1]; if ( hash && 0 === hash.indexOf( 'wp_customize=on' ) ) { Loader.open( Loader.settings.url + '?' + hash ); } if ( ! hash && ! $.support.history ) { Loader.close(); } }, beforeunload: function () { if ( ! Loader.saved() ) { return Loader.settings.l10n.saveAlert; } }, /** * Open the Customizer overlay for a specific URL. * * @param string src URL to load in the Customizer. */ open: function( src ) { if ( this.active ) { return; } // Load the full page on mobile devices. if ( Loader.settings.browser.mobile ) { return window.location = src; } // Store the document title prior to opening the Live Preview. this.originalDocumentTitle = document.title; this.active = true; this.body.addClass('customize-loading'); /* * Track the dirtiness state (whether the drafted changes have been published) * of the Customizer in the iframe. This is used to decide whether to display * an AYS alert if the user tries to close the window before saving changes. */ this.saved = new api.Value( true ); this.iframe = $( '<iframe />', { 'src': src, 'title': Loader.settings.l10n.mainIframeTitle } ).appendTo( this.element ); this.iframe.one( 'load', this.loaded ); // Create a postMessage connection with the iframe. this.messenger = new api.Messenger({ url: src, channel: 'loader', targetWindow: this.iframe[0].contentWindow }); // Expose the changeset UUID on the parent window's URL so that the customized state can survive a refresh. if ( history.replaceState ) { this.messenger.bind( 'changeset-uuid', function( changesetUuid ) { var urlParser = document.createElement( 'a' ); urlParser.href = location.href; urlParser.search = $.param( _.extend( api.utils.parseQueryString( urlParser.search.substr( 1 ) ), { changeset_uuid: changesetUuid } ) ); history.replaceState( { customize: urlParser.href }, '', urlParser.href ); } ); } // Wait for the connection from the iframe before sending any postMessage events. this.messenger.bind( 'ready', function() { Loader.messenger.send( 'back' ); }); this.messenger.bind( 'close', function() { if ( $.support.history ) { history.back(); } else if ( $.support.hashchange ) { window.location.hash = ''; } else { Loader.close(); } }); // Prompt AYS dialog when navigating away. $( window ).on( 'beforeunload', this.beforeunload ); this.messenger.bind( 'saved', function () { Loader.saved( true ); } ); this.messenger.bind( 'change', function () { Loader.saved( false ); } ); this.messenger.bind( 'title', function( newTitle ){ window.document.title = newTitle; }); this.pushState( src ); this.trigger( 'open' ); }, pushState: function ( src ) { var hash = src.split( '?' )[1]; // Ensure we don't call pushState if the user hit the forward button. if ( $.support.history && window.location.href !== src ) { history.pushState( { customize: src }, '', src ); } else if ( ! $.support.history && $.support.hashchange && hash ) { window.location.hash = 'wp_customize=on&' + hash; } this.trigger( 'open' ); }, /** * Callback after the Customizer has been opened. */ opened: function() { Loader.body.addClass( 'customize-active full-overlay-active' ).attr( 'aria-busy', 'true' ); }, /** * Close the Customizer overlay. */ close: function() { var self = this, onConfirmClose; if ( ! self.active ) { return; } onConfirmClose = function( confirmed ) { if ( confirmed ) { self.active = false; self.trigger( 'close' ); // Restore document title prior to opening the Live Preview. if ( self.originalDocumentTitle ) { document.title = self.originalDocumentTitle; } } else { // Go forward since Customizer is exited by history.back(). history.forward(); } self.messenger.unbind( 'confirmed-close', onConfirmClose ); }; self.messenger.bind( 'confirmed-close', onConfirmClose ); Loader.messenger.send( 'confirm-close' ); }, /** * Callback after the Customizer has been closed. */ closed: function() { Loader.iframe.remove(); Loader.messenger.destroy(); Loader.iframe = null; Loader.messenger = null; Loader.saved = null; Loader.body.removeClass( 'customize-active full-overlay-active' ).removeClass( 'customize-loading' ); $( window ).off( 'beforeunload', Loader.beforeunload ); /* * Return focus to the link that opened the Customizer overlay after * the body element visibility is restored. */ if ( Loader.link ) { Loader.link.focus(); } }, /** * Callback for the `load` event on the Customizer iframe. */ loaded: function() { Loader.body.removeClass( 'customize-loading' ).attr( 'aria-busy', 'false' ); }, /** * Overlay hide/show utility methods. */ overlay: { show: function() { this.element.fadeIn( 200, Loader.opened ); }, hide: function() { this.element.fadeOut( 200, Loader.closed ); } } }); // Bootstrap the Loader on document#ready. $( function() { Loader.settings = _wpCustomizeLoaderSettings; Loader.initialize(); }); // Expose the API publicly on window.wp.customize.Loader. api.Loader = Loader; })( wp, jQuery );
Save
cmd:
run