1(function($){ 2 "use strict"; 3 jQuery(document).ready(function($){ 4 $('.zoom-gallery').magnificPopup({ 5 delegate: '.image-source-link', 6 type: 'image', 7 closeOnContentClick: false, 8 closeBtnInside: false, 9 mainClass: 'mfp-with-zoom mfp-img-mobile', 10 image: { 11 verticalFit: true, 12 titleSrc: function(item) { 13 return '<a class="image-source-link" href="'+item.el.attr('data-source')+'" target="_blank">image source</a>'; 14 } 15 }, 16 gallery: { 17 enabled: true 18 }, 19 zoom: { 20 enabled: true, 21 duration: 300, // don't foget to change the duration also in CSS 22 opener: function(element) { 23 return element.find('i'); 24 } 25 } 26 27 }); 28 29 if($('.countdown').length > 0){ 30 $('.countdown').countdown({ 31 target : local_vars.comming_date, 32 format : '4', 33 timezone : '0' 34 }); 35 } 36 if($('.countdownv3').length > 0){ 37 $('.countdownv3').countdown({ 38 target : local_vars.comming_date, 39 format : '7', 40 timezone : '0' 41 }); 42 } 43 $(window).scroll(startCounter); 44 //$(window).scroll(startcircularCounter); 45 $(window).on('load', function(){ 46 if($('.masonary-wrapper').length > 0){ 47 $('.masonary-wrapper').isotope({ 48 itemSelector: '.masonary-item', 49 //masonry: { 50 //columnWidth: 350, 51 //gutter: 20 52 //} 53 }); 54 $(".masonary-item").each(function() { 55 $(this).css("height", $(this).outerHeight()); 56 }); 57 } 58 }); 59 /*--------- search icon jquery --------*/ 60 function startcircularCounter() { 61 if($('.section-circular-counter').length > 0){ 62 if(isScrolledIntoView('.section-circular-counter') == true){ 63 $(window).off("scroll", startcircularCounter); 64 var circle_count = $('.section-circular-wrapper-listing').data('count'); 65 var i; 66 var canvas = []; 67 var context =[]; 68 var x = []; 69 var y =[]; 70 var endPercent = []; 71 var start_angle = []; 72 var end_angle =[]; 73 var z=[]; 74 var steps=[]; 75 var step = []; 76 var color = []; 77 for( i = 1; i <= circle_count; i++ ) { 78 color[i] = $('.section-circular-wrapper-listing li').eq(i-1).data('color'); 79 canvas[i] = document.getElementById('myCanvas'+i); 80 x[i] = canvas[i].width / 2; 81 y[i] = canvas[i].height / 2; 82 83 context[i] = canvas[i].getContext("2d"); 84 endPercent[i] = document.getElementById('skill'+i).value; 85 step[i] = 0; 86 abc(context[i], x[i], y[i], endPercent[i],steps[i],step[i], color[i]); 87 } 88 } 89 } 90 } 91 92 $("#accordion > div .accordian-tab").click(function(e){ 93 e.preventDefault(); 94 if(false == $(this).next().is(':visible')) { 95 $('#accordion .accordion-content').slideUp(300); 96 $('.accordion-arrow i').removeClass('fa-minus'); 97 $('.accordion-arrow i').addClass('fa-plus'); 98 } 99 $(this).next().slideToggle(300); 100 $(this).find('i').toggleClass('fa-plus fa-minus'); 101 }); 102 $('#accordion div.accordion-content:first').show(); 103 $('.aadi-tabs ul.our-work-listing-element li a').click(function(){ 104 var $container1 = $(this).closest('.aadi-isotope-wrapper').find('.our-work-gallery-grid'); 105 var selector = $(this).attr('data-filter'); 106 $container1.isotope({ 107 filter: selector, 108 animationOptions: { 109 duration: 750, 110 easing: 'linear', 111 queue: false, 112 } 113 }); 114 return false; 115 }); 116 117 }); 118 function abc(context, x, y, endPercent,steps,step,color){ 119 var time = $('.section-circular-wrapper-listing').data('time'); 120 z = setInterval(function(){ 121 steps = endPercent - 0; 122 var radius = 85; 123 var text; 124 125 if(step > steps){ 126 window.clearInterval(z); 127 }else{ 128 text = step + "%"; 129 start_angle = (1.5 + (step/50))*Math.PI; 130 end_angle = (1.5 + (++step/50))*Math.PI; 131 context.beginPath(); 132 context.arc(x, y, radius, start_angle, end_angle, false); 133 context.lineWidth = 5; 134 context.strokeStyle = color; 135 context.stroke(); 136 context.font = '36px' + ' ' + 'open_sansbold'; 137 context.textAlign = 'center'; 138 context.textBaseline = 'middle'; 139 context.fillStyle = 'white'; 140 context.clearRect(x - 33*1.5, y - 33/2, 33*3, 30); 141 context.fillText(text, x , y ); 142 } 143 }, time) 144 } 145 function isScrolledIntoView(elem) 146 { 147 var $elem = $(elem); 148 var $window = $(window); 149 150 var docViewTop = $window.scrollTop(); 151 var docViewBottom = docViewTop + $window.height(); 152 153 var elemTop = $elem.offset().top; 154 var elemBottom = elemTop + $elem.height(); 155 156 return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); 157 } 158 function startCounter() { 159 if($('.count').length > 0){ 160 if(isScrolledIntoView('.count:eq(0)') == true){ 161 $(window).off("scroll", startCounter); 162 $('.count').each(function () { 163 var $this = $(this); 164 jQuery({ Counter: 0 }).animate({ Counter: $this.data('count') }, { 165 duration: 2000, 166 easing: 'swing', 167 step: function () { 168 $this.text(Math.ceil(this.Counter)); 169 } 170 });
171 }); 172 } 173 } 174 } 175 176 jQuery(function($){$("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<span class="plus add">+</span>').prepend('<span class="minus sub">-</span>'),$(document).on("click",".plus, .minus",function(){var t=$(this).closest(".quantity").find(".qty"),a=parseFloat(t.val()),n=parseFloat(t.attr("max")),s=parseFloat(t.attr("min")),e=t.attr("step");a&&""!==a&&"NaN"!==a||(a=0),(""===n||"NaN"===n)&&(n=""),(""===s||"NaN"===s)&&(s=0),("any"===e||""===e||void 0===e||"NaN"===parseFloat(e))&&(e=1),$(this).is(".plus")?t.val(n&&(n==a||a>n)?n:a+parseFloat(e)):s&&(s==a||s>a)?t.val(s):a>0&&t.val(a-parseFloat(e)),t.trigger("change")})}); 177})(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.