1jQuery(function($) { 2 "use strict"; 3 4 // hide #back-top first 5 $("#back-top").hide(); 6 7 // fade in #back-top 8 $(window).scroll(function () { 9 if ($(this).scrollTop() > 100) { 10 $('#back-top').fadeIn(); 11 } else { 12 $('#back-top').fadeOut(); 13 } 14 }); 15 16 // toggle submenu for mobile menu 17 $( ".sub_menu_toggle" ).on("click", function(){ 18 $(this).next(".sub-menu").toggle(); 19 }); 20 21 // toggle submenu for mobile menu 22 $( ".mega_menu_toggle" ).on("click", function(){ 23 $(this).next(".ot-mega-menu").toggle(); 24 }); 25 26 $('#insta-owl').owlCarousel({ 27 loop:true, 28 margin:5, 29 nav:false, 30 responsive:{ 31 0:{ 32 items:1 33 }, 34 600:{ 35 items:3 36 }, 37 1000:{ 38 items:3 39 } 40 } 41 }) 42 43 $('#mini-owl').owlCarousel({ 44 loop:true, 45 margin:5, 46 nav:false, 47 responsive:{ 48 0:{ 49 items:1 50 }, 51 600:{ 52 items:2 53 }, 54 1000:{ 55 items:2 56 } 57 } 58 }) 59 60 jQuery('.theiaStickySidebar', 'body').parent().theiaStickySidebar({ 61 // Settings 62 additionalMarginTop: 30 63 }); 64 65 // Tabbed blocks 66 $(".short-tabs").each(function () { 67 var thisel = $(this); 68 thisel.children("div").eq(0).addClass("active"); 69 thisel.children("ul").children("li").eq(0).addClass("active"); 70 }); 71 72 $(".short-tabs > ul > li a").on("click", function() { 73 var thisel = $(this).parent(); 74 thisel.siblings(".active").removeClass("active"); 75 thisel.addClass("active"); 76 thisel.parent().siblings("div.active").removeClass("active"); 77 thisel.parent().siblings("div").eq(thisel.index()).addClass("active"); 78 return false; 79 }); 80 81 // Accordion blocks 82 $(".accordion > div > a").on("click", function() { 83 var thisel = $(this).parent(); 84 if (thisel.hasClass("active")) { 85 thisel.removeClass("active").children("div").animate({ 86 "height": "toggle", 87 "opacity": "toggle", 88 "padding-top": "toggle" 89 }, 300); 90 return false; 91 } 92 93 // thisel.siblings("div").removeClass("active"); 94 thisel.siblings("div").each(function () { 95 var tz = $(this); 96 if (tz.hasClass("active")) { 97 tz.removeClass("active").children("div").animate({ 98 "height": "toggle", 99 "opacity": "toggle", 100 "padding-top": "toggle" 101 }, 300); 102 } 103 }); 104 105 // thisel.addClass("active"); 106 thisel.addClass("active").children("div").animate({ 107 "height": "toggle", 108 "opacity": "toggle", 109 "padding-top": "toggle" 110 }, 300); 111 return false; 112 }); 113 114 $(".alert-box .close-alert, .coloralert .close-alert").on("click", function() { 115 $(this).parent().fadeOut(); 116 return false; 117 }); 118 119});
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.