1$(document).on('click', 'a.smooth', function (e) { 2 e.preventDefault(); 3 var $link = $(this); 4 var anchor = $link.attr('href'); 5 $('html, body').stop().animate({ 6 scrollTop: $(anchor).offset().top 7 }, 1000); 8}); 9 10jQuery(document).ready(function () { 11 $('.nav').on('click mousedown mouseup touchstart touchmove', 'a.has_children', function () { 12 if ($(this).next('ul').hasClass('open_t') && !$(this).parents('ul').hasClass('open_t')) { 13 $('.open_t').removeClass('open_t'); 14 return false; 15 } 16 $('.open_t').not($(this).parents('ul')).removeClass('open_t'); 17 $(this).next('ul').addClass('open_t'); 18 return false; 19 }); 20 $(document).on('click', ':not(.has_children, .has_children *)', function () { 21 if ($('.open_t').length > 0) { 22 $('.open_t').removeClass('open_t'); 23 $('.open_t').parent().removeClass('open'); 24 return false; 25 } 26 }); 27 28 $("#back-top").hide(); 29 30 $(function () { 31 $(window).scroll(function () { 32 if ($(this).scrollTop() > 100) { 33 $('#back-top').show(); 34 } else { 35 $('#back-top').hide(); 36 } 37 }); 38 39 $('#back-top a').click(function () { 40 $('body,html').animate({ 41 scrollTop: 0 42 }, 500); 43 return false; 44 }); 45 }); 46 47}); 48 49new WOW().init(); 50 51jQuery(document).ready(function () { 52 $('#status').fadeOut(); 53 $('#preloader').delay(350).fadeOut('slow'); 54 55 setTimeout(function() { 56 $('.left-slidebar').css('top', $('#mainheader').outerHeight(true)); 57 }, 1000); 58 59 $('.left-slidebar').css('top', $('#mainheader').outerHeight(true)); 60 var lb = $('.left-slidebar').outerHeight(true); 61 var minuslb = 0-lb; 62 $('.left-slidebar-in').css('top', minuslb); 63 $('.left-slidebar-in').css('position', 'absolute'); 64 $('.left-slidebar').css('height', lb); 65 66 $('#left-icon-navbar').on('click', function (e) { 67 if ($.cookie('slidebar') === 'left') { 68 $('#main-site').removeClass("main-slide-left"); 69 $('.left-slidebar').removeClass("left-bar-to-right"); 70 $('.left-slidebar-in').removeClass("left-bar-to-right-in"); 71 $.cookie('slidebar', ''); 72 } else { 73 $('#main-site').addClass("main-slide-left"); 74 $('.left-slidebar').addClass("left-bar-to-right"); 75 $('.left-slidebar-in').addClass("left-bar-to-right-in"); 76 $.cookie('slidebar', 'left'); 77 } 78 e.preventDefault(); 79 }); 80 81 $(function ($, win) { 82 $.fn.inViewport = function (cb) { 83 return this.each(function (i, el) { 84 function visPx() { 85 var H = $(this).height(), 86 r = el.getBoundingClientRect(), t = r.top, b = r.bottom; 87 return cb.call(el, Math.max(0, t > 0 ? H - t : (b < H ? b : H))); 88 } visPx(); 89 $(win).on("resize scroll", visPx); 90 }); 91 }; 92 }(jQuery, window)); 93 94 $(".counter").inViewport(function (px) { // Make use of the `px` argument!!! 95 if (px>0) { 96 if (!this.initNumAnim && !this.animProgress) { 97 this.initNumAnim = true; 98 this.animProgress = true; 99 $(this).prop('Counter', 0).animate({ 100 Counter: $(this).text() 101 }, { 102 duration: 3000, 103 step: function (now) { 104 $(this).text(Math.ceil(now)); 105 }, 106 complete: function() { 107 this.animProgress = false; 108 } 109 }); 110 } 111 } else { 112 this.initNumAnim = false; 113 } 114 }); 115 116 $('.sideup1').mouseover(function () { 117 setTimeout(function() { 118 $('.sideup1').css('margin-top', 0); 119 setTimeout(function() { 120 $('.sideup1').css('margin-top', ''); 121 }, 3000); 122 }, 1000); 123 return false; 124 }); 125 $('.sideup2').mouseover(function () { 126 setTimeout(function() { 127 $('.sideup2').css('margin-top', 0); 128 setTimeout(function() { 129 $('.sideup2').css('margin-top', ''); 130 }, 3000); 131 }, 1000); 132 return false; 133 }); 134 $('.sideup3').mouseover(function () { 135 setTimeout(function() { 136 $('.sideup3').css('margin-top', 0); 137 setTimeout(function() { 138 $('.sideup3').css('margin-top', ''); 139 }, 3000); 140 }, 1000); 141 return false; 142 }); 143 $('.sideup4').mouseover(function () { 144 setTimeout(function() { 145 $('.sideup4').css('margin-top', 0); 146 setTimeout(function() { 147 $('.sideup4').css('margin-top', ''); 148 }, 3000); 149 }, 1000); 150 return false;
151 }); 152})
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.