1"use strict"; 2 3console.log('.'); 4 5 6function showMoreFeatures(span, hidden, show) { 7 span.style.display = "none"; 8 document.getElementById(hidden).style.display = "none"; 9 document.getElementById(show).style.display = "table"; 10} 11 12window.addEventListener("DOMContentLoaded", function () { 13 function sleep(ms) { 14 return new Promise(function (resolve) { 15 return setTimeout(resolve, ms); 16 }); 17 } // function doStuff() 18 // { 19 // //do some things 20 // setTimeout(continueExecution, 10000) //wait ten seconds before continuing 21 // } 22 // 23 // function continueExecution() 24 // { 25 // //finish doing things after the pause 26 // } 27 28 29 // function showBtn(show) { 30 // if (show) { 31 // $("#nav-btn-download").attr("style", "display:flex"); 32 // $("#nav-btn-buy").attr("style", "display:flex"); 33 // sleep(10); 34 // $("#nav-btn-download").addClass("nav-btn-download-float"); 35 // $("#nav-btn-buy").addClass("nav-btn-download-float"); 36 // } else { 37 // $("#nav-btn-download").attr("style", "display:none"); 38 // $("#nav-btn-buy").attr("style", "display:none"); 39 // $("#nav-btn-download").removeClass("nav-btn-download-float"); 40 // $("#nav-btn-buy").removeClass("nav-btn-download-float"); 41 // } 42 // } // $(document).ready(function () { 43 44 // $( '[data-fancybox="gallery1"]' ).fancybox({ 45 // caption : function( instance, item ) { 46 // return $(this).attr('title'); 47 // } 48 // }); 49 50 var params = window.location.href; 51 params = params.replace("?", "&"); 52 var prmarr = params.split("&"); 53 54 for (var i = 0; i < prmarr.length; i++) { 55 var tmparr = prmarr[i].split("="); 56 prmarr[tmparr[0]] = tmparr[1]; 57 } 58 59 var tabLinks = document.querySelectorAll(".tablinks"); 60 var tabContent = document.querySelectorAll(".tabcontent"); 61 for (let i = 0; i < tabLinks.length; i++) { 62 const el = tabLinks[i]; 63 el.addEventListener("click", openTabs); 64 65 } 66 67 function openTabs(el) { 68 var btnTarget = el.currentTarget; 69 var os = btnTarget.dataset.os; 70 for (let i = 0; i < tabContent.length; i++) { 71 const el = tabContent[i]; 72 el.classList.remove("active"); 73 } 74 for (let i = 0; i < tabLinks.length; i++) { 75 const el = tabLinks[i]; 76 el.classList.remove("active"); 77 } 78 // tabContent.forEach(function (el) { 79 // }); 80 // tabLinks.forEach(function (el) { 81 // el.classList.remove("active"); 82 // }); 83 document.querySelector("#" + os).classList.add("active"); 84 btnTarget.classList.add("active"); 85 } 86 87 var iOS = /iPad|iPhone|iPod|Mac/.test(navigator.userAgent) && !window.MSStream; 88 89 if (prmarr["os"] !== undefined) { 90 switch (prmarr["os"]) { 91 case "win": 92 document.getElementById("btn-win").click(); // jQuery("#btn-win").trigger('click'); 93 94 break; 95 96 case "mac": 97 document.getElementById("btn-mac").click(); // jQuery("#btn-mac").trigger('click'); 98 99 break; 100 101 case "mobile": 102 document.getElementById("btn-mobile").click(); // jQuery("#btn-mobile").trigger("click"); 103 104 break; 105 } 106 } else if (iOS) { 107 var btnMac = document.getElementById("btn-mac"); 108 if (btnMac) { 109 document.getElementById("btn-mac").click(); // jQuery("#btn-mac").trigger("click"); 110 } 111 } // }); 112 //dropdown on click // 113 114 115 document.querySelector(".dropdown_click .selected")?.addEventListener("click", function () { 116 document.querySelector(".dropdown_click .drop-content ul")?.classList.toggle("active"); 117 document.querySelector(".dropdown_c .selected img[data-name='arrow']")?.classList.toggle("active"); 118 }); // $(".dropdown_click .selected").on("click", function () { 119 // $(".dropdown_click .drop-content ul").slideToggle(); 120 // }); 121 // $(".dropdown_click .drop-content ul li span").on("click", function () { 122 // $(".dropdown_click .selected span").html($(this).html()); 123 // $(".dropdown_click .drop-content ul").slideUp(); 124 // }); 125 // $(document).bind("click", function (e) { 126 // var $clickhide = $(e.target); 127 // if (!$clickhide.parents().hasClass("dropdown_c")) 128 // $(".dropdown_c .drop-content ul").slideUp(); 129 // }); 130 //accordeon on click 131 132 var accordionLinks = document.querySelectorAll(".toggle"); 133 for (let i = 0; i < accordionLinks.length; i++) { 134 const el = accordionLinks[i]; 135 el.addEventListener("click", function (e) { 136 for (let ndx = 0; ndx < accordionLinks.length; ndx++) { 137 const elem = accordionLinks[ndx]; 138 elem.nextElementSibling.classList.remove("show"); 139 140 } 141 el.nextElementSibling.classList.add("show"); 142 }); 143 } 144 // accordionLinks.forEach(function (el) { 145 // accordionLinks.forEach(function (el) { 146 // }); 147 // }); // hamburger 148 // HAMBURGER MENU 149 150 var burger = document.getElementById("hamburger"); 151 var humMenu = document.querySelector(".container--navigation-ancors"); 152 // The shared site header owns its navigation in header.js. 153 if (!document.querySelector(".site-header")) burger?.addEventListener("click", function () { 154 burger?.classList.toggle('is-active'); 155 humMenu?.classList.toggle('active'); 156 document.querySelector('.header__logo')?.classList.toggle('disabled'); 157 document.querySelector('.header__dashboard-btn')?.classList.toggle('active'); 158 }); // console.log(location.href); 159 // if (location.pathname === "/en") { 160 // $(document).load('/index.html'); 161 // } 162 163 ; 164 var subMenus = document.querySelectorAll(".has-submenu"); 165 for (let i = 0; i < subMenus.length; i++) { 166 const el = subMenus[i]; 167 if (el.closest(".site-header, #mobile-navigation")) continue; 168 el.addEventListener("click", openSubmenus); 169 170 } 171 172 function openSubmenus(el) { 173 var curItem = el.currentTarget; 174 for (let i = 0; i < subMenus.length; i++) { 175 const el = subMenus[i]; 176 if (el !== curItem) { 177 el.children[1].classList.remove("open"); 178 } 179 180 } 181 curItem.children[1].classList.toggle("open"); 182 } 183}); 184;
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.