1/** 2 * hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+ 3 * http://cherne.net/brian/resources/jquery.hoverIntent.html 4 * 5 * You may use hoverIntent under the terms of the MIT license. 6 * Copyright 2007, 2013 Brian Cherne 7 */ 8(function(e){e.fn.hoverIntent=function(t,n,r){var i={interval:100,sensitivity:7,timeout:0};if(typeof t==="object"){i=e.extend(i,t)}else if(e.isFunction(n)){i=e.extend(i,{over:t,out:n,selector:r})}else{i=e.extend(i,{over:t,out:t,selector:n})}var s,o,u,a;var f=function(e){s=e.pageX;o=e.pageY};var l=function(t,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);if(Math.abs(u-s)+Math.abs(a-o)<i.sensitivity){e(n).off("mousemove.hoverIntent",f);n.hoverIntent_s=1;return i.over.apply(n,[t])}else{u=s;a=o;n.hoverIntent_t=setTimeout(function(){l(t,n)},i.interval)}};var c=function(e,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t);t.hoverIntent_s=0;return i.out.apply(t,[e])};var h=function(t){var n=jQuery.extend({},t);var r=this;if(r.hoverIntent_t){r.hoverIntent_t=clearTimeout(r.hoverIntent_t)}if(t.type=="mouseenter"){u=n.pageX;a=n.pageY;e(r).on("mousemove.hoverIntent",f);if(r.hoverIntent_s!=1){r.hoverIntent_t=setTimeout(function(){l(n,r)},i.interval)}}else{e(r).off("mousemove.hoverIntent",f);if(r.hoverIntent_s==1){r.hoverIntent_t=setTimeout(function(){c(n,r)},i.timeout)}}};return this.on({"mouseenter.hoverIntent":h,"mouseleave.hoverIntent":h},i.selector)}})(jQuery); 9 10/** 11 * jQuery.countTo 12 */ 13(function(e){function t(e,t){return e.toFixed(t.decimals)}e.fn.countTo=function(t){t=t||{};return e(this).each(function(){function l(){a+=i;u++;c(a);if(typeof n.onUpdate=="function"){n.onUpdate.call(s,a)}if(u>=r){o.removeData("countTo");clearInterval(f.interval);a=n.to;if(typeof n.onComplete=="function"){n.onComplete.call(s,a)}}}function c(e){var t=n.formatter.call(s,e,n);o.text(t)}var n=e.extend({},e.fn.countTo.defaults,{from:e(this).data("from"),to:e(this).data("to"),speed:e(this).data("speed"),refreshInterval:e(this).data("refresh-interval"),decimals:e(this).data("decimals")},t);var r=Math.ceil(n.speed/n.refreshInterval),i=(n.to-n.from)/r;var s=this,o=e(this),u=0,a=n.from,f=o.data("countTo")||{};o.data("countTo",f);if(f.interval){clearInterval(f.interval)}f.interval=setInterval(l,n.refreshInterval);c(a)})};e.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:t,onUpdate:null,onComplete:null}})(jQuery); 14 15/** 16 * jQuery.smartresize 17 */ 18(function(e){function t(e,t){return e.toFixed(t.decimals)}e.fn.countTo=function(t){t=t||{};return e(this).each(function(){function l(){a+=i;u++;c(a);if(typeof n.onUpdate=="function"){n.onUpdate.call(s,a)}if(u>=r){o.removeData("countTo");clearInterval(f.interval);a=n.to;if(typeof n.onComplete=="function"){n.onComplete.call(s,a)}}}function c(e){var t=n.formatter.call(s,e,n);o.text(t)}var n=e.extend({},e.fn.countTo.defaults,{from:e(this).data("from"),to:e(this).data("to"),speed:e(this).data("speed"),refreshInterval:e(this).data("refresh-interval"),decimals:e(this).data("decimals")},t);var r=Math.ceil(n.speed/n.refreshInterval),i=(n.to-n.from)/r;var s=this,o=e(this),u=0,a=n.from,f=o.data("countTo")||{};o.data("countTo",f);if(f.interval){clearInterval(f.interval)}f.interval=setInterval(l,n.refreshInterval);c(a)})};e.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:t,onUpdate:null,onComplete:null}})(jQuery); 19 20/** 21 * jQuery.appear 22 * https://github.com/bas2k/jquery.appear/ 23 * http://code.google.com/p/jquery-appear/ 24 * http://bas2k.ru/ 25 * 26 * Copyright (c) 2009 Michael Hixson 27 * Copyright (c) 2012-2014 Alexander Brovikov 28 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 29 */ 30(function(e){e.fn.appear=function(t,n){var r=e.extend({data:undefined,one:true,accX:0,accY:0},n);return this.each(function(){var n=e(this);n.appeared=false;if(!t){n.trigger("appear",r.data);return}var i=e(window);var s=function(){if(!n.is(":visible")){n.appeared=false;return}var e=i.scrollLeft();var t=i.scrollTop();var s=n.offset();var o=s.left;var u=s.top;var a=r.accX;var f=r.accY;var l=n.height();var c=i.height();var h=n.width();var p=i.width();if(u+l+f>=t&&u<=t+c+f&&o+h+a>=e&&o<=e+p+a){if(!n.appeared)n.trigger("appear",r.data)}else{n.appeared=false}};var o=function(){n.appeared=true;if(r.one){i.unbind("scroll",s);var o=e.inArray(s,e.fn.appear.checks);if(o>=0)e.fn.appear.checks.splice(o,1)}t.apply(this,arguments)};if(r.one)n.one("appear",r.data,o);else n.bind("appear",r.data,o);i.scroll(s);e.fn.appear.checks.push(s);s()})};e.extend(e.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=e.fn.appear.checks.length;if(t>0)while(t--)e.fn.appear.checks[t]()},run:function(){if(e.fn.appear.timeout)clearTimeout(e.fn.appear.timeout);e.fn.appear.timeout=setTimeout(e.fn.appear.checkAll,20)}});
30e.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,n){var r=e.fn[n];if(r){e.fn[n]=function(){var t=r.apply(this,arguments);e.fn.appear.run();return t}}})})(jQuery); 31 32/** 33 * imagesLoaded PACKAGED v3.1.4 34 * JavaScript is all like "You images are done yet or what?" 35 * MIT License 36 */ 37(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("eventEmitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(this,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function c(e){this.img=e}function f(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);for(var i=n.querySelectorAll("img"),r=0,o=i.length;o>r;r++){var s=i[r];this.addImage(s)}}},s.prototype.addImage=function(e){var t=new c(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),c.prototype=new t,c.prototype.check=function(){var e=v[this.img.src]||new f(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;
37if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return f.prototype=new t,f.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},f.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},f.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},f.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},f.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},f.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}); 38 39/*************************************************************** 40 * Corex HTML Template Script 41 * 42 * This is the script required for corex javascript features to work. 43 * 44 * File index: 45 * - Gallery with Preview declaration and initialization 46 * - Countdowns initializations 47 * - CaroufredSel initialization for the gallery with preview 48 * - Revolution Slider initialization 49 * - Magnific Popup initialization 50 * - Isotope initialization 51 * - Latest posts accordion initialization 52 * - Google map initialization 53 * - Counters and progress bars Initialization 54 * - Layout elements initialization 55 * - Stellar initialization 56 * - Ajax Loader initialization 57 * - Tooltips initialization 58 * - "On resize" changes 59 * - Other components initialization 60 ***************************************************************/ 61 62/** 63 * Layout elements initialization 64 */ 65(function ($) { "use strict"; 66 67 // header position 68 var duration = 500; 69 var offset_stuck = 300; 70 var offset_show_down = 520; 71 jQuery(window).scroll(function () { 72 if (!($('body').hasClass('screen-head'))) { 73 if ($(window).width() > 983) { 74 if (jQuery(this).scrollTop() > offset_stuck) { 75 jQuery('header').addClass('navbar-fixed-top metro-small'); 76 jQuery('.uber-menu').addClass('pre-fixed'); 77 $('body').css("margin-top", "100px"); 78 jQuery('#nav-shop').addClass('fixed-top'); 79 jQuery('#search').addClass('fixed-top'); 80 jQuery('#login').addClass('fixed-top'); 81 jQuery('#register').addClass('fixed-top'); 82 83 } else { 84 jQuery('header').removeClass('navbar-fixed-top metro-small'); 85 jQuery('.uber-menu').removeClass('pre-fixed'); 86 $('body').css("margin-top", "0"); 87 jQuery('#nav-shop').removeClass('fixed-top'); 88 jQuery('#search').removeClass('fixed-top'); 89 jQuery('#login').removeClass('fixed-top'); 90 jQuery('#register').removeClass('fixed-top'); 91 jQuery('.uber-menu').removeClass('fixed-top'); 92 93 } 94 } 95 if (jQuery(this).scrollTop() > offset_show_down) { 96 jQuery('header').addClass('navbar-show-down'); 97 jQuery('.uber-menu').addClass('fixed-top'); 98 jQuery('#nav-shop').addClass('show-down'); 99 jQuery('#search').addClass('show-down'); 100 jQuery('#login').addClass('show-down'); 101 jQuery('#register').addClass('show-down'); 102 103 } else { 104 jQuery('header').removeClass('navbar-show-down'); 105 jQuery('#nav-shop').removeClass('show-down'); 106 jQuery('#search').removeClass('show-down'); 107 jQuery('#login').removeClass('show-down'); 108 jQuery('#register').removeClass('show-down'); 109 jQuery('.uber-menu').removeClass('show-down'); 110 } 111 } 112 else { 113 if ((jQuery(this).scrollTop() > $('.screen-banner').height()) && ($(window).width() > 1000)) { 114 jQuery('header').addClass('navbar-fixed-top metro-small');
115 jQuery('header').addClass('navbar-show-down'); 116 jQuery('#nav-shop').addClass('fixed-top'); 117 jQuery('#search').addClass('fixed-top'); 118 jQuery('#login').addClass('fixed-top'); 119 jQuery('#register').addClass('fixed-top'); 120 jQuery('.uber-menu').addClass('fixed-top'); 121 122 } 123 else { 124 jQuery('header').removeClass('navbar-fixed-top'); 125 jQuery('header').removeClass('navbar-show-down'); 126 jQuery('#nav-shop').removeClass('fixed-top'); 127 jQuery('#search').removeClass('fixed-top'); 128 jQuery('#login').removeClass('fixed-top'); 129 jQuery('#register').removeClass('fixed-top'); 130 jQuery('.uber-menu').removeClass('fixed-top'); 131 132 } 133 } 134 }); 135 136 // totop button 137 $(window).scroll(function () { 138 if ($(window).scrollTop() > 1000 ) { 139 jQuery('#totop').removeClass('collapsed'); 140 } 141 else { 142 jQuery('#totop').addClass('collapsed'); 143 } 144 }); 145 146 jQuery('#totop').click(function (event) { 147 event.preventDefault(); 148 jQuery('html, body').animate({ scrollTop: 0 }, duration); 149 return false; 150 }); 151 152 // second level menu items 153 $(".menu-parent") 154 .mouseenter(function () { 155 if ($('> .dropdown', this).offset().left + $('> .dropdown', this).width() > $(window).width()) { 156 $('> .dropdown', this).addClass('repositioned'); 157 158 } 159 else { 160 $('> .dropdown', this).addClass('normal'); 161 } 162 }) 163 .mouseleave(function () { 164 $('> .dropdown', this).removeClass('repositioned'); 165 $('> .dropdown', this).removeClass('normal'); 166 }); 167 168 // menu items hover handle 169 function expanddrop() { 170 $(this).children(".dropdown-menu").stop().fadeIn(250); 171 } 172 173 function contractdrop() { 174 $(this).children(".dropdown-menu").stop().fadeOut(400); 175 } 176 177 var configdrop = { 178 over: expanddrop, 179 interval: 100, 180 out: contractdrop 181 }; 182 183 $(".dropdown").hoverIntent(configdrop); 184 185 function expanduber() { 186 $(this).children(".uber-menu").stop().fadeIn(250); 187 } 188 189 function contractuber() { 190 $(this).children(".uber-menu").stop().fadeOut(400); 191 } 192 193 var configuber = { 194 over: expanduber, 195 interval: 100, 196 out: contractuber 197 }; 198 199 $(".uber-dropdown").hoverIntent(configuber); 200 201})(jQuery); 202 203/** 204 * Gallery with preview declaration and initialization 205 */ 206(function ($) { "use strict"; 207 208 $.fn.Holo_Gallery = function () { 209 210 var $gallery_container = $(this); 211 var $images_container = $('.images', $gallery_container); 212 213 $gallery_container.prepend('<div class="main frame"><div class="preview-wrapper mgp-gal"></div></div>'); 214 215 var $main_frame = $('.main.frame'); 216 217 var $preview_wrapper = $('.preview-wrapper', $gallery_container); 218 219 var navigation = '<a class="control left"><i class="fa fa-chevron-right"></i></a><a class="control right"><i class="fa fa-chevron-left"></i></a>'; 220 221 $('.thumb', $gallery_container).prepend(navigation); 222 223 var preview_image = $('>:first-child', $images_container).data('preview'); 224 225 $preview_wrapper.append( 226 '<div style="position: relative; ">
226<a href="' + preview_image + ' " class="overlay" rel="prettyPhoto">' 227 + '<i class="fa fa-search md"></i>' 228 + '</a>' 229 + '<img src="' + preview_image + '" class="img-responsive" alt=""></div>' 230 ); 231 232 $preview_wrapper.imagesLoaded(function () { 233 var preview_height = $preview_wrapper.height(); 234 235 $preview_wrapper.css({ 236 height: preview_height + 'px', 237 width: '100%' 238 }); 239 240 $preview_wrapper.children('div').remove(); 241 242 $images_container.children('.frame').each(function (index, value) { 243 244 $(this).attr('data-gallery_id', index); 245 246 var preview_image = $(this).data('preview'); 247 248 if (index == 0) { 249 $preview_wrapper.append( 250 '<div style="position: relative;" data-gallery_id="' + index + '" class="preview-image active"><a href="' + preview_image + ' " class="overlay">' 251 + '<i class="fa fa-search md"></i>' 252 + '</a>'
253 + '<img src="' + preview_image + '" class="img-responsive" alt=""></div>' 254 ); 255 } else { 256 $preview_wrapper.append( 257 '<div style="position: absolute; top: 0;" data-gallery_id="' + index + '" class="preview-image"><a href="' + preview_image + ' " class="overlay">' 258 + '<i class="fa fa-search md"></i>' 259 + '</a>' 260 + '<img src="' + preview_image + '" class="img-responsive" alt=""></div>' 261 ); 262 } 263 264 }); 265 266 if ( jQuery().magnificPopup ) { 267 $('.mgp-img').magnificPopup({ 268 type: 'image', 269 removalDelay: 150, 270 mainClass: 'mgp-fade' 271 }); 272 } 273 274 }); 275 276 $('.frame', $images_container).hoverIntent({ 277 over: function() { 278 var gallery_id = $(this).data('gallery_id'); 279 280 $('div.active', $preview_wrapper).stop().removeClass('active'); 281 282 $('div[data-gallery_id="' + gallery_id + '"]', $preview_wrapper).delay(3000).addClass('active'); 283 }, 284 out: function() {}, 285 interval: 100 286 }); 287 288 $(window).smartresize(function() { 289 290 var preview_height = $preview_wrapper.find('.preview-image').height(); 291 292 $preview_wrapper.css({ 293 height: preview_height + 'px', 294 width: '100%' 295 }); 296 297 var thumb_height = $('.gallery.preview').find('.navigation .frame').height(); 298 299 $('.gallery.preview .caroufredsel_wrapper').css('height', thumb_height + 10 + 'px'); 300 }); 301 302 }; 303 304 $('.gallery.preview').Holo_Gallery(); 305 306})(jQuery); 307 308/** 309 * Countdown initialization 310 */ 311(function ($) { "use strict"; 312 313 $('.countdown').each(function () { 314 315 var date = $(this).data('countdown'); 316 var markup = $(this).html(); 317 318 var $countdown = $('.countdown'); 319 320 $countdown.countdown(date, function (event) { 321 $(this).html(event.strftime(markup)); 322 }); 323 324 $countdown.show(); 325 }); 326 327})(jQuery); 328 329/** 330 * CarouFredSel initialization 331 */ 332(function ($) { "use strict"; 333 334 if (jQuery().imagesLoaded && jQuery().carouFredSel) { 335 336 var $gallery = $('.gallery.preview .img-container .images'); 337 338 $(".images").imagesLoaded(function () { 339 340 $gallery.carouFredSel({ 341 responsive: true, 342 circular: false, 343 infinite: false, 344 items: { 345 visible: { 346 min: 4, 347 max: 7 348 } 349 }, 350 scroll: { 351 items: 'page', 352 duration: 300 353 }, 354 prev: { 355 button: ".right", 356 key: "left" 357 }, 358 next: { 359 button: ".left", 360 key: "right" 361 }, 362 align: 'center', 363 auto: false 364 }); 365 }); 366 } 367 368})(jQuery); 369 370/** 371 * Revolution Slider intialization 372 */ 373(function ($) { "use strict"; 374 375 try { 376 jQuery('.shop-slider.banner, .banner').css('visibility', 'visible'); 377 378 jQuery('.shop-slider.banner').revolution({ 379 hideTimerBar: "on", 380 fullWidth: "on", 381 delay: 9000, 382 startwidth: 1920, 383 startheight: 500, 384 hideThumbs: 10 385 }); 386 387 jQuery('.banner').revolution({ 388 hideTimerBar: "on", 389 fullWidth: "on", 390 delay: 9000, 391 startwidth: 1920, 392 startheight: 650, 393 hideThumbs: 10, 394 dottedOverlay: "twoxtwo" 395 }); 396 397 } 398 catch (err) { } 399 400})(jQuery); 401 402/** 403 * Magnific Popup initialization 404 */ 405(function ($) { "use strict"; 406 407 if ( jQuery().magnificPopup ) { 408 $('.mgp-img').magnificPopup({ 409 type: 'image', 410 removalDelay: 150, 411 mainClass: 'mgp-fade' 412 }); 413 414 $('.mgp-gal').each(function () { 415 $(this).magnificPopup({ 416 type: 'image', 417 delegate: 'a.overlay', 418 removalDelay: 150, 419 420 gallery: { enabled: true }, 421 422 callbacks: { 423 424 buildControls: function () { 425 // re-appends controls inside the main container 426 this.contentContainer.append(this.arrowLeft.add(this.arrowRight)); 427 } 428 } 429 }); 430 }); 431 432 433 $('.video-popup-link').magnificPopup({ 434 type: 'inline', 435 midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href. 436 }); 437 438 $('.video-popup-link').click(function () { 439 $('.banner').revpause(); 440 }); 441 442 var slidervidOpen = 0; 443 444 $('.main-slider-video-wrapper').click(function () { 445 var magnificPopup = $.magnificPopup.instance; 446 magnificPopup.close(); 447 slidervidOpen = 1; 448 449 }); 450 451 $.magnificPopup.instance.close = function () { 452 453 if (slidervidOpen == 1) { 454 $('.banner').revresume(); 455 } 456 457 $.magnificPopup.proto.close.call(this); 458 slidervidOpen = 0; 459 460 }; 461 } 462 463})(jQuery); 464 465/** 466 * Isotope initialization 467 */ 468(function ($) { "use strict"; 469 470 jQuery(window).load(function () { 471 var container = jQuery('.isotope-container'); 472 473 if (container.length > 0) { 474 475 if (jQuery().imagesLoaded && jQuery().isotope) { 476 477 if (document.querySelector('body').offsetHeight < window.innerHeight) { 478 document.documentElement.style.overflowY = 'scroll'; 479 } 480 481 // init the plugin 482 container.imagesLoaded(function () { 483 484 jQuery('.ajax-page-preloader').css({ 485 display: 'none' 486 }); 487 488 container.fadeIn(1000, function () { 489 try { 490 $('video.self-host').mediaelementplayer({ 491 enableAutosize: true, 492 videoWidth: -1, 493 videoHeight: -1 494 }); 495 } 496 catch (err) { } 497 498 try { 499 $('audio').mediaelementplayer({ 500 enableAutosize: true, 501 features: ['playpause', 'progress', 'current'] 502 }); 503 } 504 catch (err) { } 505 }).isotope({ 506 layoutMode: 'sloppyMasonry', 507 itemSelector: '.isotope-element'
508 }); 509 }); 510 511 // reLayout the isotope plugin if the windows is resized 512 jQuery(window).smartresize(function () { 513 container.isotope('reLayout'); 514 }); 515 516 // handle the isotope filter 517 jQuery('ol.portfolio-isotope-filters li').click(function () { 518 var selector = jQuery(this).attr('data-filter'); 519 container.isotope({ filter: selector }); 520 return false; 521 }); 522 } 523 } 524 else { 525 try { 526 $('video.self-host').mediaelementplayer({ 527 enableAutosize: true, 528 videoWidth: -1, 529 videoHeight: -1 530 }); 531 } 532 catch (err) { } 533 534 try { 535 $('audio').mediaelementplayer({ 536 enableAutosize: true, 537 features: ['playpause', 'progress', 'current'] 538 }); 539 } 540 catch (err) { } 541 } 542 }); 543 544 jQuery(window).load(function () { 545 546 var container = jQuery('.masonry-container'); 547 548 if (jQuery().imagesLoaded && jQuery().isotope) { 549 550 // init the plugin 551 container.imagesLoaded(function () { 552 553 jQuery('.ajax-page-preloader').css({ 554 display: 'none' 555 }); 556 557// container.fadeIn(1000).isotope({ 558// layoutMode: 'sloppyMasonry', 559// itemSelector: '.isotope-element' 560// }); 561 562 container.imagesLoaded(function () { 563 container.fadeIn(1000).isotope({ 564 itemSelector: '.mason-el' 565 }); 566 }); 567 }); 568 569 // reLayout the isotope plugin if the windows is resized 570 jQuery(window).smartresize(function () { 571 container.isotope('reLayout'); 572 }); 573 574 // handle the isotope filter 575 jQuery('ol.portfolio-isotope-filters li').click(function () { 576 var selector = jQuery(this).attr('data-filter'); 577 container.isotope({ filter: selector }); 578 return false; 579 }); 580 } 581 582 }); 583 584 $(".portfolio-isotope-filters .filter").click(function () { 585 $(".portfolio-isotope-filters .filter").removeClass('active'); 586 $(this).addClass('active'); 587 }); 588 589})(jQuery); 590 591/** 592 * Latest posts accordion initialization 593 */ 594(function ($) { "use strict"; 595 596 handleLatestPostsAnimations(); 597 598 // handles latest post hover animations 599 function handleLatestPostsAnimations() { 600 601 var postsContainer = jQuery('.post-acc .elements'); 602 var post = jQuery('.elements .element'); 603 604 var postWidth = 0; 605 var pixelsToMove = 0; 606 var postHeight = 0; 607 608 var secondPostLeftPosition = 290; 609 var lastPostLeftPosition = 580; 610 611 var isHovered = false; 612 613 var firstPost = jQuery('.latest-post'); 614 var secondElement = jQuery('.elements .element:nth-child(2)'); 615 var lastElement = jQuery('.elements .element:last-child'); 616 617 post.css({ 618 position: 'absolute', 619 top: 0, 620 float: 'none' 621 }); 622 623 secondElement.css({ 624 left: '25%' 625 }); 626 627 lastElement.css({ 628 left: '50%' 629 }); 630 631 postsContainer.find('.element:first-child').hover(function () { 632 633 secondElement.css({ 634 left: '50%' 635 }); 636 637 lastElement.css({ 638 left: '75%' 639 }); 640 641 }); 642 643 secondElement.hover(function () { 644 secondElement.css({ 645 left: '25%' 646 }); 647 648 lastElement.css({ 649 left: '75%' 650 }); 651 }); 652 653 lastElement.hover(function () { 654 secondElement.css({ 655 left: '25%' 656 }); 657 658 lastElement.css({ 659 left: '50%' 660 }) 661 }); 662 } 663 664})(jQuery); 665 666/** 667 * Google map initialization 668 */ 669(function ($) { "use strict"; 670 671 $('.holo-google-map').each(function () { 672 673 var _options = $(this).data(); 674 675 var _id = $(this).attr('id'); 676 var _zoom = _options.zoom; 677 var _center = _options.center.split(','); 678 679 var _centerLat = parseFloat(_center[0]); 680 var _centerLng = parseFloat(_center[1]); 681 682 console.log(_centerLat + ', ' + _centerLng); 683 684 var map; 685 function initialize() { 686 var mapOptions = { 687 zoom: _zoom, 688 center: new google.maps.LatLng(_centerLat, _centerLng), 689 mapTypeId: google.maps.MapTypeId.ROADMAP, 690 scrollwheel: false 691 }; 692 map = new google.maps.Map(document.getElementById(_id), 693 mapOptions); 694 } 695 696 google.maps.event.addDomListener(window, 'load', initialize); 697 698 });
699 700})(jQuery); 701 702/** 703 * Counters and progress bars Initialization 704 */ 705(function ($) { "use strict"; 706 707 $('.progress').appear(function() { 708 709 var $progressBar = $('.progress-bar', $(this)); 710 711 var fillSize = $progressBar.data('size'); 712 713 $progressBar.animate({ 714 width: fillSize 715 }, 2000, "swing", function() { 716 $(".inside", $progressBar).tooltip('toggle'); 717 }); 718 719 }); 720 721 $('.counter').appear(function() { 722 723 $(".count", $(this)).countTo(); 724 725 }); 726 727})(jQuery); 728 729/** 730 * Stellar initialization 731 */ 732(function ($) { "use strict"; 733 734 try { 735 $.stellar({ 736 horizontalScrolling: false, 737 responsive: true 738 }); 739 } 740 catch (err) { } 741 742})(jQuery); 743 744/** 745 * Ajax Loader initialization 746 */ 747(function ($) { "use strict"; 748 749 if ($().Holo_Ajax_Loader) { 750 $('.load .button').Holo_Ajax_Loader(); 751 } 752 753})(jQuery); 754 755/** 756 * Tooltips initialization 757 */ 758(function ($) { 759 "use strict"; 760 761 $('[data-toggle="tooltip"]').tooltip(); 762 763})(jQuery); 764 765/** 766 * "On resize" changes 767 */ 768(function ($) { "use strict"; 769 770 jQuery(window).smartresize(function () { 771 772 if ($(window).width() <= 983 && !($('body').hasClass('screen-head'))) { 773 $('body').css("margin-top", "0"); 774 jQuery('header').removeClass('navbar-fixed-top metro-small'); 775 jQuery('#nav-shop').removeClass('fixed-top'); 776 jQuery('#search').removeClass('fixed-top'); 777 jQuery('.uber-menu').removeClass('fixed-top'); 778 } 779 $(".resize-item.screen-banner").height($(window).height() - $("header").height() - $(".advertising").height()); 780 781 $(".constructing .logo").css("padding-top", ($(window).height() / 4)); 782 $(".constructing .main-txt").css("margin-top", ($(window).height() / 10)); 783 if ($(window).height() > $(".constructing .container").height()) { 784 $(".constructing").height($(window).height()); 785 } 786 else { 787 $(".constructing").css("height", "auto"); 788 } 789 $(".masonry-container").isotope('reLayout'); 790 }); 791 792})(jQuery); 793 794/** 795 * Other components intialization 796 */ 797(function ($) { "use strict"; 798 799 // testimonials 1 carousel indicators handle 800 $('.testimonials-1.carousel-indicators li').click(function () { 801 $('.testimonials-1.carousel-indicators li').removeClass('active'); 802 $(this).addClass('active'); 803 }); 804 805 // clear form 806 $(".form .clear").click(function () { 807 var $form = $(this).closest('form'); 808 809 $form.find('input:text, input:password, input:file, select, textarea').val(''); 810 $form.find('input:radio, input:checkbox') 811 .removeAttr('checked').removeAttr('selected'); 812 }); 813 814 // utilities buttons 815 $("#register_btn").click(function (event) { 816 $("#login").collapse('hide'); 817 }); 818 819 $("#login_btn").click(function (event) { 820 $("#register").collapse('hide'); 821 }); 822 823 $("#nav-shop").on('show.bs.collapse', function () { 824 $("header").addClass('no-shade'); 825 }); 826 827 $("#nav-shop").on('hidden.bs.collapse', function () { 828 if (!$("#search").hasClass('collapsing')) { 829 $("header").removeClass('no-shade'); 830 } 831 }); 832 833 $("#search").on('show.bs.collapse', function () { 834 $("header").addClass('no-shade'); 835 }); 836 837 $("#search").on('hidden.bs.collapse', function () { 838 if (!$("#nav-shop").hasClass('collapsing')) { 839 $("header").removeClass('no-shade'); 840 } 841 }); 842 843 $('html').click(function (event) { 844 845 var target = $(event.target); 846 847 if (target.closest('#nav-shop').length == 0 || target.closest('#search').length == 0 || target.closest('#login').length == 0 || target.closest('#register').length == 0) { 848 $(".utilities-buttons a").addClass("collapsed"); 849 850 if ($("#nav-shop").hasClass("in") && target.closest('#nav-shop').length == 0) { 851 $("#nav-shop").collapse('hide'); 852 } 853 854 if ($("#search").hasClass("in") && target.closest('#search').length == 0) { 855 $("#search").collapse('hide'); 856 } 857 858 if ($("#login").hasClass("in") && target.closest('#login').length == 0) { 859 $("#login").collapse('hide'); 860 } 861 862 if ($("#register").hasClass("in") && target.closest('#register').length == 0) { 863 $("#register").collapse('hide'); 864 } 865 } 866 });
867 868 // tabs 869 $('.tab').tabs(); 870 871 872 $(".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *") 873 .removeClass("ui-corner-all ui-corner-top") 874 .addClass("ui-corner-bottom"); 875 876 // move the nav to the bottom 877 $(".tabs-bottom .ui-tabs-nav").appendTo(".tabs-bottom"); 878 879 // sidebar navigation toggle 880 $('.navbar-toggle').click(function () { 881 var target = $('header .utilities-buttons'); 882 883 if (target.hasClass('border-bottom')) { 884 target.removeClass('border-bottom'); 885 } else { 886 target.addClass('border-bottom'); 887 } 888 }); 889 890 // accordion filter 891 var $container = $('#accordion-4').mixitup({ 892 targetSelector: '.panel', 893 filterSelector: '.filter', 894 easing: 'smooth' 895 }); 896 897 // try { 898// $(".bannecontainer video").mediaelementplayer({ 899// enableAutosize: true, 900// videoWidth: -1, 901// videoHeight: -1 902// }); 903// } catch (errr) { } 904 905// $(".bannecontainer .video-cover").click(function () { 906// var the_vid = $(this).closest('video'); 907// $the_vid.play(); 908// $(this).closest("video-cover").remove(); 909// }); 910 911 $(".resize-item.screen-banner").height($(window).height() - $(".advertising").height() - $("header").height()); 912 913 $("#options-panel .show").click(function () { 914 if ($(this).closest('#options-panel').hasClass('hid')) { 915 $(this).closest('#options-panel').removeClass('hid'); 916 } 917 else { 918 $(this).closest('#options-panel').addClass('hid'); 919 } 920 }); 921 922 $(".main-menu .main button").click(function () { 923 $("header button.navbar-toggle").addClass('collapsed'); 924 }); 925 926 $(".portfolio.item i.fa-share").hover(function () { 927 $(this).closest(".socials").css('opacity', '0.8'); 928 }); 929 930 $("#section-nav a.item").click(function () { 931 $('html,body').animate({ 932 scrollTop: $($(this).attr('href')).offset().top 933 },'slow'); 934 }); 935 936 $("#nav-shop .item .clear").click(function () { 937 $(this).closest(".item").css("display", "none"); 938 }); 939 940 $("#tagline .tag-close").click(function () { 941 $(this).closest("#tagline").remove(); 942 }); 943 944 $(".cart-list .line .fa-times-circle-o").click(function () { 945 $(this).closest(".line").remove(); 946 }); 947 948 if ( jQuery().smoothDivScroll ) { 949 $(".advertising .variants").smoothDivScroll({ 950 mousewheelScrolling: "backAndForth", 951 manualContinuousScrolling: false, 952 autoScrollingMode: "" 953 }); 954 } 955 956 $('header .main-menu.expandable li .submenu').addClass('collapse'); 957 $('header .main-menu.expandable li').addClass('closed'); 958 959 $('header .main-menu.expandable>li').each(function(){ 960 var children = $(this).children('.submenu'); 961 962 if (children.length > 0){ 963 $(this).children('a').append('<span class="main-text-color exp"></span>'); 964 } 965 }); 966 967 $('header .main-menu.expandable li > a .exp').click(function(){ 968 $(this).closest('a').siblings('.submenu').collapse('toggle'); 969 970 if ($(this).closest('li').hasClass('closed')){ 971 $(this).closest('li').removeClass('closed'); 972 $(this).closest('li').addClass('open'); 973 } 974 else{ 975 $(this).closest('li').removeClass('open'); 976 $(this).closest('li').addClass('closed'); 977 } 978 }); 979 980 $(document).ready(function(){ 981 $('.advertising').collapse(); 982 }); 983 984 $('.side-menu.pinned').affix({ 985 offset: { 986 top: 730, 987 bottom: function() { 988 return (this.bottom = ($('footer').height())) 989 } 990 } 991 }); 992 993 $(".holo-scroll-to").click(function (event) { 994 995 event.preventDefault(); 996 997// if ($($(this).attr('href')).offset().top < 600) { 998// $('html,body').animate({scrollTop: 0},'slow'); 999// } else { 1000 $('html,body').animate({scrollTop: $($(this).attr('href')).offset().top-70},'slow'); 1001// } 1002 });
1003 1004})(jQuery); 1005
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.