//menu tre pallini function ClickOnMenu(){ el = document.getElementById("menu"); el.classList.toggle('active'); el = document.getElementById("dotmenu"); if (el.classList.contains('showlayer')) { //nascondi menu HideMenu(); }else{ //mostra menu el.classList.add("showlayer"); jQuery("#menu-head").addClass("blurred"); jQuery("#cover").addClass("blurred"); jQuery(".sectionlist").addClass("blurred"); jQuery(".postlist").addClass("blurred"); jQuery(".grplayer").addClass("blurred"); jQuery("#footer").addClass("blurred"); jQuery(".postcover-cont").addClass("blurred"); jQuery(".postbody").addClass("blurred"); jQuery("#comments_container").addClass("blurred"); } } //nascondi menu function HideMenu(){ jQuery("#menu").removeClass("active"); jQuery("#dotmenu").removeClass("showlayer"); jQuery("#menu-head").removeClass("blurred"); jQuery("#cover").removeClass("blurred"); jQuery(".sectionlist").removeClass("blurred"); jQuery(".postlist").removeClass("blurred"); jQuery(".grplayer").removeClass("blurred"); jQuery("#footer").removeClass("blurred"); jQuery(".postcover-cont").removeClass("blurred"); jQuery(".postbody").removeClass("blurred"); jQuery("#comments_container").removeClass("blurred"); } window.onscroll = function() { el = document.getElementById("dotmenu"); act = document.activeElement.id == "cercalayer"; if ((el.classList.contains('showlayer')) && !act) { //nascondi menu allo scroll HideMenu(); } } //script per lo smooth scroll jQuery(document).ready(function(){ jQuery("a").on('click', function(event) { // Make sure this.hash has a value before overriding default behavior if (this.hash !== "") { // Prevent default anchor click behavior event.preventDefault(); // Store hash var hash = this.hash; // Using jQuery's animate() method to add smooth page scroll // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area jQuery('html, body').animate({ scrollTop: jQuery(hash).offset().top }, 500, function(){ // Add hash (#) to URL when done scrolling (default click behavior) window.location.hash = hash; }); } }); });
Player Select
Redazione ILVG
Questo autore fittizzio funge da "raccoglitore" per tutto il contenuto generico creato dalla Redazione (comunicazioni, giveaway, eccetera). Non contattatelo, dato che non esiste potrebbe essere problematico per lui rispondervi Apprezzi il suo lavoro? Dimostralo! Vai agli articoli