REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.46 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/js_composer/assets/js/utils/utils.js
Text
Base64
( function ( window ) { 'use strict'; if ( ! window.vc ) { window.vc = {}; } window.vc.utils = { fixUnclosedTags: function ( string ) { // Replace opening < and closing </ with respective entities to avoid editor breaking return string .replace( /<\/([^>]+)$/g, '</$1' ) // Replace closing </ .replace( /<([^>]+)?$/g, '<$1' ); // Replace opening < or lone < }, fallbackCopyTextToClipboard: function ( text ) { var textArea = document.createElement( 'textarea' ); textArea.value = text; // Avoid scrolling to bottom textArea.style.top = '0'; textArea.style.left = '0'; textArea.style.position = 'fixed'; document.body.appendChild( textArea ); textArea.focus(); textArea.select(); try { document.execCommand( 'copy' ); } catch ( err ) { console.error( 'Unable to copy', err ); } document.body.removeChild( textArea ); }, copyTextToClipboard: function ( text ) { if ( !navigator.clipboard ) { this.fallbackCopyTextToClipboard( text ); return; } navigator.clipboard.writeText( text ); }, slugify: function ( string ) { string = string || ''; return string.toString().toLowerCase() .replace( /[^\w\s-]/g, '' ) // remove non-word [a-z0-9_], non-whitespace, non-hyphen characters .replace( /[\s_-]+/g, '-' ) // swap any length of whitespace, underscore, hyphen characters with a single - .replace( /(\s+$)|(^\s+)/g, '' ).trim(); // remove leading, trailing - } }; })( window );
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
utils.js
1.46 KB
lrw-r--r--
2025-04-30 03:16:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).