MediaWiki:Common.js: Difference between revisions

From Ragnafied Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 13: Line 13:
             <div class="floating-menu-items">
             <div class="floating-menu-items">
                 <a href="/index.php/Main_Page">🏠 Main Page</a>
                 <a href="/index.php/Main_Page">🏠 Main Page</a>
                 <a href="/index.php/First_Steps">https://static.divine-pride.net/images/items/item/2765.png First Steps</a>
                 <a href="/index.php/First_Steps">🚀 First Steps</a>
                 <a href="/index.php/VIP">👑 VIP</a>
                 <a href="/index.php/VIP">👑 VIP</a>
                 <a href="/index.php/Enchant_Stones">💎 Enchant Stones</a>
                 <a href="/index.php/Enchant_Stones">💎 Enchant Stones</a>

Revision as of 22:41, 20 February 2026

$(document).ready(function() {
    $('body').append('<div class="back-to-top-fixed"><a href="#">↑ TOP</a></div>');
});

$(document).ready(function() {
    // Create floating menu
    var menuHTML = `
        <div class="floating-menu" id="floatingMenu">
            <div class="floating-menu-header" id="menuHeader">
                <span>📋 QUICK NAV</span>
                <span class="arrow">▼</span>
            </div>
            <div class="floating-menu-items">
                <a href="/index.php/Main_Page">🏠 Main Page</a>
                <a href="/index.php/First_Steps">🚀 First Steps</a>
                <a href="/index.php/VIP">👑 VIP</a>
                <a href="/index.php/Enchant_Stones">💎 Enchant Stones</a>
                <a href="/index.php/Nyangvines">🐱 Nyangvines</a>
                <a href="/index.php/Custom_Systems">⚙️ Custom Systems</a>
                <a href="/index.php/Monthly_Kachua">📅 Monthly Kachua</a>
                <a href="/index.php/Troubleshooting">🔧 Troubleshooting</a>
            </div>
        </div>
        <div class="floating-menu-toggle" id="menuToggle">☰</div>
    `;
    
    $('body').append(menuHTML);
    
    // Collapse/expand functionality
    $('#menuHeader').click(function() {
        $('#floatingMenu').toggleClass('collapsed');
    });
    
    // Mobile toggle
    $('#menuToggle').click(function() {
        $('#floatingMenu').toggleClass('mobile-visible');
    });
    
    // Close menu when clicking outside on mobile
    $(document).click(function(event) {
        if ($(window).width() <= 768) {
            if (!$(event.target).closest('#floatingMenu, #menuToggle').length) {
                $('#floatingMenu').removeClass('mobile-visible');
            }
        }
    });
    
    // Start with menu expanded
    $('#floatingMenu').removeClass('collapsed');
});