1// WOW Activate 2new WOW().init(); 3 4/* Smooth scrolling para anclas */ 5$(document).on('click','a.smooth', function(e){ 6 e.preventDefault(); 7 var $link = $(this); 8 var anchor = $link.attr('href'); 9 $('html, body').stop().animate({ 10 scrollTop: $(anchor).offset().top 11 }, 1000); 12}); 13 14(function($) { 15 $(document).ready(function() { 16 $.slidebars(); 17 }); 18}) (jQuery); 19 20(function( $ ) { 21 22 var $container = $('.masonry-container'); 23 $container.imagesLoaded( function () { 24 $container.masonry({ 25 columnWidth: '.masonry-item', 26 itemSelector: '.masonry-item' 27 }); 28 }); 29 30})(jQuery); 31 32// Syntax Enable 33SyntaxHighlighter.all(); 34 35jQuery(document).ready(function () { 36 $('.nav').on('click mousedown mouseup touchstart touchmove', 'a.has_children', function () { 37 if ( $(this).next('ul').hasClass('open_t') && !$(this).parents('ul').hasClass('open_t')) { 38 $('.open_t').removeClass('open_t'); 39 return false; 40 } 41 $('.open_t').not($(this).parents('ul')).removeClass('open_t'); 42 $(this).next('ul').addClass('open_t'); 43 return false; 44 }); 45 $(document).on('click', ':not(.has_children, .has_children *)', function() { 46 if( $('.open_t').length > 0 ) { 47 $('.open_t').removeClass('open_t'); 48 $('.open_t').parent().removeClass('open'); 49 return false; 50 } 51 }); 52 53 // hide #back-top first 54 $("#back-top").hide(); 55 56 // fade in #back-top 57 $(function () { 58 $(window).scroll(function () { 59 if ($(this).scrollTop() > 100) { 60 $('#back-top').fadeIn(); 61 } else { 62 $('#back-top').fadeOut(); 63 } 64 }); 65 66 // scroll body to 0px on click 67 $('#back-top a').click(function () { 68 $('body,html').animate({ 69 scrollTop: 0 70 }, 500); 71 return false; 72 }); 73 }); 74 75}); 76 77 78 79jQuery(document).ready(function() { // makes sure the whole site is loaded 80 $('#status').fadeOut(); // will first fade out the loading animation 81 $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. 82 $('body').delay(350).css({'overflow':'visible'}); 83}); 84 85 86// full-width-checkbox 87$("[name='full-width-checkbox']").bootstrapSwitch(); 88 89 90$('.col-megamenu').matchHeight({ 91 byRow: true, 92 property: 'height', 93 target: null, 94 remove: false 95}); 96 97/*$(document).ready(function(){ 98 $('ul.nav li.dropdown').hover(function() { 99 $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(200); 100 }, function() { 101 $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(200); 102 }); 103});*/ 104 105$(function(){ 106 $('.dropdown').hover(function() { 107 if ($(window).width() > 767) $(this).addClass('open'); 108 }, 109 function() { 110 if ($(window).width() > 767) $(this).removeClass('open'); 111 }); 112}); 113 114/** 115-* jQuery scroroller Plugin 1.0 116-* 117-* http://www.tinywall.net/ 118-* 119-* Developers: Arun David, Boobalan 120-* Copyright (c) 2014 121-*/ 122(function($){ 123 $(window).on("load",function(){ 124 $(document).scrollzipInit(); 125 $(document).rollerInit(); 126 }); 127 $(window).on("load scroll resize", function(){ 128 $('.numscroller').scrollzip({ 129 showFunction : function() { 130 numberRoller($(this).attr('data-slno')); 131 }, 132 wholeVisible : false, 133 }); 134 }); 135 $.fn.scrollzipInit=function(){ 136 $('body').prepend("<div style='position:fixed;top:0px;left:0px;width:0;height:0;' id='scrollzipPoint'></div>" ); 137 }; 138 $.fn.rollerInit=function(){ 139 var i=0; 140 $('.numscroller').each(function() { 141 i++; 142 $(this).attr('data-slno',i); 143 $(this).addClass("roller-title-number-"+i); 144 }); 145 }; 146 $.fn.scrollzip = function(options){ 147 var settings = $.extend({ 148 showFunction : null, 149 hideFunction : null, 150 showShift : 0, 151 wholeVisible : false, 152 hideShift : 0, 153 }, options); 154 return this.each(function(i,obj){ 155 $(this).addClass('scrollzip'); 156 if ( $.isFunction( settings.showFunction ) ){ 157 if( 158 !$(this).hasClass('isShown')&& 159 ($(window).outerHeight()+$('#scrollzipPoint').offset().top-settings.showShift)>($(this).offset().top+((settings.wholeVisible)?$(this).outerHeight():0))&& 160 ($('#scrollzipPoint').offset().top+((settings.wholeVisible)?$(this).outerHeight():0))<($(this).outerHeight()+$(this).offset().top-settings.showShift) 161 ){ 162 $(this).addClass('isShown'); 163 settings.showFunction.call( this ); 164 } 165 } 166 if ( $.isFunction( settings.hideFunction ) ){ 167 if( 168 $(this).hasClass('isShown')&& 169 (($(window).outerHeight()+$('#scrollzipPoint').offset().top-settings.hideShift)<($(this).offset().top+((settings.wholeVisible)?$(this).outerHeight():0))|| 170 ($('#scrollzipPoint').offset().top+((settings.wholeVisible)?$(this).outerHeight():0))>($(this).outerHeight()+$(this).offset().top-settings.hideShift)) 171 ){ 172 $(this).removeClass('isShown'); 173 settings.hideFunction.call( this ); 174 } 175 } 176 return this; 177 }); 178 }; 179 function numberRoller(slno){ 180 var min=$('.roller-title-number-'+slno).attr('data-min'); 181 var max=$('.roller-title-number-'+slno).attr('data-max'); 182 var timediff=$('.roller-title-number-'+slno).attr('data-delay'); 183 var increment=$('.roller-title-number-'+slno).attr('data-increment'); 184 var numdiff=max-min; 185 var timeout=(timediff*1000)/numdiff; 186 //if(numinc<10){ 187 //increment=Math.floor((timediff*1000)/10); 188 //}//alert(increment); 189 numberRoll(slno,min,max,increment,timeout); 190 191 } 192 function numberRoll(slno,min,max,increment,timeout){//alert(slno+"="+min+"="+max+"="+increment+"="+timeout); 193 if(min<=max){ 194 $('.roller-title-number-'+slno).html(min); 195 min=parseInt(min)+parseInt(increment); 196 setTimeout(function(){numberRoll(eval(slno),eval(min),eval(max),eval(increment),eval(timeout))},timeout); 197 }else{ 198 $('.roller-title-number-'+slno).html(max); 199 } 200 } 201})(jQuery);
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.