1$(window).scroll(function() { 2 var scroll = $(window).scrollTop(); 3 if (scroll >= 1) { 4 $("header").addClass("fixed"); 5 } else { 6 $("header").removeClass("fixed"); 7 } 8 9 if (scroll >= 200) { 10 $(".back-to-top").addClass("active"); 11 } else { 12 $(".back-to-top").removeClass("active"); 13 } 14}); 15 16 $('.back-to-top').click(function(e) { 17 $('html, body').animate({scrollTop: 0}, 800); 18 return false; 19 }); 20 21$(document).ready(function(){ 22 $('ul.tabs li').click(function(){ 23 var tab_id = $(this).attr('data-tab'); 24 25 $('ul.tabs li').removeClass('current'); 26 $('.tab-content').removeClass('current'); 27 28 $(this).addClass('current'); 29 $("#"+tab_id).addClass('current'); 30 }); 31 32if($(".various, .fancybox").length){ 33 $(".various, .fancybox").fancybox({ 34 maxWidth : 800, 35 maxHeight : 600, 36 fitToView : true, 37 }); 38}; 39}); 40 41 42var currentNavPoint = document.querySelector('nav.desktop a[href="' + window.location.pathname + '"]'); 43if (currentNavPoint) { 44 var currentNavPointClassname = currentNavPoint.getAttribute('class'); 45 var currentNavPointLevel = currentNavPointClassname.replace('nav', '').replace('on', ''); 46} 47 48if (currentNavPointLevel === '1' || currentNavPointLevel === '2' || currentNavPointLevel === '3' || currentNavPointLevel === '4') { 49 var parentSibling = currentNavPoint.parentElement.parentElement.previousElementSibling; 50 currentNavPoint.setAttribute('class', currentNavPointClassname + 'on'); 51 currentNavPoint.closest('ul').classList.add('active'); 52 currentNavPoint.closest('.dropdown_first').classList.add('active'); 53 54 if (parentSibling) { 55 var parentSiblingClassname = parentSibling.getAttribute('class'); 56 if (currentNavPointLevel >= '2') { 57 58 if (parentSibling.tagName === 'H3') { 59 parentSibling = currentNavPoint.parentElement.parentElement.parentElement.parentElement.previousElementSibling; 60 parentSiblingClassname = parentSibling.getAttribute('class'); 61 } 62 parentSibling.setAttribute('class', parentSiblingClassname + 'on'); 63 } 64 65 if (currentNavPointLevel >= '3') { 66 var parentParentSibling = parentSibling.parentElement.parentElement.previousElementSibling; 67 var parentParentSiblingClassname = parentParentSibling.getAttribute('class'); 68 69 if (parentParentSibling.tagName === 'H3') { 70 parentParentSibling = currentNavPoint.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.previousElementSibling; 71 parentParentSiblingClassname = parentParentSibling.getAttribute('class'); 72 } 73 parentParentSibling.setAttribute('class', parentParentSiblingClassname + 'on'); 74 currentNavPoint.closest('.dropdown_second').classList.add('active'); 75 } 76 77 if (currentNavPointLevel >= '4') { 78 var parentParentParentSibling = parentParentSibling.parentElement.parentElement.previousElementSibling; 79 var parentParentParentSiblingClassname = parentParentParentSibling.getAttribute('class'); 80 81 if (parentParentParentSibling.tagName === 'H3') { 82 parentParentParentSibling = currentNavPoint.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.previousElementSibling; 83 parentParentParentSiblingClassname = parentParentParentSibling.getAttribute('class'); 84 } 85 parentParentParentSibling.setAttribute('class', parentParentParentSiblingClassname + 'on'); 86 currentNavPoint.closest('.dropdown_second').classList.add('active'); 87 currentNavPoint.closest('.dropdown_third').classList.add('active'); 88 } 89 90 } 91} 92 93
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.