ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-20 00:36:46
Editing: frontend.js
Cancel
Save Changes
import './frontend.scss'; /** * Attach shadow roots the HTML parser didn't. */ const SELECTOR = '.safe-svg-shadow-host > template[shadowrootmode]'; /** * Move a template's content into a shadow root on its parent. * * @param {HTMLTemplateElement} template The declarative shadow root template. */ const attach = ( template ) => { const host = template.parentElement; if ( ! host || host.shadowRoot ) { return; } try { const mode = template.getAttribute( 'shadowrootmode' ) === 'closed' ? 'closed' : 'open'; host.attachShadow( { mode } ).appendChild( template.content ); template.remove(); } catch ( e ) { // The host can't take a shadow root. Leave the template as it is rather // than moving the SVG into the light DOM, where its CSS would leak. } }; /** * Upgrade every unattached template within a root. * * @param {ParentNode} root The subtree to search. */ const upgrade = ( root ) => { if ( root.matches && root.matches( SELECTOR ) ) { attach( root ); } if ( root.querySelectorAll ) { root.querySelectorAll( SELECTOR ).forEach( attach ); } }; /** * Upgrade what's on the page, then watch for anything added later. */ const start = () => { upgrade( document ); // Content can be injected at any point in a page's life, so keep watching. new MutationObserver( ( mutations ) => { mutations.forEach( ( { addedNodes } ) => { addedNodes.forEach( ( node ) => { if ( node.nodeType === Node.ELEMENT_NODE ) { upgrade( node ); } } ); } ); } ).observe( document.documentElement, { childList: true, subtree: true, } ); }; if ( document.readyState === 'loading' ) { document.addEventListener( 'DOMContentLoaded', start ); } else { start(); }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete