1jQuery(document).ready(function($){ 2 "use strict"; 3 4 5 /* ---------------------------------------------------------------------- */ 6 /* Prettyphoto 7 /* ---------------------------------------------------------------------- */ 8 if($("[rel^='prettyPhoto']").length){ 9 $("[rel^='prettyPhoto']").prettyPhoto(); 10 } 11 12 /* ---------------------------------------------------------------------- */ 13 /* ToolTip 14 /* ---------------------------------------------------------------------- */ 15 if($("[data-toggle='tooltip']").length){ 16 $('[data-toggle="tooltip"]').tooltip(); 17 } 18 19 /* ---------------------------------------------------------------------- */ 20 /* Owl Slider 21 /* ---------------------------------------------------------------------- */ 22 if($("#owl-demo").length){ 23 24 var owl = $("#owl-demo"); 25 26 owl.owlCarousel({ 27 itemsCustom : [ 28 [0, 2], 29 [450, 2], 30 [700, 3], 31 [1000, 5], 32 [1200, 5], 33 [1360, 6], 34 ], 35 autoPlay: 1300, 36 stopOnHover: true, 37 loop:true, 38 navigation : true, 39 navigationText: ["<i class='fa fa-chevron-left fa-2x text-black'></i>", "<i class='fa fa-chevron-right fa-2x text-black'></i>"] 40 }); 41 } 42 /* ---------------------------------------------------------------------- */ 43 /* Owl Slider 44 /* ---------------------------------------------------------------------- */ 45 if($(".owl-client").length){ 46 var owl = $(".owl-client"); 47 owl.owlCarousel({ 48 itemsCustom : [ 49 [0, 2], 50 [450, 2], 51 [700, 3], 52 [1000, 4], 53 [1200, 4], 54 [1360, 4], 55 ], 56 navigation : true 57 }); 58 } 59 60 /* ---------------------------------------------------------------------- */ 61 /* Owl Slider 62 /* ---------------------------------------------------------------------- */ 63 if($(".owl-banner").length){ 64 65 var owl = $(".owl-banner"); 66 67 owl.owlCarousel({ 68 itemsCustom : [ 69 [0, 2], 70 [450, 2], 71 [700, 3], 72 [1000, 3], 73 [1200, 3], 74 [1360, 3], 75 ], 76 navigation : true 77 }); 78 } 79 80 /* ---------------------------------------------------------------------- */ 81 /* Sticky header 82 /* ---------------------------------------------------------------------- */ 83 if($('.header-style-333').length){ 84 // grab the initial top offset of the navigation 85 //var stickyNavTop = $('#mainbanner').offset().top; 86 var stickyNavTop = 40; 87 // our function that decides weather the navigation bar should have "fixed" css position or not. 88 var stickyNav = function(){ 89 var scrollTop = $(window).scrollTop(); // our current vertical position from the top 90 // if we've scrolled more than the navigation, change its position to fixed to stick to top, 91 // otherwise change it back to relative 92 if (scrollTop > stickyNavTop) { 93 $('.header-style-3').addClass('kf_sticky'); 94 } else { 95 $('.header-style-3').removeClass('kf_sticky'); 96 } 97 }; 98 stickyNav(); 99 // and run it again every time you scroll 100 $(window).scroll(function() { 101 stickyNav(); 102 }); 103 } 104 105 /* ---------------------------------------------------------------------- */ 106 /* Responsive DL Menu 107 /* ---------------------------------------------------------------------- */ 108 if(typeof($.fn.dlmenu) == 'function'){ 109 $('#kode-responsive-navigation').each(function(){ 110 $(this).find('.dl-submenu').each(function(){ 111 if( $(this).siblings('a').attr('href') && $(this).siblings('a').attr('href') != '#' ){ 112 var parent_nav = $('<li class="menu-item kode-parent-menu"></li>'); 113 parent_nav.append($(this).siblings('a').clone()); 114 115 $(this).prepend(parent_nav); 116 } 117 }); 118 $(this).dlmenu(); 119 }); 120 } 121 122 /* ---------------------------------------------------------------------- */ 123 /* Progress Bar 124 /* ---------------------------------------------------------------------- */ 125 if($('.custom-skills .progress .progress-bar').length){ 126 $('.custom-skills .progress .progress-bar').progressbar({display_text: 'fill'}); 127 } 128 129 /* ---------------------------------------------------------------------- */ 130 /* Circle Progress 131 /* ---------------------------------------------------------------------- */ 132 if($('.circle-progress').length){ 133 $('.circle-progress').percentcircle({ 134 animate : true, 135 diameter : 1.0, 136 guage: 0.3, 137 coverBg: '#fff', 138 bgColor: '#efefef', 139 fillColor: '#CC3367', 140 percentSize: '10px', 141 }); 142 } 143 144 /* ---------------------------------------------------------------------- */ 145 /* Scroll To TOp 146 /* ---------------------------------------------------------------------- */ 147 if($("#link").length){ 148 $("#link").click(function() { 149 scrollToAnchor('id3'); 150 }); 151 } 152 153 /* ---------------------------------------------------------------------- */ 154 /* Accordion Script 155 /* ---------------------------------------------------------------------- */ 156 if($('.accordion').length){ 157 //custom animation for open/close 158 $.fn.slideFadeToggle = function(speed, easing, callback) { 159 return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); 160 }; 161 162 $('.accordion').accordion({ 163 defaultOpen: '#section2', 164 cookieName: 'nav', 165 speed: 'slow', 166 animateOpen: function (elem, opts) { //replace the standard slideUp with custom function 167 elem.next().stop(true, true).slideFadeToggle(opts.speed); 168 }, 169 animateClose: function (elem, opts) { //replace the standard slideDown with custom function 170 elem.next().stop(true, true).slideFadeToggle(opts.speed); 171 } 172 }); 173 } 174 175 /* ---------------------------------------------------------------------- */ 176 /* CountDown Script 177 /* ---------------------------------------------------------------------- */ 178 if($('#defaultCountdown').length){ 179 var austDay = new Date(); 180 austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26); 181 $('#defaultCountdown').countdown({until: austDay}); 182 $('#year').text(austDay.getFullYear()); 183 } 184 185 /* ---------------------------------------------------------------------- */ 186 /* Select Menu 187 /* ---------------------------------------------------------------------- */ 188 if($(".select-menu").length){ 189 $(".select-menu").selectbox(); 190 } 191 192 /* ---------------------------------------------------------------------- */ 193 /* Range Slider 194 /* ---------------------------------------------------------------------- */ 195 if($(".range").length){ 196 $(".range").slider(); 197 $(".range").on("slide", function(slideEvt) { 198 $(".range-slider").text(slideEvt.value); 199 }); 200 } 201 202 /* ---------------------------------------------------------------------- */ 203 /* Range Slider 204 /* ---------------------------------------------------------------------- */ 205 if($(".range2").length){ 206 $(".range2").slider(); 207 $(".range2").on("slide", function(slideEvt) { 208 $(".range-slider2").text(slideEvt.value); 209 }); 210 } 211 212 /* ---------------------------------------------------------------------- */ 213 /* Bx Slider 214 /* ---------------------------------------------------------------------- */
215 if($(".js_bxslider").length || $(".js_bxslider_controls").length){ 216 $('.js_bxslider').bxSlider({ 217 auto:true, 218 adaptiveHeight: true, 219 prevText: "<i class='fa fa-chevron-left fa-2x text-white'></i>", 220 nextText: "<i class='fa fa-chevron-right fa-2x text-white'></i>" 221 }); 222 $('.js_bxslider_controls').bxSlider({ 223 auto:true, 224 adaptiveHeight: true, 225 prevText: "<i class='fa fa-chevron-left fa-3x text-black'></i>", 226 nextText: "<i class='fa fa-chevron-right fa-3x text-black'></i>" 227 }); 228 } 229 230 /* ---------------------------------------------------------------------- */ 231 /* Bx Slider Thumbnail 232 /* ---------------------------------------------------------------------- */ 233 if($(".bxslider-thums").length){ 234 $('.bxslider-thums').bxSlider({ 235 auto:true, 236 pagerCustom: '#bx-pager' 237 }); 238 } 239 240 /* ---------------------------------------------------------------------- */ 241 /* Counter 242 /* ---------------------------------------------------------------------- */ 243 if($('.counter').length) { 244 $('.counter').counterUp({ 245 delay: 10, 246 time: 1000 247 }); 248 } 249 250 /* ---------------------------------------------------------------------- */ 251 /* Countdown 252 /* ---------------------------------------------------------------------- */ 253 if($('.countdown').length){ 254 $('.countdown').final_countdown({ 255 'start': 1362139200, 256 'end': 1388461320, 257 'now': 1387461319 258 }); 259 } 260 261}); 262/* ---------------------------------------------------------------------- */ 263/* Back to Top 264/* ---------------------------------------------------------------------- */ 265function scrollToAnchor(aid){ 266 var aTag = $("a[name='"+ aid +"']"); 267 $('html,body').animate({scrollTop: aTag.offset().top},'slow'); 268} 269/* ---------------------------------------------------------------------- */ 270/* Google Map Function for Custom Style 271/* ---------------------------------------------------------------------- */ 272function initialize() { 273 var MY_MAPTYPE_ID = 'custom_style'; 274 var map; 275 var brooklyn = new google.maps.LatLng(40.6743890, -73.9455); 276 var featureOpts = [ 277 {"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"color":"#f7f1df"}]},{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#d0e3b4"}]},{"featureType":"landscape.natural.terrain","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"color":"#fbd3da"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#bde6ab"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffe15f"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#efd151"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"black"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"color":"#cfb2db"}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a2daf2"}]} 278 279 ]; 280 var mapOptions = { 281 zoom: 12, 282 center: brooklyn, 283 mapTypeControlOptions: { 284 mapTypeIds: [google.maps.MapTypeId.ROADMAP, MY_MAPTYPE_ID] 285 }, 286 mapTypeId: MY_MAPTYPE_ID 287 }; 288 289 map = new google.maps.Map( 290 document.getElementById('map-canvas'), 291 mapOptions 292 ); 293 294 var styledMapOptions = { 295 name: 'Custom Style' 296 }; 297 298 var customMapType = new google.maps.StyledMapType(featureOpts, styledMapOptions); 299 300 map.mapTypes.set(MY_MAPTYPE_ID, customMapType); 301}
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.