1(function($) { 2 "use strict"; 3 4 $(function() { 5 6 /* ---------------------------------------------------------------------- 7 Flickr 8 ---------------------------------------------------------------------- */ 9 10 $('.flickr-cbox').jflickrfeed({ 11 limit: 6, 12 qstrings: { 13 id: '52617155@N08' 14 }, 15 itemTemplate: '<li>' + '<a rel="colorbox" href="{{image}}" title="{{title}}">' + '<img src="{{image_s}}" alt="{{title}}" />' + '</a>' + '</li>' 16 }, function(data) { 17 18 $(".flickr-cbox a").nivoLightbox({ 19 effect: 'fadeScale' 20 }); 21 22 }); 23 24 /* ---------------------------------------------------------------------- 25 Revolution Slider 26 ---------------------------------------------------------------------- */ 27 28 /* Fullwidth */ 29 var tpj = jQuery; 30 var revapi1; 31 tpj(document).ready(function() { 32 if (tpj("#rev_slider_fullwidth").revolution == undefined) { 33 revslider_showDoubleJqueryError("#rev_slider_fullwidth"); 34 } else { 35 revapi1 = tpj("#rev_slider_fullwidth").show().revolution({ 36 sliderType: "standard", // "standard", hero, carousel 37 jsFileLocation: "revolution/js/", 38 sliderLayout: "fullwidth", // "auto", fullwidth, fullscreen 39 dottedOverlay: "none", // "none", twoxtwo, threexthree, twoxtwowhite, threexthreewhite 40 delay: 9000, // "9000" 41 autoHeight: "off", // on, "off" 42 responsiveLevels:[4064,1024,778,480], // "4064" 43 gridwidth: 1200, // "1200" 44 gridheight: 600, // "700" 45 navigation: { 46 keyboardNavigation: "off", // "on", off 47 keyboard_direction: "horizontal", // "horizontal", vertical 48 mouseScrollNavigation: "off", // on, "off" 49 onHoverStop: "off", // "on", off 50 touch: { 51 touchenabled: "on", // "on", off 52 swipe_threshold: 75, // "75" 53 swipe_min_touches: 1, // "1" 54 swipe_direction: "horizontal", // "horizontal", vertical 55 drag_block_vertical: false // true, "false" 56 }, 57 arrows: { 58 style: "uranus", // ares, custom, dione, erinyen, gyges, hades, hebe, hephaistos, hermes, hesperiden, metis, persephone, uranus, zeus 59 enable: true, // true, "false" 60 hide_onmobile: false, // true, "false" 61 hide_under: 600, // "0" 62 hide_onleave: true, // "true", false 63 hide_delay: 200, // "200" 64 hide_delay_mobile: 1200, // "1200" 65 tmp: '', // HTML Markup 66 left: { 67 h_align: "left", // "left", center, right 68 v_align: "center", // top, "center", bottom 69 h_offset: 30, // "20" 70 v_offset: 0 // "0" 71 }, 72 right: { 73 h_align: "right", // "left", center, right 74 v_align: "center", // top, "center", bottom 75 h_offset: 30, // "20" 76 v_offset: 0 // "0" 77 } 78 }, 79 bullets: { 80 enable: true, // true, "false" 81 hide_onmobile: false, // true, "false" 82 hide_under: 960, // "0" 83 style: "zeus", // ares, custom, dione, erinyen, gyges, hades, hebe, hephaistos, hermes, hesperiden, metis, persephone, uranus, zeus 84 hide_onleave: true, // "true", false 85 direction: "horizontal", // "horizontal", vertical 86 h_align: "right", // "left", center, right 87 v_align: "bottom", // top, "center", bottom 88 h_offset: 80, // "20" 89 v_offset: 50, // "0" 90 space: 5, // "0" 91 tmp: '<span class="tp-bullet-img-wrap"> <span class="tp-bullet-image"></span></span><span class="tp-bullet-title">{{title}}</span>' // HTML Markup 92 } 93 }, 94 lazyType: "none", // full, "smart", single, none 95 parallax: { 96 type: "mouse", // "off", mouse, scroll, mouse+scroll 97 origo: "slidercenter", // slidercenter, "enterpoint" 98 speed: 2000, // "400" 99 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], // "[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85]" 100 disable_onmobile: "on" 101 }, 102 shadow: 0, // "0", 1, 2, 3, 4, 5, 6 103 spinner: "off", // "spinner0", spinner1, spinner2 104 shuffle: "off", 105 disableProgressBar: "on", // on, "off" 106 stopLoop: "off", // on, off 107 stopAfterLoops: -1, // "-1" 108 stopAtSlide: -1, // "-1" 109 hideThumbsOnMobile: "off", 110 hideSliderAtLimit: 0, // "0" 111 hideCaptionAtLimit: 0, // "0" 112 hideAllCaptionAtLilmit: 0, // "0" 113 debugMode: false, // "false", true 114 fallbacks: { 115 simplifyAll: "off", // "on", off 116 nextSlideOnWindowFocus: "off", // on, "off" 117 disableFocusListener: false, // "true", false 118 } 119 }); 120 var newCall = new Object(), 121 cslide; 122 123 newCall.callback = function() { 124 var proc = revapi1.revgetparallaxproc(), 125 fade = 1 + proc, 126 scale = 1 + (Math.abs(proc) / 10); 127 128 punchgs.TweenLite.set(revapi1.find('.slotholder, .rs-background-video-layer'), { 129 opacity: fade, 130 scale: scale 131 }); 132 } 133 newCall.inmodule = "parallax"; 134 newCall.atposition = "start"; 135 136 revapi1.bind("revolution.slide.onloaded", function(e) { 137 revapi1.revaddcallback(newCall); 138 }); 139 } 140 }); /*ready*/ 141 142 /* ---------------------------------------------------------------------- 143 Bootstrap - doropdownhover 144 ---------------------------------------------------------------------- */ 145 146 $('.js-activated').dropdownHover().dropdown(); 147 148 /* ---------------------------------------------------------------------- 149 Bootstrap - submenu 150 ---------------------------------------------------------------------- */ 151 152 $('[data-submenu]').submenupicker(); 153 154 /* ---------------------------------------------------------------------- 155 Bootstrap - Tooltip/popover 156 ---------------------------------------------------------------------- */ 157 158 $("[data-toggle=tooltip]").tooltip(); 159 $("[data-toggle=popover]").popover(); 160 161 /* ---------------------------------------------------------------------- 162 Sticky Header 163 ---------------------------------------------------------------------- */ 164 165 $("#header").sticky({ 166 topSpacing: 0 167 }); 168 169 $(window).scroll(function() { 170 if ($(this).scrollTop() > 100) { 171 $('#header').addClass("sticky-header"); 172 } else { 173 $('#header').removeClass("sticky-header"); 174 } 175 }); 176 177 /* ---------------------------------------------------------------------- 178 Back to Top 179 ---------------------------------------------------------------------- */ 180 181 $(window).scroll(function() { 182 if ($(this).scrollTop() > 100) { 183 $('.back-to-top').fadeIn(); 184 } else { 185 $('.back-to-top').fadeOut(); 186 } 187 }); 188 189 $('.back-to-top').click(function() { 190 $("html, body").animate({ 191 scrollTop: 0 192 }, 600); 193 return false;
194 }); 195 196 /* ---------------------------------------------------------------------- 197 Toggle 198 ---------------------------------------------------------------------- */ 199 200 $(".toggle-content").hide(); 201 $(".toggle-container > h4").click(function() { 202 $(this).toggleClass("active").next().slideToggle(300); 203 }); 204 205 /* ---------------------------------------------------------------------- 206 Easy Tabs 207 ---------------------------------------------------------------------- */ 208 209 $('#tab-container').easytabs({ 210 updateHash: false, 211 animate: false 212 }); 213 214 $('#tab-side-container').easytabs({ 215 updateHash: false, 216 animate: false, 217 tabActiveClass: "selected-tab", 218 panelActiveClass: "displayed" 219 }); 220 221 /* ---------------------------------------------------------------------- 222 Owl Carousel 223 ---------------------------------------------------------------------- */ 224 // 5 images 225 $(".owl-image").owlCarousel({ 226 items: 5, 227 navigation: true, 228 navigationText: ['<i class="fa fa-chevron-left"></i>', '<i class="fa fa-chevron-right"></i>'], 229 pagination: false 230 }); 231 232 // single 233 $(".owl-single").owlCarousel({ 234 pagination: true, 235 navigation: false, 236 transitionStyle: "backSlide", 237 singleItem: true 238 }); 239 240 // testimonial 241 $(".owl-testimonial").owlCarousel({ 242 singleItem: true, 243 autoPlay: 5000, 244 navigation: false, 245 paginationSpeed: 1000, 246 autoHeight: true, 247 stopOnHover: true, 248 goToFirstSpeed: 2000, 249 transitionStyle: "fade" 250 }); 251 252 // client 253 $(".owl-client").owlCarousel({ 254 items: 5, 255 autoPlay: true, 256 navigation: false, 257 pagination: false 258 }); 259 260 // shop single 261 var sync1 = $("#sync1"); 262 var sync2 = $("#sync2"); 263 sync1.owlCarousel({ 264 singleItem: true, 265 slideSpeed: 1000, 266 navigation: false, 267 pagination: false, 268 afterAction: syncPosition, 269 responsiveRefreshRate: 200, 270 }); 271 sync2.owlCarousel({ 272 items: 3, 273 itemsDesktop: [1199, 3], 274 itemsDesktopSmall: [979, 3], 275 itemsTablet: [768, 3], 276 itemsMobile: [479, 3], 277 navigation: true, 278 navigationText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 279 pagination: false, 280 responsiveRefreshRate: 100, 281 afterInit: function(el) { 282 el.find(".owl-item").eq(0).addClass("synced"); 283 } 284 }); 285 function syncPosition(el) { 286 var current = this.currentItem; 287 $("#sync2") 288 .find(".owl-item") 289 .removeClass("synced") 290 .eq(current) 291 .addClass("synced") 292 if ($("#sync2").data("owlCarousel") !== undefined) { 293 center(current) 294 } 295 } 296 $("#sync2").on("click", ".owl-item", function(e) { 297 e.preventDefault(); 298 var number = $(this).data("owlItem"); 299 sync1.trigger("owl.goTo", number); 300 }); 301 function center(number) { 302 var sync2visible = sync2.data("owlCarousel").owl.visibleItems; 303 var num = number; 304 var found = false; 305 for (var i in sync2visible) { 306 if (num === sync2visible[i]) { 307 var found = true; 308 } 309 } 310 if (found === false) { 311 if (num > sync2visible[sync2visible.length - 1]) { 312 sync2.trigger("owl.goTo", num - sync2visible.length + 2) 313 } else { 314 if (num - 1 === -1) { 315 num = 0; 316 } 317 sync2.trigger("owl.goTo", num); 318 } 319 } else if (num === sync2visible[sync2visible.length - 1]) { 320 sync2.trigger("owl.goTo", sync2visible[1]) 321 } else if (num === sync2visible[0]) { 322 sync2.trigger("owl.goTo", num - 1) 323 } 324 } 325 326 /* ---------------------------------------------------------------------- 327 Nivo Lightbox 328 ---------------------------------------------------------------------- */ 329 330 $(".nivo-lightbox").nivoLightbox({ 331 effect: 'fadeScale' 332 }); 333 $(".nivo-lightbox-video").nivoLightbox({ 334 effect: 'fade' 335 }); 336 337 /* ---------------------------------------------------------------------- 338 Hover Effect Da Thumbs 339 ---------------------------------------------------------------------- */ 340 341 $('.da-thumbs').each(function() { 342 $(this).hoverdir(); 343 }); 344 345 /* ---------------------------------------------------------------------- 346 ContactForm - Validation 347 ---------------------------------------------------------------------- */ 348 349 $("#commentForm").validate(); 350 351 /* ---------------------------------------------------------------------- 352 ContactForm - Ajax Form 353 ---------------------------------------------------------------------- */ 354 355 var options = { 356 target: '#message', 357 url: 'contact.php' 358 }; 359 360 $('#commentForm').ajaxForm(options); 361 362 363 /* ---------------------------------------------------------------------- 364 mb-YTPlayer 365 ---------------------------------------------------------------------- */ 366 367 $(".mbyt-player").mb_YTPlayer(); 368 369 /* ---------------------------------------------------------------------- 370 Simple Placeholder 371 ---------------------------------------------------------------------- */ 372 373 $('input[placeholder]').simplePlaceholder(); 374 $('textarea[placeholder]').simplePlaceholder(); 375 376 377 }); 378 379 /* ---------------------------------------------------------------------- 380 Isotope 381 ---------------------------------------------------------------------- */ 382 383 $(window).load(function() { 384 385 // fitRows 386 var $container = $('.isotope').isotope({ 387 itemSelector: '.element-item', 388 layoutMode: 'fitRows' 389 }); 390 391 $('#filters').on('click', 'button', function() { 392 var filterValue = $(this).attr('data-filter'); 393 $container.isotope({ 394 filter: filterValue 395 }); 396 }); 397 398 $('.button-group').each(function(i, buttonGroup) { 399 var $buttonGroup = $(buttonGroup); 400 $buttonGroup.on('click', 'button', function() { 401 $buttonGroup.find('.is-checked').removeClass('is-checked'); 402 $(this).addClass('is-checked'); 403 }); 404 }); 405 406 // masonry 407 var $container2 = $('.isotope-masonry').isotope({ 408 itemSelector: '.grid-item', 409 percentPosition: true, 410 masonry: { 411 columnWidth: '.grid-sizer' 412 } 413 }) 414 415 $('#filters').on('click', 'button', function() { 416 var filterValue = $(this).attr('data-filter'); 417 $container2.isotope({ 418 filter: filterValue 419 }); 420 }); 421 422 $('.button-group').each(function(i, buttonGroup) { 423 var $buttonGroup = $(buttonGroup); 424 $buttonGroup.on('click', 'button', function() { 425 $buttonGroup.find('.is-checked').removeClass('is-checked'); 426 $(this).addClass('is-checked'); 427 }); 428 }); 429 430 // select menu 431 var $container3 = $('.isotope-shop').isotope({ 432 itemSelector: '.element-item', 433 layoutMode: 'fitRows' 434 }); 435 436 $('.filters-select').on( 'change', function() { 437 var filterValue = this.value; 438 $container3.isotope({ filter: filterValue }); 439 }); 440 441 }); 442 443 /* ---------------------------------------------------------------------- 444 Wow 445 ---------------------------------------------------------------------- */ 446 447 new WOW().init(); 448 449}(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.