/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-admin
/
js
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-admin/js
mkdir
upload
Name
Size
Mode
Actions
widgets/
-
0755
rm
accordion.js
2933
0644
edit
dl
rm
accordion.min.js
758
0644
edit
dl
rm
application-passwords.js
6394
0644
edit
dl
rm
application-passwords.min.js
3024
0644
edit
dl
rm
auth-app.js
5796
0644
edit
dl
rm
auth-app.min.js
2084
0644
edit
dl
rm
code-editor.js
11588
0644
edit
dl
rm
code-editor.min.js
3083
0644
edit
dl
rm
color-picker.js
9768
0644
edit
dl
rm
color-picker.min.js
3486
0644
edit
dl
rm
comment.js
2919
0644
edit
dl
rm
comment.min.js
1315
0644
edit
dl
rm
common.js
62618
0644
edit
dl
rm
common.min.js
23676
0644
edit
dl
rm
custom-background.js
3435
0644
edit
dl
rm
custom-background.min.js
1206
0644
edit
dl
rm
custom-header.js
2023
0644
edit
dl
rm
customize-controls.js
295335
0644
edit
dl
rm
customize-controls.min.js
112322
0644
edit
dl
rm
customize-nav-menus.js
114135
0644
edit
dl
rm
customize-nav-menus.min.js
48272
0644
edit
dl
rm
customize-widgets.js
71727
0644
edit
dl
rm
customize-widgets.min.js
28065
0644
edit
dl
rm
dashboard.js
27666
0644
edit
dl
rm
dashboard.min.js
8862
0644
edit
dl
rm
edit-comments.js
38006
0644
edit
dl
rm
edit-comments.min.js
15488
0644
edit
dl
rm
editor-expand.js
42606
0644
edit
dl
rm
editor-expand.min.js
13451
0644
edit
dl
rm
editor.js
45055
0644
edit
dl
rm
editor.min.js
13085
0644
edit
dl
rm
farbtastic.js
7849
0644
edit
dl
rm
gallery.js
5543
0644
edit
dl
rm
gallery.min.js
3741
0644
edit
dl
rm
image-edit.js
40936
0644
edit
dl
rm
image-edit.min.js
15515
0644
edit
dl
rm
inline-edit-post.js
20645
0644
edit
dl
rm
inline-edit-post.min.js
9616
0644
edit
dl
rm
inline-edit-tax.js
7797
0644
edit
dl
rm
inline-edit-tax.min.js
2997
0644
edit
dl
rm
iris.min.js
23643
0644
edit
dl
rm
language-chooser.js
890
0644
edit
dl
rm
language-chooser.min.js
423
0644
edit
dl
rm
link.js
3987
0644
edit
dl
rm
link.min.js
1742
0644
edit
dl
rm
media-gallery.js
1303
0644
edit
dl
rm
media-gallery.min.js
611
0644
edit
dl
rm
media-upload.js
3465
0644
edit
dl
rm
media-upload.min.js
1152
0644
edit
dl
rm
media.js
6765
0644
edit
dl
rm
media.min.js
2439
0644
edit
dl
rm
nav-menu.js
62617
0644
edit
dl
rm
nav-menu.min.js
30785
0644
edit
dl
rm
password-strength-meter.js
4236
0644
edit
dl
rm
password-strength-meter.min.js
1123
0644
edit
dl
rm
password-toggle.js
1339
0644
edit
dl
rm
password-toggle.min.js
847
0644
edit
dl
rm
plugin-install.js
7086
0644
edit
dl
rm
plugin-install.min.js
2403
0644
edit
dl
rm
post.js
39607
0644
edit
dl
rm
post.min.js
18845
0644
edit
dl
rm
postbox.js
18937
0644
edit
dl
rm
postbox.min.js
6761
0644
edit
dl
rm
privacy-tools.js
10923
0644
edit
dl
rm
privacy-tools.min.js
5154
0644
edit
dl
rm
revisions.js
34729
0644
edit
dl
rm
revisions.min.js
18401
0644
edit
dl
rm
set-post-thumbnail.js
876
0644
edit
dl
rm
set-post-thumbnail.min.js
620
0644
edit
dl
rm
site-health.js
13465
0644
edit
dl
rm
site-health.min.js
6282
0644
edit
dl
rm
site-icon.js
6243
0644
edit
dl
rm
site-icon.min.js
2254
0644
edit
dl
rm
svg-painter.js
3280
0644
edit
dl
rm
svg-painter.min.js
1567
0644
edit
dl
rm
tags-box.js
11140
0644
edit
dl
rm
tags-box.min.js
3077
0644
edit
dl
rm
tags-suggest.js
5771
0644
edit
dl
rm
tags-suggest.min.js
2269
0644
edit
dl
rm
tags.js
6098
0644
edit
dl
rm
tags.min.js
2467
0644
edit
dl
rm
theme-plugin-editor.js
25360
0644
edit
dl
rm
theme-plugin-editor.min.js
11709
0644
edit
dl
rm
theme.js
56263
0644
edit
dl
rm
theme.min.js
27142
0644
edit
dl
rm
updates.js
111999
0644
edit
dl
rm
updates.min.js
48443
0644
edit
dl
rm
user-profile.js
18343
0644
edit
dl
rm
user-profile.min.js
7997
0644
edit
dl
rm
user-suggest.js
2301
0644
edit
dl
rm
user-suggest.min.js
676
0644
edit
dl
rm
widgets.js
23098
0644
edit
dl
rm
widgets.min.js
12609
0644
edit
dl
rm
word-count.js
7696
0644
edit
dl
rm
word-count.min.js
1530
0644
edit
dl
rm
xfn.js
740
0644
edit
dl
rm
xfn.min.js
458
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-admin/js/word-count.js
(7696B)
/** * Word or character counting functionality. Count words or characters in a * provided text string. * * @namespace wp.utils * * @since 2.6.0 * @output wp-admin/js/word-count.js */ ( function() { /** * Word counting utility * * @namespace wp.utils.wordcounter * @memberof wp.utils * * @class * * @param {Object} settings Optional. Key-value object containing overrides for * settings. * @param {RegExp} settings.HTMLRegExp Optional. Regular expression to find HTML elements. * @param {RegExp} settings.HTMLcommentRegExp Optional. Regular expression to find HTML comments. * @param {RegExp} settings.spaceRegExp Optional. Regular expression to find irregular space * characters. * @param {RegExp} settings.HTMLEntityRegExp Optional. Regular expression to find HTML entities. * @param {RegExp} settings.connectorRegExp Optional. Regular expression to find connectors that * split words. * @param {RegExp} settings.removeRegExp Optional. Regular expression to find remove unwanted * characters to reduce false-positives. * @param {RegExp} settings.astralRegExp Optional. Regular expression to find unwanted * characters when searching for non-words. * @param {RegExp} settings.wordsRegExp Optional. Regular expression to find words by spaces. * @param {RegExp} settings.characters_excluding_spacesRegExp Optional. Regular expression to find characters which * are non-spaces. * @param {RegExp} settings.characters_including_spacesRegExp Optional. Regular expression to find characters * including spaces. * @param {RegExp} settings.shortcodesRegExp Optional. Regular expression to find shortcodes. * @param {Object} settings.l10n Optional. Localization object containing specific * configuration for the current localization. * @param {string} settings.l10n.type Optional. Method of finding words to count. * @param {Array} settings.l10n.shortcodes Optional. Array of shortcodes that should be removed * from the text. * * @return {void} */ function WordCounter( settings ) { var key, shortcodes; // Apply provided settings to object settings. if ( settings ) { for ( key in settings ) { // Only apply valid settings. if ( settings.hasOwnProperty( key ) ) { this.settings[ key ] = settings[ key ]; } } } shortcodes = this.settings.l10n.shortcodes; // If there are any localization shortcodes, add this as type in the settings. if ( shortcodes && shortcodes.length ) { this.settings.shortcodesRegExp = new RegExp( '\\[\\/?(?:' + shortcodes.join( '|' ) + ')[^\\]]*?\\]', 'g' ); } } // Default settings. WordCounter.prototype.settings = { HTMLRegExp: /<\/?[a-z][^>]*?>/gi, HTMLcommentRegExp: /<!--[\s\S]*?-->/g, spaceRegExp: / | /gi, HTMLEntityRegExp: /&\S+?;/g, // \u2014 = em-dash. connectorRegExp: /--|\u2014/g, // Characters to be removed from input text. removeRegExp: new RegExp( [ '[', // Basic Latin (extract). '\u0021-\u0040\u005B-\u0060\u007B-\u007E', // Latin-1 Supplement (extract). '\u0080-\u00BF\u00D7\u00F7', /* * The following range consists of: * General Punctuation * Superscripts and Subscripts * Currency Symbols * Combining Diacritical Marks for Symbols * Letterlike Symbols * Number Forms * Arrows * Mathematical Operators * Miscellaneous Technical * Control Pictures * Optical Character Recognition * Enclosed Alphanumerics * Box Drawing * Block Elements * Geometric Shapes * Miscellaneous Symbols * Dingbats * Miscellaneous Mathematical Symbols-A * Supplemental Arrows-A * Braille Patterns * Supplemental Arrows-B * Miscellaneous Mathematical Symbols-B * Supplemental Mathematical Operators * Miscellaneous Symbols and Arrows */ '\u2000-\u2BFF', // Supplemental Punctuation. '\u2E00-\u2E7F', ']' ].join( '' ), 'g' ), // Remove UTF-16 surrogate points, see https://en.wikipedia.org/wiki/UTF-16#U.2BD800_to_U.2BDFFF astralRegExp: /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, wordsRegExp: /\S\s+/g, characters_excluding_spacesRegExp: /\S/g, /* * Match anything that is not a formatting character, excluding: * \f = form feed * \n = new line * \r = carriage return * \t = tab * \v = vertical tab * \u00AD = soft hyphen * \u2028 = line separator * \u2029 = paragraph separator */ characters_including_spacesRegExp: /[^\f\n\r\t\v\u00AD\u2028\u2029]/g, l10n: window.wordCountL10n || {} }; /** * Counts the number of words (or other specified type) in the specified text. * * @since 2.6.0 * * @memberof wp.utils.wordcounter * * @param {string} text Text to count elements in. * @param {string} type Optional. Specify type to use. * * @return {number} The number of items counted. */ WordCounter.prototype.count = function( text, type ) { var count = 0; // Use default type if none was provided. type = type || this.settings.l10n.type; // Sanitize type to one of three possibilities: 'words', 'characters_excluding_spaces' or 'characters_including_spaces'. if ( type !== 'characters_excluding_spaces' && type !== 'characters_including_spaces' ) { type = 'words'; } // If we have any text at all. if ( text ) { text = text + '\n'; // Replace all HTML with a new-line. text = text.replace( this.settings.HTMLRegExp, '\n' ); // Remove all HTML comments. text = text.replace( this.settings.HTMLcommentRegExp, '' ); // If a shortcode regular expression has been provided use it to remove shortcodes. if ( this.settings.shortcodesRegExp ) { text = text.replace( this.settings.shortcodesRegExp, '\n' ); } // Normalize non-breaking space to a normal space. text = text.replace( this.settings.spaceRegExp, ' ' ); if ( type === 'words' ) { // Remove HTML Entities. text = text.replace( this.settings.HTMLEntityRegExp, '' ); // Convert connectors to spaces to count attached text as words. text = text.replace( this.settings.connectorRegExp, ' ' ); // Remove unwanted characters. text = text.replace( this.settings.removeRegExp, '' ); } else { // Convert HTML Entities to "a". text = text.replace( this.settings.HTMLEntityRegExp, 'a' ); // Remove surrogate points. text = text.replace( this.settings.astralRegExp, 'a' ); } // Match with the selected type regular expression to count the items. text = text.match( this.settings[ type + 'RegExp' ] ); // If we have any matches, set the count to the number of items found. if ( text ) { count = text.length; } } return count; }; // Add the WordCounter to the WP Utils. window.wp = window.wp || {}; window.wp.utils = window.wp.utils || {}; window.wp.utils.WordCounter = WordCounter; } )();
Save
cmd:
run