1// JavaScript Document 2// Author Name: jThemes Studio 3// Author URI: http://www.jthemesstudio.com 4// Themeforest: http://themeforest.net/user/jthemes?ref=jthemes 5// Creation Date: 8 May, 2017 6(function ($) { 7 'use strict'; 8 jQuery(document).ready(function ($) { 9 10 11 12 $('.gallery-image').magnificPopup({ 13 delegate: '.image-link', 14 type: 'image', 15 closeOnContentClick: false, 16 closeBtnInside: false, 17 mainClass: 'mfp-with-zoom mfp-img-mobile', 18 gallery: { 19 enabled: true 20 }, 21 zoom: { 22 enabled: true, 23 easing: 'ease-in-out', 24 duration: 300, 25 opener: function (element) { 26 return element.closest('div').find('img'); 27 } 28 } 29 30 }); 31 32 // magnific popPup 33 $(".video-link").magnificPopup({ 34 type: 'iframe', 35 iframe: { 36 markup: '<div class="mfp-iframe-scaler">' + 37 '<div class="mfp-close"></div>' + 38 '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' + 39 '</div>', 40 41 patterns: { 42 youtube: { 43 index: 'youtube.com/', 44 45 id: 'v=', 46 47 src: 'https://www.youtube.com/embed/%id%?autoplay=1' 48 }, 49 vimeo: { 50 index: 'vimeo.com/', 51 id: '/', 52 src: 'https://player.vimeo.com/video/%id%?autoplay=1' 53 }, 54 gmaps: { 55 index: '//maps.google.', 56 src: '%id%&output=embed' 57 } 58 59 60 }, 61 62 srcAction: 'iframe_src', 63 } 64 }); 65 66 67 68 //Preloader 69 $(window).load(function () { 70 $('#preloader').fadeOut(); 71 $('body').delay(350).css({ 'overflow': 'visible' }); 72 }); 73 74 75 76 // Top Arrow 77 $(window).scroll(function () { 78 if ($(window).scrollTop() > 1000) { 79 $('a.top').fadeIn('slow'); 80 } else { 81 $('a.top').fadeOut('slow'); 82 } 83 }); 84 // Collapse menu for small devices 85 var winWidth = $('body').width(); 86 if (winWidth <= 767) { 87 // Add attribs to menu 88 $('#menu .navbar-nav li a').attr('data-toggle', 'collapse'); 89 $('#menu .navbar-nav li a').attr('data-target', '#menu'); 90 // smooth page Scroll 91 $('nav a[href^=#], a.top[href^=#], a.smooth[href^=#]').on("click", function (event) { 92 event.preventDefault(); 93 var header_height = $('header.header-nav').outerHeight(true); 94 if ($(this.hash).length > 0) { 95 $('html,body').animate({ scrollTop: $(this.hash).offset().top - header_height }, 1000); 96 } 97 }); 98 } else { 99 100 // smooth page Scroll 101 $('nav a[href^="#"], a.top[href^="#"], a.smooth[href^="#"]').on("click", function (event) { 102 event.preventDefault(); 103 var header_height = $('header.header-nav').outerHeight(true); 104 105 if ($(this.hash).length > 0) { 106 $('html,body').animate({ scrollTop: $(this.hash).offset().top - header_height }, 1000); 107 } 108 109 }); 110 } 111 112 $('.orderby, .widget-wrap select').selectize(); 113 $('table').addClass('table'); 114 $('.woocommerce-Input').addClass('form-control'); 115 $('.count-control').on('click', function () { 116 var old = parseInt($(this).closest('.quantity').find('.qty').val()); 117 if ($(this).hasClass('plus')) { 118 119 if (parseInt($(this).data('max')) != -1) { 120 if ((parseInt($(this).data('max')) - 1) >= old) { 121 $(this).closest('.quantity').find('.qty').val(old + 1); 122 } 123 } else { 124 $(this).closest('.quantity').find('.qty').val(old + 1); 125 } 126 127 } else { 128 if (old > 1) { 129 $(this).closest('.quantity').find('.qty').val(old - 1); 130 } 131 } 132 $(this).closest('form').find('input[type="submit"]').prop('disabled', false); 133 return false; 134 }) 135 136 // Image Lightbox 137 $("a[data-rel^='prettyPhoto']").prettyPhoto({ overlay_gallery: true });
138 $('.galimg.photo a').append('<div class="link"><div class="hex xs"><div class="hex-inner"><i class="fa fa-expand fa-4x"></i></div></div></div>'); 139 $('.galimg.video a').append('<div class="link"><div class="hex xs"><div class="hex-inner"><i class="fa fa-youtube-play fa-4x"></i></div></div></div>'); 140 // WOW - animated content 141 var wow = new WOW( 142 { 143 boxClass: 'wow', // animated element css class (default is wow) 144 animateClass: 'animated', // animation css class (default is animated) 145 offset: 100, // distance to the element when triggering the animation (default is 0) 146 mobile: false // trigger animations on mobile devices (true is default) 147 }); 148 wow.init(); 149 // Counter 150 $('.countdown.styled').each(function () { 151 var endDate = $(this).data('date'); // add data in same format 152 var year = $(this).data('year'); 153 var day = $(this).data('day'); 154 var hour = $(this).data('hour'); 155 var min = $(this).data('min'); 156 var sec = $(this).data('sec'); 157 $(this).countdown({ 158 date: endDate, 159 render: function (data) { 160 var years = this.leadingZeros(data.years, 2); 161 if (years != '00') { 162 $(this.el).html("<div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.years, 2) + " </span><strong>" + year + "</strong></div></div><div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.days, 3) + " </span><strong>" + day + "</strong></div></div><div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.hours, 2) + " </span><strong>" + hour + "</strong></div></div><div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.min, 2) + "</span><strong>" + min + "</strong></div></div><div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.sec, 2) + " </span><strong>" + sec + "</strong></div></div>"); 163 } else { 164 $(this.el).html("<div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.days, 3) + " </span><strong>" + day + "</strong></div></div><div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.hours, 2) + " </span><strong>" + hour + "</strong></div></div><div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.min, 2) + "</span><strong>" + min + "</strong></div></div><div class='hex'><div class='hex-inner'><span>" + this.leadingZeros(data.sec, 2) + " </span><strong>" + sec + "</strong></div> </div>"); 165 } 166 } 167 }); 168 }) 169 // Accordion Symbols 170 $('.panel-title a').on("click", function () { 171 var thisParent = $(this).parent().parent().next(); 172 if (thisParent.hasClass('in')) { 173 $(this).parent().removeClass('active'); 174 } else { 175 $('.panel-title').removeClass('active'); 176 $(this).parent().addClass('active'); 177 } 178 }); 179 // Artist and lineup carousel 180 $(".speakerCar").owlCarousel({ 181 items: 3, 182 lazyLoad: true, 183 navigation: true, 184 navigationText: ["", ""], 185 pagination: false, 186 itemsDesktop: [1199, 3], 187 itemsTablet: [998, 2], 188 itemsMobile: [600, 1] 189 190 }); 191 192 //related-posts 193 $(".related-posts").owlCarousel({ 194 items: 2, 195 lazyLoad: true, 196 navigation: true, 197 navigationText: ["", ""], 198 pagination: false, 199 itemsDesktop: [1199, 2], 200 itemsTablet: [998, 2], 201 itemsMobile: [600, 1] 202 203 }); 204 205 // Artist and lineup carousel 206 $(".sponsorOwl").owlCarousel({ 207 items: 4, 208 lazyLoad: true, 209 navigation: false, 210 navigationText: ["", ""], 211 pagination: false, 212 itemsDesktop: [1199, 4], 213 itemsTablet: [998, 2], 214 itemsMobile: [600, 1] 215 216 }); 217 // slider 218 $('.bxslider').bxSlider({ 219 speed: 1000, // speed/time between changing slides 220 auto: true, 221 pause: 5500, // slider duration if auto: true 222 pager: false, 223 mode: 'fade', 224 captions: true 225 }); 226 // Event schedule 227 $('.schedule-carousel > .carousel-inner .item:nth(0)').addClass('active'); 228 var carInd = ''; 229 var i = 0; 230 $('.schedule-carousel > .carousel-inner .item').each(function () { 231 var date = $(this).data('date');
232 var month = $(this).data('month'); 233 var activeClass = (i == 0) ? ' class="active"' : ''; 234 carInd += '<li' + activeClass + ' data-target="#schedule-carousel" data-slide-to="' + i + '"><strong>' + date + '</strong><span>' + month + '</span></li>'; 235 i++; 236 }); 237 238 239 240 $('.schedule-carousel.carousel .carousel-indicators').empty().html(carInd); 241 242 $('.schedule-carousel.carousel').carousel({ 243 interval: false // 5500 change value to set speed of slideshow and making auto 244 }) 245 246 247 // Testimonial 248 $('.testimonial-carousel').carousel({ 249 interval: false // 5500 change value to set speed of slideshow and making auto 250 }) 251 252 // Subscription Form Validation 253 $("#subscribeForm input").on('focus click', (function () { 254 $(this).prev("label").hide(); 255 $(this).prev().prev("label").hide(); 256 })); 257 258 // header-contact-form-slider 259 if ($('.proconf-background-slider').length > 0) { 260 $('.proconf-background-slider').each(function () { 261 var target = $(this).closest('.vc-section').attr('id'); 262 $(this).closest('.vc-section').addClass('has-bg-slider'); 263 264 $(this).closest('.vc-section').vegas({ 265 slides: $(this).data('slides'), 266 transition: 'fade', 267 }); 268 }) 269 270 } 271 272 }); 273 274 if ($('.video_bg').length > 0) { 275 $('.video_bg').each(function () { 276 var section = $(this).closest('.vc-section'); 277 $(this).closest('.vc-section').vide({ 278 mp4: $(this).data('mp4'), 279 webm: $(this).data('webm'), 280 ogv: $(this).data('ogv'), 281 poster: $(this).data('poster') 282 }, { 283 284 posterType: $(this).data('posterType'), 285 loop: true, 286 muted: false, 287 } 288 ); 289 }) 290 } 291 292 var preloader = $('#preloader'), 293 loader = preloader.find('.loading-center'); 294 loader.fadeOut(); 295 preloader.delay(1500).fadeOut('slow'); 296 297}(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.