From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- srcs/wordpress/wp-includes/js/customize-loader.js | 291 ---------------------- 1 file changed, 291 deletions(-) delete mode 100644 srcs/wordpress/wp-includes/js/customize-loader.js (limited to 'srcs/wordpress/wp-includes/js/customize-loader.js') diff --git a/srcs/wordpress/wp-includes/js/customize-loader.js b/srcs/wordpress/wp-includes/js/customize-loader.js deleted file mode 100644 index e27f1bc..0000000 --- a/srcs/wordpress/wp-includes/js/customize-loader.js +++ /dev/null @@ -1,291 +0,0 @@ -/** - * @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 overlayed 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. Open Customizer - * - * @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 = $( '
' ).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 = $( '