1(function ($) { 2 3 "use strict"; 4 jQuery(document).ready(function($){ 5 6 // JQUERY LIGHT BOX 7 8 if ( $.isFunction($.fn.fluidbox) ) { 9 $('a').fluidbox(); 10 } 11 12 //ROUNDED TIMES COUNTDOWN 13 14 if(isExists('.rounded-countdown')){ 15 $( '.countdown-date-conf' ).each(function( index ) { 16 17 var settings = $( this ).data('conf'); 18 var remainingSec = $('.countdown').data('remaining-sec'); 19 settings.end = $.now() + remainingSec; 20 $('.countdown').ClassyCountdown( settings ); 21 22 }); 23 24 25 } 26 27 //NORMAL TIMES COUNTDOWN 28 29 if(isExists('#normal-countdown')){ 30 var date = $('#normal-countdown').data('date'); 31 $('#normal-countdown').countdown(date, function(event) { 32 var $this = $(this).html(event.strftime('' 33 + '<div class="time-sec"><h3 class="main-time">%D</h3> <span>Days</span></div>' 34 + '<div class="time-sec"><h3 class="main-time">%H</h3> <span>Hours</span></div>' 35 + '<div class="time-sec"><h3 class="main-time">%M</h3> <span>Mins</span></div>' 36 + '<div class="time-sec"><h3 class="main-time">%S</h3> <span>Sec</span></div>')); 37 }); 38 } 39 40 41 $('a[href="#"]').on('click', function(event){ 42 return; 43 }); 44 45 // COUNTDOWN TIME 46 47 CTECountdownTime(); 48 49 50 $('[data-nav-menu]').on('click', function(event){ 51 52 var $this = $(this), 53 visibleHeadArea = $this.data('nav-menu'); 54 55 $(visibleHeadArea).toggleClass('visible'); 56 57 }); 58 59 60 var winWidth = $(window).width(); 61 dropdownMenu(winWidth); 62 63 $(window).on('resize', function(){ 64 dropdownMenu(winWidth); 65 66 }); 67 68 // Circular Progress Bar 69 70 var isAnimated = false; 71 72 }); 73})(jQuery); 74 75 76 77function CTECountdownTime(){ 78 79 if(isExists('#clock')){ 80 $('#clock').countdown('2018/01/01', function(event){ 81 var $this = $(this).html(event.strftime('' 82 + '<div class="time-sec"><span class="title">%D</span> days </div>' 83 + '<div class="time-sec"><span class="title">%H</span> hours </div>' 84 + '<div class="time-sec"><span class="title">%M</span> minutes </div>' 85 + '<div class="time-sec"><span class="title">%S</span> seconds </div>')); 86 }); 87 } 88} 89function dropdownMenu(winWidth){ 90 91 if(winWidth > 767){ 92 93 jQuery('.main-menu li.drop-down').on('mouseover', function(){ 94 var $this = $(this), 95 menuAnchor = $this.children('a'); 96 97 menuAnchor.addClass('mouseover'); 98 99 }).on('mouseleave', function(){ 100 var $this = $(this), 101 menuAnchor = $this.children('a'); 102 103 menuAnchor.removeClass('mouseover'); 104 }); 105 106 }else{ 107 108 $('.main-menu li.drop-down > a').on('click', function(){ 109 110 if($(this).attr('href') == '#') return false; 111 if($(this).hasClass('mouseover')){ $(this).removeClass('mouseover'); } 112 else{ $(this).addClass('mouseover'); } 113 return false; 114 }); 115 } 116 117} 118 119function isExists(elem){ 120 if (jQuery(elem).length > 0) { 121 return true; 122 } 123 return false; 124} 125 126function initMap() { 127 128 // Create a new StyledMapType object, passing it an array of styles, 129 // and the name to be displayed on the map type control. 130 var styledMapType = new google.maps.StyledMapType( 131 [ 132 { 133 "featureType": "administrative", 134 "elementType": "all", 135 "stylers": [ 136 { 137 "saturation": "-100" 138 } 139 ] 140 }, 141 { 142 "featureType": "administrative.province", 143 "elementType": "all", 144 "stylers": [ 145 { 146 "visibility": "off" 147 } 148 ] 149 }, 150 { 151 "featureType": "landscape", 152 "elementType": "all", 153 "stylers": [ 154 { 155 "saturation": -100 156 }, 157 { 158 "lightness": 65 159 }, 160 { 161 "visibility": "on" 162 } 163 ] 164 }, 165 { 166 "featureType": "poi", 167 "elementType": "all", 168 "stylers": [ 169 { 170 "saturation": -100 171 }, 172 { 173 "lightness": "50" 174 }, 175 { 176 "visibility": "simplified" 177 } 178 ] 179 }, 180 { 181 "featureType": "road", 182 "elementType": "all", 183 "stylers": [ 184 { 185 "saturation": "-100" 186 } 187 ] 188 }, 189 { 190 "featureType": "road.highway", 191 "elementType": "all", 192 "stylers": [ 193 { 194 "visibility": "simplified" 195 } 196 ] 197 }, 198 { 199 "featureType": "road.arterial", 200 "elementType": "all", 201 "stylers": [ 202 { 203 "lightness": "30" 204 } 205 ] 206 }, 207 { 208 "featureType": "road.local", 209 "elementType": "all", 210 "stylers": [ 211 { 212 "lightness": "40" 213 } 214 ] 215 }, 216 { 217 "featureType": "transit", 218 "elementType": "all", 219 "stylers": [ 220 { 221 "saturation": -100 222 }, 223 { 224 "visibility": "simplified" 225 } 226 ] 227 }, 228 { 229 "featureType": "water", 230 "elementType": "geometry", 231 "stylers": [ 232 { 233 "hue": "#ffff00" 234 }, 235 { 236 "lightness": -25 237 }, 238 { 239 "saturation": -97 240 } 241 ] 242 }, 243 { 244 "featureType": "water", 245 "elementType": "labels", 246 "stylers": [ 247 { 248 "lightness": -25 249 }, 250 { 251 "saturation": -100 252 } 253 ] 254 } 255 ], 256 {name: 'Styled Map'}); 257 258 // Create a map object, and include the MapTypeId to add 259 // to the map type control. 260 261 var uluru = {lat: 56.946285, lng: 24.105078}; 262 var map = new google.maps.Map(document.getElementById('map'), { 263 zoom: 4, 264 center: uluru 265 });
266 267 var image = 'images/google-marker.png'; 268 var marker = new google.maps.Marker({ 269 position: uluru, 270 map: map, 271 icon: image 272 }); 273 //Associate the styled map with the MapTypeId and set it to display. 274 map.mapTypes.set('styled_map', styledMapType); 275 map.setMapTypeId('styled_map'); 276}
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.