1(function($) { 2 3 "use strict"; 4 5 /* - Contact Map */ 6 function initialize(obj) { 7 8 var lat = $('#'+obj).attr("data-lat"); 9 var lng = $('#'+obj).attr("data-lng"); 10 var contentString = $('#'+obj).attr("data-string"); 11 var myLatlng = new google.maps.LatLng(lat,lng); 12 var map, marker, infowindow; 13 var image = $('#'+obj).attr("data-marker"); 14 var zoomLevel = parseInt($("#"+obj).attr("data-zoom") ,10); 15 var styles = [{"featureType":"landscape","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","stylers":[{"saturation":-100},{"lightness":51},{"visibility":"simplified"}]},{"featureType":"road.highway","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"road.arterial","stylers":[{"saturation":-100},{"lightness":30},{"visibility":"on"}]},{"featureType":"road.local","stylers":[{"saturation":-100},{"lightness":40},{"visibility":"on"}]},{"featureType":"transit","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"administrative.province","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":-25},{"saturation":-100}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]}] 16 var styledMap = new google.maps.StyledMapType(styles,{name: "Styled Map"}); 17 var mapOptions = { 18 zoom: zoomLevel, 19 disableDefaultUI: true, 20 center: myLatlng, 21 scrollwheel: false, 22 mapTypeControlOptions: { 23 mapTypeIds: [google.maps.MapTypeId.ROADMAP, "map_style"] 24 } 25 } 26 map = new google.maps.Map(document.getElementById(obj), mapOptions); 27 map.mapTypes.set('map_style', styledMap); 28 map.setMapTypeId('map_style'); 29 infowindow = new google.maps.InfoWindow({ 30 content: contentString, 31 maxWidth: 300 32 }); 33 marker = new google.maps.Marker({ 34 position: myLatlng, 35 map: map, 36 icon: image 37 }); 38 google.maps.event.addListener(marker, 'click', function() { 39 infowindow.open(map,marker); 40 }); 41 } 42 43 window.initMap = function() {} 44 45 /* - Services Images */ 46 function srv_img() { 47 var width = $(window).width(); 48 var img_h = $(".services-box").height() * 2; 49 50 if( width => 768 ) { 51 $(".services-img").removeAttr("style"); 52 $( ".services-img img" ).remove(); 53 var img = $(".services-img").attr("data-image"); 54 $(".services-img").css({"background-image": "url('" + img + "')", "height":img_h}); 55 } else { 56 $(".services-img").removeAttr("style"); 57 $( ".services-img img" ).remove(); 58 var img = $(".services-img").attr("data-image"); 59 $( ".services-img" ).append("<img src='"+ img +"' alt='images' />") 60 } 61 } 62 63 /* Event - Document Ready */ 64 $(document).ready(function($) { 65 66 /* - Contact Map Initialization */ 67 if($("#map-canvas-contact").length==1){ 68 initialize("map-canvas-contact"); 69 } 70 71 /* - Portfolio Section */ 72 if($(".portfolio-section").length){ 73 var url; 74 $(".portfolio-section .portfolio-box").magnificPopup({ 75 delegate: "a.zoom-in", 76 type: "image", 77 tLoading: "Loading image #%curr%...", 78 mainClass: "mfp-img-mobile", 79 gallery: { 80 enabled: true, 81 navigateByImgClick: false, 82 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 83 }, 84 image: { 85 tError: "<a href="%url%">The image #%curr%</a> could not be loaded.", 86 } 87 }); 88 } 89 90 /* - Counter */ 91 if($(".statistics-section").length) { 92 $( ".statistics-section" ).each(function () 93 { 94 var $this = $(this); 95 var myVal = $(this).data("value"); 96 97 $this.appear(function() 98 { 99 var statistics_item_count = 0; 100 var statistics_count = 0; 101 statistics_item_count = $( "[id*='statistics_count-']" ).length; 102 103 for(var i=1; i<=statistics_item_count; i++) 104 { 105 statistics_count = $( "[id*='statistics_count-"+ i +"']" ).attr( "data-statistics_percent" ); 106 $("[id*='statistics_count-"+ i +"']").animateNumber({ number: statistics_count }, 4000); 107 } 108 }); 109 }); 110 } 111 112 srv_img(); 113 114 /* - Client Carousel */
115 if($(".client-carousel").length){ 116 $(".client-carousel").owlCarousel({ 117 autoplay: true, 118 loop: true, 119 dots: false, 120 nav: true, 121 responsive:{ 122 0:{ 123 items:1 124 }, 125 480:{ 126 items:2 127 }, 128 560:{ 129 items:2 130 }, 131 768:{ 132 items:3 133 }, 134 1200:{ 135 items:4 136 } 137 }, 138 margin: 0, 139 stagePadding: 0, 140 smartSpeed: 450 141 }); 142 } 143 144 145 }); 146 /* Event - Document Ready */ 147 148 $( window ).resize(function() { 149 var width = $(window).width(); 150 var height = $(window).height(); 151 152 srv_img(); 153 }); 154 155 156 $(window).load(function() { 157 /* - Portfolio Section */ 158 if($(".portfolio-fitrow").length){ 159 var $container = $(".portfolio-section .portfolio-fitrow"); 160 $container.isotope({ 161 layoutMode: 'fitRows', 162 itemSelector: ".portfolio-box", 163 gutter: 0, 164 transitionDuration: "0.5s" 165 }); 166 167 $("#filters a").on("click",function(){ 168 $('#filters a').removeClass("active"); 169 $(this).addClass("active"); 170 var selector = $(this).attr("data-filter"); 171 $container.isotope({ filter: selector }); 172 return false; 173 }); 174 } 175 }); 176 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.