1 2//Dropdown-Sub-Menu-on-click 3 $(function(){ 4 5 $('li.dropdown > a').on('click',function(event){ 6 7 event.preventDefault() 8 9 $(this).parent().find('ul').first().toggle(300); 10 11 $(this).parent().siblings().find('ul').hide(200); 12 13 //Hide menu when clicked outside 14 $(this).parent().find('ul').mouseleave(function(){ 15 var thisUI = $(this); 16 $('html').click(function(){ 17 thisUI.hide(); 18 /*$('html').unbind('click');*/ 19 }); 20 }); 21 }); 22}); 23 24//Dropdown-Sub-Menu-on-click 25 26 27//Accordion 28$(document).ready(function() { 29 //toggle the component with class accordion_body 30 $(".accordion_head").click(function() { 31 if ($('.accordion_body').is(':visible')) { 32 $(".accordion_body").slideUp(300); 33 $(".plusminus").text('+'); 34 } 35 if ($(this).next(".accordion_body").is(':visible')) { 36 $(this).next(".accordion_body").slideUp(300); 37 $(this).children(".plusminus").text('+'); 38 } else { 39 $(this).next(".accordion_body").slideDown(300); 40 $(this).children(".plusminus").text('-'); 41 } 42 }); 43}); 44//Accordion 45 46 47//hamburger-button 48 49 $(document).ready(function(){ 50 $(".hamburger-btn .fa-times").hide(); 51 $(".mob ul").hide(); 52 53 $(".hamburger-btn .fa-bars").click(function(){ 54 $(this).hide(); 55 $(".hamburger-btn .fa-times").hide(); 56 $(".hamburger-btn .fa-bars").show(); 57 $(".mob ul").show(200); 58 }); 59 60 $(".hamburger-btn .fa-times").click(function(){ 61 $(this).hide(); 62 $(".mob ul").hide(200); 63 $(".hamburger-btn .fa-bars").show(); 64 }); 65 }); 66 67 68/******************fade in slider script**************************/ 69var controls = document.querySelectorAll('.controls'); 70for(var i=0; i<controls.length; i++){ 71 controls[i].style.display = 'inline-block'; 72} 73 74var slides = document.querySelectorAll('#slides .slide'); 75var currentSlide = 0; 76var slideInterval = setInterval(nextSlide,3000); 77 78function nextSlide(){ 79 goToSlide(currentSlide+1); 80} 81 82function previousSlide(){ 83 goToSlide(currentSlide-1); 84} 85 86function goToSlide(n){ 87 slides[currentSlide].className = 'slide'; 88 currentSlide = (n+slides.length)%slides.length; 89 slides[currentSlide].className = 'slide showing'; 90} 91 92 93var playing = true; 94var pauseButton = document.getElementById('pause'); 95 96function pauseSlideshow(){ 97 pauseButton.innerHTML = '►'; // play character 98 playing = false; 99 clearInterval(slideInterval); 100} 101 102function playSlideshow(){ 103 pauseButton.innerHTML = '❚❚'; // pause character 104 playing = true; 105 slideInterval = setInterval(nextSlide,3000); 106} 107 108pauseButton.onclick = function(){ 109 if(playing){ pauseSlideshow(); } 110 else{ playSlideshow(); } 111}; 112 113var next = document.getElementById('next'); 114var previous = document.getElementById('previous'); 115 116next.onclick = function(){ 117 /*pauseSlideshow();*/ 118 nextSlide(); 119 clearInterval(slideInterval); 120 slideInterval = setInterval(nextSlide,3000); 121}; 122previous.onclick = function(){ 123 /* pauseSlideshow();*/ 124 previousSlide(); 125 clearInterval(slideInterval); 126 slideInterval = setInterval(nextSlide,3000); 127}; 128/******************fade in slider script**************************/
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.