1// JavaScript Document 2$(document).ready(function () { 3 4 var options = { 5 offset: 100, 6 offsetSide: 'top', 7 classes: { 8 clone: 'header--clone', 9 stick: 'header--stick', 10 unstick: 'header--unstick' 11 } 12 }; 13 var header = new Headhesive('#header', options); 14 $('#header.header--clone').attr('id', 'header2'); 15 $('#mobile_toggle').clone().prependTo($('#header2')); 16 17 $('#header .com-link').clone().prependTo($('#left_menu .sb-menu')); 18 $('#container').has('.list-description').addClass('pro_cate_wrap'); 19 20new WOW().init(); 21 22$("#gotop").click(function(){ 23 jQuery("html,body").animate({ 24 scrollTop:0 25 },1000); 26 }); 27 $(window).scroll(function() { 28 if ( $(this).scrollTop() > 150){ 29 $('#gotop').fadeIn("fast"); 30 } else { 31 $('#gotop').stop().fadeOut("fast"); 32 } 33 }); 34 35 36 $('.js-anchor-link').click(function(e){ 37 e.preventDefault(); 38 var target = $($(this).attr('href')); 39 var _header_height=$('#header2').outerHeight(); 40 console.log(_header_height); 41 if(target.length){ 42 var scrollTo = target.offset().top-(_header_height); 43 $('body, html').animate({scrollTop: scrollTo+'px'}, 800); } 44 $('#nav li a').removeClass('active'); 45 $(this).addClass('active') 46 }); 47 48 }); 49 50$(function () { 51 52 $('.popup-with-zoom-anim').magnificPopup({ 53 type: 'inline', 54 55 fixedContentPos: false, 56 fixedBgPos: true, 57 58 overflowY: 'auto', 59 60 closeBtnInside: true, 61 preloader: false, 62 63 midClick: true, 64 removalDelay: 300, 65 mainClass: 'my-mfp-zoom-in' 66 }); 67 68 $(document).on('click', '.popup-modal-dismiss', function (e) { 69 e.preventDefault(); 70 $.magnificPopup.close(); 71 }); 72}); 73 74 75$(document).ready(function() { 76 $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ 77 disableOn: 700, 78 type: 'iframe', 79 mainClass: 'mfp-fade', 80 removalDelay: 160, 81 preloader: false, 82 83 fixedContentPos: false 84 }); 85 // $('select').niceSelect(); 86 87 // wrap map-container 88 $(".delar iframe").wrap('<div class="map-container"></div>'); 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.