Difference between revisions of "MediaWiki:Mobile.js"

no edit summary
Line 125: Line 125:
     console.log('Trigger clicked!');
     console.log('Trigger clicked!');
     document.getElementById('masticationpedia-main-menu').style.display = 'block';
     document.getElementById('masticationpedia-main-menu').style.display = 'block';
    document.getElementById('main-menu-close').style.display = 'block';
    document.getElementById('main-menu-open').style.display = 'none';
}
}
var openMenuButton = document.getElementById('main-menu-open');
var openMenuButton = document.getElementById('main-menu-open');
Line 134: Line 136:
     console.log('Trigger clicked!');
     console.log('Trigger clicked!');
     document.getElementById('masticationpedia-main-menu').style.display = 'none';
     document.getElementById('masticationpedia-main-menu').style.display = 'none';
    document.getElementById('main-menu-close').style.display = 'none';
    document.getElementById('main-menu-open').style.display = 'block';
}
}
var closeMenuButton = document.getElementById('main-menu-close');
var closeMenuButton = document.getElementById('main-menu-close');