Ubuntu
// source --> https://airmob.net/wp-content/plugins/cookie-notice/js/front.min.js?ver=1.2.49
!function(a,r){var e=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(e){var t=this;"yes"===cnArgs.onScroll&&a.removeEventListener("scroll",this.handleScroll);var n=new Date,i=new Date;i.setTime(parseInt(n.getTime())+1e3*parseInt(cnArgs.cookieTime)),e="accept"===e?"true":"false",r.cookie=cnArgs.cookieName+"="+e+";expires="+i.toUTCString()+";"+(""!==cnArgs.cookieDomain?"domain="+cnArgs.cookieDomain+";":"")+(""!==cnArgs.cookiePath?"path="+cnArgs.cookiePath+";":"")+("1"===cnArgs.secure?"secure;":""),this.cookiesAccepted="true"===e||"false"!==e&&null;var o=new CustomEvent("setCookieNotice",{detail:{value:e,time:n,expires:i,data:cnArgs},bubbles:!0,cancelable:!0});if(r.dispatchEvent(o),this.setBodyClass(["cookies-set","true"===e?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revoke_cookies_opt&&(this.noticeContainer.addEventListener("animationend",function e(){t.showRevokeNotice(),t.noticeContainer.removeEventListener("animationend",e)}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.showRevokeNotice(),t.noticeContainer.removeEventListener("webkitAnimationEnd",e)})),"1"===cnArgs.redirection&&("true"===e&&null===this.cookiesAccepted||e!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var c=a.location.protocol+"//",s=a.location.host+"/"+a.location.pathname;"1"===cnArgs.cache?(c=c+s.replace("//","/")+(""===a.location.search?"?":a.location.search+"&")+"cn-reloaded=1"+a.location.hash,a.location.href=c):(c=c+s.replace("//","/")+a.location.search+a.location.hash,a.location.reload(!0))}else cnArgs.revoke_cookies_opt},this.getStatus=function(e){var t=("; "+r.cookie).split("; cookie_notice_accepted=");if(2!==t.length)return null;var n=t.pop().split(";").shift();return e?"true"===n:n},this.showCookieNotice=function(){var t=this,e=new CustomEvent("showCookieNotice",{detail:{data:cnArgs},bubbles:!0,cancelable:!0});r.dispatchEvent(e),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated","cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.removeEventListener("animationend",e)}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.removeEventListener("webkitAnimationEnd",e)})},this.hideCookieNotice=function(){var t=this,e=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs},bubbles:!0,cancelable:!0});r.dispatchEvent(e),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-notice-hidden"),t.noticeContainer.removeEventListener("animationend",e)}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-notice-hidden"),t.noticeContainer.removeEventListener("webkitAnimationEnd",e)})},this.showRevokeNotice=function(){var t=this,e=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs},bubbles:!0,cancelable:!0});r.dispatchEvent(e),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated","cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.removeEventListener("animationend",e)}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.removeEventListener("webkitAnimationEnd",e)})},this.hideRevokeNotice=function(){var t=this,e=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs},bubbles:!0,cancelable:!0});r.dispatchEvent(e),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-revoke-hidden"),t.noticeContainer.removeEventListener("animationend",e)}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-revoke-hidden"),t.noticeContainer.removeEventListener("webkitAnimationEnd",e)})},this.setBodyClass=function(e){r.body.classList.remove("cookies-revoke","cookies-accepted","cookies-refused","cookies-set","cookies-not-set");for(var t=0;tparseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,t){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1 https://airmob.net/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4
/*!
* jQuery UI Core 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(a){var e,t,n,i;function r(e,t){var n,i,r,o=e.nodeName.toLowerCase();return"area"===o?(i=(n=e.parentNode).name,!(!e.href||!i||"map"!==n.nodeName.toLowerCase())&&(!!(r=a("img[usemap='#"+i+"']")[0])&&s(r))):(/^(input|select|textarea|button|object)$/.test(o)?!e.disabled:"a"===o&&e.href||t)&&s(e)}function s(e){return a.expr.filters.visible(e)&&!a(e).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}a.ui=a.ui||{},a.extend(a.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({scrollParent:function(e){var t=this.css("position"),n="absolute"===t,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var e=a(this);return(!n||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&r.length?r:a(this[0].ownerDocument||document)},uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(t){return function(e){return!!a.data(e,t)}}):function(e,t,n){return!!a.data(e,n[3])},focusable:function(e){return r(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(e){var t=a.attr(e,"tabindex"),n=isNaN(t);return(n||0<=t)&&r(e,!n)}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(e,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function s(e,t,n,i){return a.each(r,function(){t-=parseFloat(a.css(e,"padding"+this))||0,n&&(t-=parseFloat(a.css(e,"border"+this+"Width"))||0),i&&(t-=parseFloat(a.css(e,"margin"+this))||0)}),t}a.fn["inner"+n]=function(e){return void 0===e?o["inner"+n].call(this):this.each(function(){a(this).css(i,s(this,e)+"px")})},a.fn["outer"+n]=function(e,t){return"number"!=typeof e?o["outer"+n].call(this,e):this.each(function(){a(this).css(i,s(this,e,!0,t)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=(t=a.fn.removeData,function(e){return arguments.length?t.call(this,a.camelCase(e)):t.call(this)})),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:(i=a.fn.focus,function(t,n){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){a(e).focus(),n&&n.call(e)},t)}):i.apply(this,arguments)}),disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,n,i=a(this[0]);i.length&&i[0]!==document;){if(("absolute"===(t=i.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0}}),a.ui.plugin={add:function(e,t,n){var i,r=a.ui[e].prototype;for(i in n)r.plugins[i]=r.plugins[i]||[],r.plugins[i].push([t,n[i]])},call:function(e,t,n,i){var r,o=e.plugins[t];if(o&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r https://airmob.net/wp-content/plugins/mega-addons-for-visual-composer/js/script.js?ver=28b11b
jQuery(document).ready(function($) {
if(jQuery('.equal-height .mason-item').length > 0){
jQuery('.equal-height .mason-item').matchHeight({byRow: true});
}
$('a, i').hover(function() {
$(this).css({
'color': $(this).data('onhovercolor'),
'background-color': $(this).data('onhoverbg')
});
}, function() {
$(this).css({
'color': $(this).data('onleavecolor'),
'background-color': $(this).data('onleavebg')
});
});
});
// Photo Book Gallery
function PhotoBookGallery(el){
jQuery('.wcp-loader').show();
if (initiated) { jQuery(el).booklet('destroy'); };
jQuery(el).css('width', '100%');
jQuery(el).find('img').css('width', '100%');
var width = jQuery(el).find('img').width();
var height = jQuery(el).find('img').height()/2;
var speedofturn = (jQuery(el).data('speed') != '') ? jQuery(el).data('speed') : '1000';
var readingdirection = jQuery(el).data('direction');
var pagepadding = jQuery(el).data('padding');
var delay = jQuery(el).data('autodelay');
var pagenumbers = (jQuery(el).data('pagenumbers') != '') ? true : false;
var closedbook = (jQuery(el).data('closedbook') != '') ? true : false;
var autoplay = (jQuery(el).data('autoplay') != '') ? true : false;
var keyboardcontrols = (jQuery(el).data('keyboard') != '') ? true : false;
var booktabs = (jQuery(el).data('tabs') != '') ? true : false;
var bookarrows = (jQuery(el).data('arrows') != '') ? true : false;
var manual = (jQuery(el).data('turnbyclick') != '') ? true : false;
var manualcontrol = false;
if (jQuery(el).data('turnbyclick') != '') { manualcontrol = true; manual = false; }
jQuery(el).booklet({
width: width,
height: height,
auto: autoplay,
arrows: bookarrows,
tabs: booktabs,
closed: closedbook,
autoCenter: closedbook,
delay: delay,
keyboard: keyboardcontrols,
overlays: manualcontrol,
manual: manual,
pageNumbers: pagenumbers,
pagePadding: pagepadding,
direction: readingdirection,
speed: speedofturn,
});
if (jQuery(el).data('zoom') != '') {
setTimeout(function() {
jQuery(el).find('img').each(function(index, el) {
jQuery(this).closest('div').zoom({magnify: jQuery(el).data('zoomdepth')});
});
}, 100);
};
jQuery('.wcp-loader').hide();
initiated = true;
}
var initiated = false;
jQuery( window ).on("resize", function() {
jQuery('.flipbook').each(function(index, el) {
PhotoBookGallery(el);
});
});
jQuery(window).load(function($) {
jQuery(window).trigger('resize');
});
// Stat Counter Script
(function ($) {
$.fn.isOnScreen = function(x, y){
if(x == null || typeof x == 'undefined') x = 1;
if(y == null || typeof y == 'undefined') y = 1;
var win = $(window);
var viewport = {
top : win.scrollTop(),
left : win.scrollLeft()
};
viewport.right = viewport.left + win.width();
viewport.bottom = viewport.top + win.height();
var height = this.outerHeight();
var width = this.outerWidth();
if(!width || !height){
return false;
}
var bounds = this.offset();
bounds.right = bounds.left + width;
bounds.bottom = bounds.top + height;
var visible = (!(viewport.right < bounds.left || viewport.left > bounds.right || viewport.bottom < bounds.top || viewport.top > bounds.bottom));
if(!visible){
return false;
}
var deltas = {
top : Math.min( 1, ( bounds.bottom - viewport.top ) / height),
bottom : Math.min(1, ( viewport.bottom - bounds.top ) / height),
left : Math.min(1, ( bounds.right - viewport.left ) / width),
right : Math.min(1, ( viewport.right - bounds.left ) / width)
};
return (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;
};
})(jQuery);
jQuery(document).scroll(function(event) {
var hasBeenSeen = false;
jQuery('.timer').each(function(index, el) {
if (jQuery(el).isOnScreen()) {
if (jQuery(this).closest('div').data('alreadystarted') != 'yes') {
jQuery(this).countTo();
jQuery(this).closest('div').data('alreadystarted', 'yes');
};
};
});
});
// CountDown timer
jQuery(document).ready(function($) {
$(function () {
$('.countdownapply').each(function(index, el) {
var style = $(this).data('style');
var year = $(this).data('year');
var month = $(this).data('month');
var date = $(this).data('date');
var CountDown = new Date();
CountDown = new Date(CountDown.getFullYear() + year, month - 1, date);
$(this).countdown({until: CountDown, format: style});
});
});
});
// source --> https://airmob.net/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70
/*!
* jQuery blockUI plugin
* Version 2.70.0-2014.11.23
* Requires jQuery v1.7 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2013 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
!function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'':''),I=e(n.theme?'':''),n.theme&&k?(U='',n.title&&(U+='"),U+='
',U+="
"):n.theme?(U='"):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('');t&&s.append(""+t+"
"),o&&s.append(""+o+"
"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"Please wait...
",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
// source --> https://airmob.net/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-download-tracker.js?ver=1.11.2
function gtm4wp_track_downloads(track_extensions) {
var gtm4wp_extensions_to_track = track_extensions.split(",");
for ( var i = 0; i < gtm4wp_extensions_to_track.length; i++ ) {
jQuery( "a[href$=\\." + gtm4wp_extensions_to_track[i].toLowerCase() + "], a[href$=\\." + gtm4wp_extensions_to_track[i].toUpperCase() + "]" )
.on( "click", function() {
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.downloadClick',
'linkhref': jQuery( this ).attr( "href" )
});
})
.attr( "target", "_blank" );
} // end for i
};
// source --> https://airmob.net/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-contact-form-7-tracker.js?ver=1.11.2
jQuery( function() {
jQuery( ".wpcf7" )
.on( 'wpcf7mailsent', function( e ) {
var gtm4wp_cf7formid = '(not set)';
if ( e && e.detail && e.detail.contactFormId ) {
gtm4wp_cf7formid = e.detail.contactFormId;
} else if ( e && e.originalEvent && e.originalEvent.detail && e.originalEvent.detail.contactFormId ) {
gtm4wp_cf7formid = e.originalEvent.detail.contactFormId;
}
var gtm4wp_cf7forminputs = [];
if ( e && e.detail && e.detail.inputs ) {
gtm4wp_cf7forminputs = e.detail.inputs;
} else if ( e && e.originalEvent && e.originalEvent.detail && e.originalEvent.detail.inputs ) {
gtm4wp_cf7forminputs = e.originalEvent.detail.inputs;
}
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.contactForm7Submitted',
'gtm4wp.cf7formid': gtm4wp_cf7formid,
'gtm4wp.cf7inputs': gtm4wp_cf7forminputs
});
});
});
// source --> https://airmob.net/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-form-move-tracker.js?ver=1.11.2
jQuery( function() {
jQuery( ":input" )
.on( "focus", function() {
var input = jQuery(this);
var inputID = input.attr("id") || "(no input ID)";
var inputName = input.attr("name") || "(no input name)";
var inputClass = input.attr("class") || "(no input class)";
var form = jQuery(this.form);
var formID = form.attr("id") || "(no form ID)";
var formName = form.attr("name") || "(no form name)";
var formClass = form.attr("class") || "(no form class)";
window[ gtm4wp_datalayer_name ].push({
'event' : 'gtm4wp.formElementEnter',
'inputID' : inputID,
'inputName' : inputName,
'inputClass': inputClass,
'formID' : formID,
'formName' : formName,
'formClass': formClass
});
})
.on( "blur", function() {
var input = jQuery(this);
var inputID = input.attr("id") || "(no input ID)";
var inputName = input.attr("name") || "(no input name)";
var inputClass = input.attr("class") || "(no input class)";
var form = jQuery(this.form);
var formID = form.attr("id") || "(no form ID)";
var formName = form.attr("name") || "(no form name)";
var formClass = form.attr("class") || "(no form class)";
window[ gtm4wp_datalayer_name ].push({
'event' : 'gtm4wp.formElementLeave',
'inputID' : inputID,
'inputName' : inputName,
'inputClass': inputClass,
'formID' : formID,
'formName' : formName,
'formClass': formClass
});
});
});
// source --> https://airmob.net/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-social-tracker.js?ver=1.11.2
jQuery( function() {
if ( typeof FB != "undefined" ) {
FB.Event.subscribe( 'edge.create', function( href, widget ) {
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.socialAction',
'network': 'facebook',
'socialAction': 'like',
'opt_target': href,
'opt_pagePath': window.location.href
});
});
FB.Event.subscribe( 'edge.remove', function( href, widget ) {
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.socialAction',
'network': 'facebook',
'socialAction': 'unlike',
'opt_target': href,
'opt_pagePath': window.location.href
});
});
FB.Event.subscribe( 'comment.create', function( href, commentID ) {
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.socialAction',
'network': 'facebook',
'socialAction': 'comment',
'opt_target': href,
'opt_pagePath': window.location.href
});
});
FB.Event.subscribe( 'comment.remove', function( href, commentID ) {
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.socialAction',
'network': 'facebook',
'socialAction': 'uncomment',
'opt_target': href,
'opt_pagePath': window.location.href
});
});
FB.Event.subscribe( 'message.send', function( response ) {
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.socialAction',
'network': 'facebook',
'socialAction': 'send',
'opt_target': response,
'opt_pagePath': window.location.href
});
});
} // end of Facebook social events
if ( typeof window.twttr == "undefined" ) {
window.twttr = (function ( d, s, id ) {
var t, js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return; js=d.createElement(s); js.id=id;
js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
return window.twttr || (t = {
_e: [],
ready: function(f) {
t._e.push(f);
}
});
} (document, "script", "twitter-wjs"));
} // end of loading Twitter JS
if ( typeof window.twttr != "undefined" ) {
window.twttr.ready(function ( twttr ) {
twttr.events.bind( 'tweet', function ( intent_event ) {
if ( intent_event ) {
var label = intent_event.data.tweet_id;
if (typeof label != 'undefined' && label) {
if(label == 'label'){
label = window.location.href;
}
}else{
label = window.location.href;
}
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.socialAction',
'network': 'twitter',
'socialAction': 'tweet',
'opt_target': label,
'opt_pagePath': window.location.href
});
}
});
window.twttr.events.bind( 'follow', function ( intent_event ) {
if ( intent_event ) {
var label = intent_event.data.user_id + " (" + intent_event.data.screen_name + ")";
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.socialAction',
'network': 'twitter',
'socialAction': 'follow',
'opt_target': label,
'opt_pagePath': window.location.href
});
}
});
});
}
});
// source --> https://airmob.net/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-youtube.js?ver=1.11.2
var gtm4wp_youtube_percentage_tracking = 10;
var gtm4wp_youtube_percentage_tracking_timeouts = {};
var gtm4wp_youtube_percentage_tracking_marks = {};
if ( typeof onYouTubeIframeAPIReady === "undefined" ) {
window.onYouTubeIframeAPIReady = function() {
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaApiReady',
'mediaType': 'youtube'
});
jQuery( "iframe[src^='https://www.youtube.com/embed']" ).each( function() {
var gtm4wp_jqthis = jQuery( this );
var playerID = gtm4wp_jqthis.attr( "id" );
if ( ( playerID === undefined ) || ( playerID === "" ) ) {
var _gtm4wp_temp = gtm4wp_jqthis.attr( "src" ).split( "?" );
var _gtm4wp_temp2 = _gtm4wp_temp[ 0 ].split( "/" );
playerID = "youtubeplayer_" + _gtm4wp_temp2[ _gtm4wp_temp2.length-1 ];
gtm4wp_jqthis.attr( "id", playerID );
}
var gtm4wp_yturl = gtm4wp_jqthis.attr( "src" );
if ( gtm4wp_yturl.indexOf( "enablejsapi=1" ) == -1 ) {
if ( gtm4wp_yturl.indexOf( "?" ) == -1 ) {
gtm4wp_yturl += "?";
}
gtm4wp_yturl += "&enablejsapi=1&origin=" + document.location.protocol + "//" + document.location.hostname;
gtm4wp_jqthis.attr( "src", gtm4wp_yturl );
}
player = new YT.Player( playerID, {
events: {
'onReady': gtm4wp_onYouTubePlayerReady,
'onStateChange': gtm4wp_onYouTubePlayerStateChange,
'onPlaybackQualityChange': gtm4wp_onYouTubePlaybackQualityChange,
'onPlaybackRateChange': gtm4wp_onYouTubePlaybackRateChange,
'onError': gtm4wp_onYouTubeError,
'onApiChange': gtm4wp_onYouTubeApiChange
}
});
});
};
var tag = document.createElement( 'script' );
tag.src = "//www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName( 'script' )[0];
firstScriptTag.parentNode.insertBefore( tag, firstScriptTag );
} else {
var gtm4wp_err = new Error( "Another code is already utilizing YouTube API, GTM4WP plugin can not load YouTube tracking!" );
throw gtm4wp_err;
}
function gtm4wp_onYouTubePlayerReady( event ) {
var videodata = event.target.getVideoData();
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaPlayerReady',
'mediaType': 'youtube',
'mediaData': {
'id': videodata.video_id,
'author': videodata.author,
'title': videodata.title,
'url': event.target.getVideoUrl(),
'duration': event.target.getDuration()
},
'mediaCurrentTime': event.target.getCurrentTime()
});
}
function gtm4wp_onYouTubePlayerStateChange( event ) {
var playerState = "unknown";
switch( event.data ) {
case -1: playerState = "unstarted"; break;
case YT.PlayerState.ENDED: playerState = "ended"; break;
case YT.PlayerState.PLAYING: playerState = "play"; break;
case YT.PlayerState.PAUSED: playerState = "pause"; break;
case YT.PlayerState.BUFFERING: playerState = "buffering"; break;
case YT.PlayerState.CUED: playerState = "cued"; break;
}
var videoId = event.target.getVideoData().video_id;
if ( ( YT.PlayerState.PLAYING == event.data ) && ( gtm4wp_youtube_percentage_tracking > 0 ) ) {
gtm4wp_youtube_percentage_tracking_timeouts[ videoId ] = setInterval(function() {
gtm4wp_onYouTubePercentageChange( event );
}, 1000);
} else {
if ( gtm4wp_youtube_percentage_tracking_timeouts[ videoId ] ) {
clearInterval( gtm4wp_youtube_percentage_tracking_timeouts[ videoId ] );
}
}
var videodata = event.target.getVideoData();
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaPlayerStateChange',
'mediaType': 'youtube',
'mediaData': {
'id': videodata.video_id,
'author': videodata.author,
'title': videodata.title,
'url': event.target.getVideoUrl(),
'duration': event.target.getDuration()
},
'mediaPlayerState': playerState,
'mediaCurrentTime': event.target.getCurrentTime()
});
}
function gtm4wp_onYouTubePlaybackQualityChange( event ) {
var videodata = event.target.getVideoData();
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaPlayerEvent',
'mediaType': 'youtube',
'mediaData': {
'id': videodata.video_id,
'author': videodata.author,
'title': videodata.title,
'url': event.target.getVideoUrl(),
'duration': event.target.getDuration()
},
'mediaCurrentTime': event.target.getCurrentTime(),
'mediaPlayerEvent': 'quality-change',
'mediaPlayerEventParam': event.data
});
}
function gtm4wp_onYouTubePlaybackRateChange( event ) {
var videodata = event.target.getVideoData();
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaPlayerEvent',
'mediaType': 'youtube',
'mediaData': {
'id': videodata.video_id,
'author': videodata.author,
'title': videodata.title,
'url': event.target.getVideoUrl(),
'duration': event.target.getDuration()
},
'mediaCurrentTime': event.target.getCurrentTime(),
'mediaPlayerEvent': 'ratechange',
'mediaPlayerEventParam': event.data
});
}
function gtm4wp_onYouTubeError( event ) {
var videodata = event.target.getVideoData();
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaPlayerEvent',
'mediaType': 'youtube',
'mediaData': {
'id': videodata.video_id,
'author': videodata.author,
'title': videodata.title,
'url': event.target.getVideoUrl(),
'duration': event.target.getDuration()
},
'mediaCurrentTime': event.target.getCurrentTime(),
'mediaPlayerEvent': 'error',
'mediaPlayerEventParam': event.data
});
}
function gtm4wp_onYouTubeApiChange( event ) {
var videodata = event.target.getVideoData();
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaPlayerEvent',
'mediaType': 'youtube',
'mediaData': {
'id': videodata.video_id,
'author': videodata.author,
'title': videodata.title,
'url': event.target.getVideoUrl(),
'duration': event.target.getDuration()
},
'mediaCurrentTime': event.target.getCurrentTime(),
'mediaPlayerEvent': 'api-change',
'mediaPlayerEventParam': event.data
});
}
function gtm4wp_onYouTubePercentageChange( event ) {
var videoId = event.target.getVideoData().video_id;
var videoCurrentTime = event.target.getCurrentTime();
var videoDuration = event.target.getDuration();
var videoPercentage = Math.floor( videoCurrentTime / videoDuration * 100 );
if ( typeof gtm4wp_youtube_percentage_tracking_marks[ videoId ] == "undefined" ) {
gtm4wp_youtube_percentage_tracking_marks[ videoId ] = [];
}
var videodata = event.target.getVideoData();
for( var i=0; i<100; i+=gtm4wp_youtube_percentage_tracking ) {
if ( ( videoPercentage > i ) && ( gtm4wp_youtube_percentage_tracking_marks[ videoId ].indexOf( i ) == -1 ) ) {
gtm4wp_youtube_percentage_tracking_marks[ videoId ].push( i );
window[ gtm4wp_datalayer_name ].push({
'event': 'gtm4wp.mediaPlaybackPercentage',
'mediaType': 'youtube',
'mediaData': {
'id': videodata.video_id,
'author': videodata.author,
'title': videodata.title,
'url': event.target.getVideoUrl(),
'duration': event.target.getDuration()
},
'mediaCurrentTime': event.target.getCurrentTime(),
'mediaPercentage': i
});
}
}
};