H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
/
home
/
ymswebso
/
public_html
/
ymswebnew
/
wp-includes
/
js
/
Nama File / Folder
Size
Action
codemirror
--
NONE
crop
--
NONE
dist
--
NONE
imgareaselect
--
NONE
jcrop
--
NONE
jquery
--
NONE
mediaelement
--
NONE
plupload
--
NONE
swfupload
--
NONE
thickbox
--
NONE
tinymce
--
NONE
admin-bar.js
10.3KB
Hapus
Edit
Rename
api-request.js
3.246KB
Hapus
Edit
Rename
api-request.min.js
0.999KB
Hapus
Edit
Rename
clipboard.min.js
8.798KB
Hapus
Edit
Rename
customize-loader.js
7.718KB
Hapus
Edit
Rename
customize-loader.min.js
3.468KB
Hapus
Edit
Rename
customize-models.min.js
3.595KB
Hapus
Edit
Rename
customize-preview-widgets.js
22.708KB
Hapus
Edit
Rename
customize-preview-widgets.min.js
7.637KB
Hapus
Edit
Rename
customize-preview.js
27.305KB
Hapus
Edit
Rename
customize-selective-refresh.js
32.554KB
Hapus
Edit
Rename
customize-views.min.js
2.394KB
Hapus
Edit
Rename
heartbeat.min.js
5.808KB
Hapus
Edit
Rename
hoverIntent.js
7.056KB
Hapus
Edit
Rename
hoverIntent.min.js
1.464KB
Hapus
Edit
Rename
imagesloaded.min.js
5.391KB
Hapus
Edit
Rename
json2.min.js
3.069KB
Hapus
Edit
Rename
masonry.min.js
23.572KB
Hapus
Edit
Rename
mce-view.js
25.243KB
Hapus
Edit
Rename
mce-view.min.js
9.541KB
Hapus
Edit
Rename
media-audiovideo.js
24.237KB
Hapus
Edit
Rename
media-editor.min.js
10.63KB
Hapus
Edit
Rename
media-grid.js
26.026KB
Hapus
Edit
Rename
media-models.js
42.582KB
Hapus
Edit
Rename
media-views.js
266.915KB
Hapus
Edit
Rename
shortcode.min.js
2.581KB
Hapus
Edit
Rename
twemoji.js
32.688KB
Hapus
Edit
Rename
underscore.js
67.124KB
Hapus
Edit
Rename
wp-auth-check.js
4.108KB
Hapus
Edit
Rename
wp-auth-check.min.js
1.619KB
Hapus
Edit
Rename
wp-custom-header.min.js
4.338KB
Hapus
Edit
Rename
wp-embed.min.js
1.222KB
Hapus
Edit
Rename
wp-emoji-loader.js
12.212KB
Hapus
Edit
Rename
wp-emoji.js
8.759KB
Hapus
Edit
Rename
wp-emoji.min.js
2.822KB
Hapus
Edit
Rename
wp-list-revisions.js
0.947KB
Hapus
Edit
Rename
wp-lists.min.js
7.345KB
Hapus
Edit
Rename
wp-sanitize.min.js
0.447KB
Hapus
Edit
Rename
wp-util.js
4.569KB
Hapus
Edit
Rename
wp-util.min.js
1.393KB
Hapus
Edit
Rename
wpdialog.js
0.556KB
Hapus
Edit
Rename
zxcvbn.min.js
802.966KB
Hapus
Edit
Rename
/** * @output wp-includes/js/wp-util.js */ /* global _wpUtilSettings */ /** @namespace wp */ window.wp = window.wp || {}; (function ($) { // Check for the utility settings. var settings = typeof _wpUtilSettings === 'undefined' ? {} : _wpUtilSettings; /** * wp.template( id ) * * Fetch a JavaScript template for an id, and return a templating function for it. * * @param {string} id A string that corresponds to a DOM element with an id prefixed with "tmpl-". * For example, "attachment" maps to "tmpl-attachment". * @return {function} A function that lazily-compiles the template requested. */ wp.template = _.memoize(function ( id ) { var compiled, /* * Underscore's default ERB-style templates are incompatible with PHP * when asp_tags is enabled, so WordPress uses Mustache-inspired templating syntax. * * @see trac ticket #22344. */ options = { evaluate: /<#([\s\S]+?)#>/g, interpolate: /\{\{\{([\s\S]+?)\}\}\}/g, escape: /\{\{([^\}]+?)\}\}(?!\})/g, variable: 'data' }; return function ( data ) { if ( ! document.getElementById( 'tmpl-' + id ) ) { throw new Error( 'Template not found: ' + '#tmpl-' + id ); } compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options ); return compiled( data ); }; }); /* * wp.ajax * ------ * * Tools for sending ajax requests with JSON responses and built in error handling. * Mirrors and wraps jQuery's ajax APIs. */ wp.ajax = { settings: settings.ajax || {}, /** * wp.ajax.post( [action], [data] ) * * Sends a POST request to WordPress. * * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed * to jQuery.ajax. * @param {Object=} data Optional. The data to populate $_POST with. * @return {$.promise} A jQuery promise that represents the request, * decorated with an abort() method. */ post: function( action, data ) { return wp.ajax.send({ data: _.isObject( action ) ? action : _.extend( data || {}, { action: action }) }); }, /** * wp.ajax.send( [action], [options] ) * * Sends a POST request to WordPress. * * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed * to jQuery.ajax. * @param {Object=} options Optional. The options passed to jQuery.ajax. * @return {$.promise} A jQuery promise that represents the request, * decorated with an abort() method. */ send: function( action, options ) { var promise, deferred; if ( _.isObject( action ) ) { options = action; } else { options = options || {}; options.data = _.extend( options.data || {}, { action: action }); } options = _.defaults( options || {}, { type: 'POST', url: wp.ajax.settings.url, context: this }); deferred = $.Deferred( function( deferred ) { // Transfer success/error callbacks. if ( options.success ) { deferred.done( options.success ); } if ( options.error ) { deferred.fail( options.error ); } delete options.success; delete options.error; // Use with PHP's wp_send_json_success() and wp_send_json_error(). deferred.jqXHR = $.ajax( options ).done( function( response ) { // Treat a response of 1 as successful for backward compatibility with existing handlers. if ( response === '1' || response === 1 ) { response = { success: true }; } if ( _.isObject( response ) && ! _.isUndefined( response.success ) ) { // When handling a media attachments request, get the total attachments from response headers. var context = this; deferred.done( function() { if ( action && action.data && 'query-attachments' === action.data.action && deferred.jqXHR.hasOwnProperty( 'getResponseHeader' ) && deferred.jqXHR.getResponseHeader( 'X-WP-Total' ) ) { context.totalAttachments = parseInt( deferred.jqXHR.getResponseHeader( 'X-WP-Total' ), 10 ); } else { context.totalAttachments = 0; } } ); deferred[ response.success ? 'resolveWith' : 'rejectWith' ]( this, [response.data] ); } else { deferred.rejectWith( this, [response] ); } }).fail( function() { deferred.rejectWith( this, arguments ); }); }); promise = deferred.promise(); promise.abort = function() { deferred.jqXHR.abort(); return this; }; return promise; } }; }(jQuery));