1(function(){ 2 //== Modal Toggle 3 function menuAnimation() { 4 document.getElementById('body').classList.toggle('menu-open'); 5 document.getElementById('menubrj-overlay').classList.toggle('block'); 6 } 7 // Select all the elements with example class. 8 var btnMenu = document.querySelectorAll('.btn-menu'); 9 // Loop through the elements. 10 for (var i = 0; i < btnMenu.length; i++) { 11 // Add the class margin to the individual elements. 12 btnMenu[i].addEventListener('click', menuAnimation); 13 } 14 //------------------------ Modal Header 15})(); 16 17 18//=== Carrosel home 19document.addEventListener('DOMContentLoaded', function () { 20 var simple = document.querySelector('.carousel'); 21 if(simple!==undefined && simple!==null) { 22 lory(simple, { 23 infinite: 1 24 }); 25 } 26}); 27 28 29//== Share single 30(function(){ 31 //== Modal Toggle 32 function shareAnimation() { 33 document.getElementById('shadow-share').classList.toggle('open-share-modal'); 34 document.getElementById('share-modal').classList.toggle('open-share-modal'); 35 } 36 // Select all the elements with example class. 37 var btnShare = document.querySelectorAll('.btn-share'); 38 // Loop through the elements. 39 for (var i = 0; i < btnShare.length; i++) { 40 // Add the class margin to the individual elements. 41 btnShare[i].addEventListener('click', shareAnimation); 42 } 43 //------------------------ Modal Header 44})(); 45 46 47 48$(document).ready(function () { 49 // MAIN MENU ANIMATION 50 // Menu change 51 $(this).scrollTop(0); // importante <-- 52 var nav = $('header'); 53 54 55 $(window).scroll(function () { 56 if ($(window).scrollTop() > 10) { 57 nav.addClass("active"); 58 } else { 59 nav.removeClass("active"); 60 } 61 }); 62 63 64 65 66}); 67 68 69// scroll lateral menu 70 71const element = document.getElementById("menu-menu-superior"); 72 73element.addEventListener('wheel', (event) => { 74 event.preventDefault(); 75 76 element.scrollBy({ 77 left: event.deltaY < 0 ? -30 : 30, 78 79 }); 80}); 81 82 83
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.