1// MENU UPDATED V 1.5=============== // 2if ( $(window).width() > 767) { 3 jQuery('ul.sf-menu').superfish({ 4 animation: {opacity:'show'}, 5 animationOut: {opacity:'hide'} 6 }); 7} 8else { 9 jQuery('ul.sf-menu').superfish({ 10 animation: {opacity:'visible'}, 11 animationOut: {opacity:'visible'} 12 }); 13} 14 15// HOVER IMAGE MAGNIFY V.1.5========= // 16 //Set opacity on each span to 0% 17 $(".photo_icon").css({'opacity':'0'}); 18 19 $('.picture a').hover( 20 function() { 21 $(this).find('.photo_icon').stop().fadeTo(800, 1); 22 }, 23 function() { 24 $(this).find('.photo_icon').stop().fadeTo(800, 0); 25 } 26 ) 27 28// STICKY NAV V.1.5========= // 29$(window).scroll(function() { 30 if ($(this).scrollTop() > 1){ 31 $('nav').addClass("sticky"); 32 } 33 else{ 34 $('nav').removeClass("sticky"); 35 } 36}); 37 38// MENU MOBILE ==========// 39// Collpsable menu mobile and tablets 40$('#mobnav-btn').click( 41function () { 42 $('.sf-menu').slideToggle(400)("xactive"); 43}); 44 45$('.mobnav-subarrow').click( 46function () { 47 $(this).parent().toggleClass("xpopdrop"); 48}); 49 50 51 52// SCROLL TO TOP =============================================================================== 53$(function() { 54 $(window).scroll(function() { 55 if($(this).scrollTop() != 0) { 56 $('#toTop').fadeIn(); 57 } else { 58 $('#toTop').fadeOut(); 59 } 60 }); 61 62 $('#toTop').click(function() { 63 $('body,html').animate({scrollTop:0},500); 64 }); 65 66}); 67 68if( window.innerWidth < 770 ) { 69 $("button.forward, button.backword").click(function() { 70 $("html, body").animate({ scrollTop: 115 }, "slow"); 71 return false; 72}); 73} 74 75if( window.innerWidth < 500 ) { 76 $("button.forward, button.backword").click(function() { 77 $("html, body").animate({ scrollTop: 245 }, "slow"); 78 return false; 79}); 80} 81if( window.innerWidth < 340 ) { 82 $("button.forward, button.backword").click(function() { 83 $("html, body").animate({ scrollTop: 280 }, "slow"); 84 return false; 85}); 86} 87 88<!-- Toggle --> 89 $('.togglehandle').click(function() 90 { 91 $(this).toggleClass('active') 92 $(this).next('.toggledata').slideToggle() 93 }); 94 95// alert close 96 $('.clostalert').click(function() 97 { 98 $(this).parent('.alert').fadeOut () 99 }); 100 101<!-- Tooltip --> 102$('.tooltip-1').tooltip({html:true}); 103 104<!-- Accrodian --> 105 var $acdata = $('.accrodian-data'), 106 $acclick = $('.accrodian-trigger'); 107 108 $acdata.hide(); 109 $acclick.first().addClass('active').next().show(); 110 111 $acclick.on('click', function(e) { 112 if( $(this).next().is(':hidden') ) { 113 $acclick.removeClass('active').next().slideUp(300); 114 $(this).toggleClass('active').next().slideDown(300); 115 } 116 e.preventDefault(); 117 }); 118 119 $('.po-markup > .po-link').popover({ 120 trigger: 'hover', 121 html: true, // must have if HTML is contained in popover 122 123 // get the title and conent 124 title: function() { 125 return $(this).parent().find('.po-title').html(); 126 }, 127 content: function() { 128 return $(this).parent().find('.po-body').html(); 129 }, 130 131 container: 'body', 132 placement: 'top' 133 134 }); 135 //accordion 136function toggleChevron(e) { 137 $(e.target) 138 .prev('.panel-heading') 139 .find("i.indicator") 140 .toggleClass('icon-plus icon-minus'); 141} 142$('#accordion').on('hidden.bs.collapse', toggleChevron); 143$('#accordion').on('shown.bs.collapse', toggleChevron); 144$('#accordion').on('hidden.bs.collapse', function () { 145}) 146<!-- testimonial carousel --> 147$(document).ready(function() { 148 //Set the carousel options 149 $('#quote-carousel').carousel({ 150 pause: true, 151 interval: 6000, 152 }); 153}); 154 155//Pace holder 156$('input, textarea').placeholder(); 157 158 159 160 161
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.