Free javascript Hosting


allevents.js

Uploaded on May 25 2022 01:44 by info

//Iframe Resizer JS
//https://github.com/davidjbradshaw/iframe-resizer
!function(a){"use strict";function b(a,b,c){"addEventListener"in window?a.addEventListener(b,c,!1):"attachEvent"in window&&a.attachEvent("on"+b,c)}function c(a,b,c){"removeEventListener"in window?a.removeEventListener(b,c,!1):"detachEvent"in window&&a.detachEvent("on"+b,c)}function d(){var a,b=["moz","webkit","o","ms"];for(a=0;a<b.length&&!N;a+=1)N=window[b[a]+"RequestAnimationFrame"];N||h("setup","RequestAnimationFrame not supported")}function e(a){var b="Host page: "+a;return window.top!==window.self&&(b=window.thatIFrame&&window.thatIFrame.getId?window.thatIFrame.getId()+": "+a:"Nested host page: "+a),b}function f(a){return K+"["+e(a)+"]"}function g(a){return P[a]?P[a].log:G}function h(a,b){k("log",a,b,g(a))}function i(a,b){k("info",a,b,g(a))}function j(a,b){k("warn",a,b,!0)}function k(a,b,c,d){!0===d&&"object"==typeof window.console&&console[a](f(b),c)}function l(a){function d(){function a(){s(U),p(V),I("resizedCallback",U)}f("Height"),f("Width"),t(a,U,"init")}function e(){var a=T.substr(L).split(":");return{iframe:P[a[0]]&&P[a[0]].iframe,id:a[0],height:a[1],width:a[2],type:a[3]}}function f(a){var b=Number(P[V]["max"+a]),c=Number(P[V]["min"+a]),d=a.toLowerCase(),e=Number(U[d]);h(V,"Checking "+d+" is in range "+c+"-"+b),c>e&&(e=c,h(V,"Set "+d+" to min value")),e>b&&(e=b,h(V,"Set "+d+" to max value")),U[d]=""+e}function g(){function b(){function a(){var a=0,b=!1;for(h(V,"Checking connection is from allowed list of origins: "+d);a<d.length;a++)if(d[a]===c){b=!0;break}return b}function b(){var a=P[V]&&P[V].remoteHost;return h(V,"Checking connection is from: "+a),c===a}return d.constructor===Array?a():b()}var c=a.origin,d=P[V]&&P[V].checkOrigin;if(d&&""+c!="null"&&!b())throw new Error("Unexpected message received from: "+c+" for "+U.iframe.id+". Message was: "+a.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function k(){return K===(""+T).substr(0,L)&&T.substr(L).split(":")[0]in P}function l(){var a=U.type in{"true":1,"false":1,undefined:1};return a&&h(V,"Ignoring init message from meta that page"),a}function w(a){return T.substr(T.indexOf(":")+J+a)}function y(a){h(V,"MessageCallback passed: {iframe: "+U.iframe.id+", message: "+a+"}"),I("messageCallback",{iframe:U.iframe,message:JSON.parse(a)}),h(V,"--")}function z(){var a=document.body.getBoundingClientRect(),b=U.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:b.height,iframeWidth:b.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(b.top-a.top,10),offsetLeft:parseInt(b.left-a.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}function A(a,b){function c(){u("Send Page Info","pageInfo:"+z(),a,b)}x(c,32)}function B(){function a(a,b){function c(){P[f]?A(P[f].iframe,f):d()}["scroll","resize"].forEach(function(d){h(f,a+d+" listener for sendPageInfo"),b(window,d,c)})}function d(){a("Remove ",c)}function e(){a("Add ",b)}var f=V;e(),P[f]&&(P[f].stopPageInfo=d)}function C(){P[V]&&P[V].stopPageInfo&&(P[V].stopPageInfo(),delete P[V].stopPageInfo)}function D(){var a=!0;return null===U.iframe&&(j(V,"IFrame ("+U.id+") not found"),a=!1),a}function E(a){var b=a.getBoundingClientRect();return o(V),{x:Math.floor(Number(b.left)+Number(M.x)),y:Math.floor(Number(b.top)+Number(M.y))}}function F(a){function b(){M=f,G(),h(V,"--")}function c(){return{x:Number(U.width)+e.x,y:Number(U.height)+e.y}}function d(){window.thatIFrame?window.thatIFrame["scrollTo"+(a?"Offset":"")](f.x,f.y):j(V,"Unable to scroll to requested position, window.thatIFrame not found")}var e=a?E(U.iframe):{x:0,y:0},f=c();h(V,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top!==window.self?d():b()}function G(){!1!==I("scrollCallback",M)?p(V):q()}function H(a){function b(){var a=E(f);h(V,"Moving to in page link (#"+d+") at x: "+a.x+" y: "+a.y),M={x:a.x,y:a.y},G(),h(V,"--")}function c(){window.thatIFrame?window.thatIFrame.moveToAnchor(d):h(V,"In page link #"+d+" not found and window.thatIFrame not found")}var d=a.split("#")[1]||"",e=decodeURIComponent(d),f=document.getElementById(e)||document.getElementsByName(e)[0];f?b():window.top!==window.self?c():h(V,"In page link #"+d+" not found")}function I(a,b){return m(V,a,b)}function N(){switch(P[V]&&P[V].firstRun&&S(),U.type){case"close":P[V].closeRequestCallback?m(V,"closeRequestCallback",P[V].iframe):n(U.iframe);break;case"message":y(w(6));break;case"scrollTo":F(!1);break;case"scrollToOffset":F(!0);break;case"pageInfo":A(P[V]&&P[V].iframe,V),B();break;case"pageInfoStop":C();break;case"inPageLink":H(w(9));break;case"reset":r(U);break;case"init":d(),I("initCallback",U.iframe);break;default:d()}}function O(a){var b=!0;return P[a]||(b=!1,j(U.type+" No settings for "+a+". Message was: "+T)),b}function Q(){for(var a in P)u("iFrame requested init",v(a),document.getElementById(a),a)}function S(){P[V]&&(P[V].firstRun=!1)}var T=a.data,U={},V=null;"[iFrameResizerChild]Ready"===T?Q():k()?(U=e(),V=R=U.id,P[V]&&(P[V].loaded=!0),!l()&&O(V)&&(h(V,"Received: "+T),D()&&g()&&N())):i(V,"Ignored: "+T)}function m(a,b,c){var d=null,e=null;if(P[a]){if(d=P[a][b],"function"!=typeof d)throw new TypeError(b+" on iFrame["+a+"] is not a function");e=d(c)}return e}function n(a){var b=a.id;h(b,"Removing iFrame: "+b),a.thatNode&&a.thatNode.removeChild(a),m(b,"closedCallback",b),h(b,"--"),delete P[b]}function o(b){null===M&&(M={x:window.pageXOffset!==a?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==a?window.pageYOffset:document.documentElement.scrollTop},h(b,"Get page position: "+M.x+","+M.y))}function p(a){null!==M&&(window.scrollTo(M.x,M.y),h(a,"Set page position: "+M.x+","+M.y),q())}function q(){M=null}function r(a){function b(){s(a),u("reset","reset",a.iframe,a.id)}h(a.id,"Size reset requested by "+("init"===a.type?"host page":"iFrame")),o(a.id),t(b,a,"reset")}function s(a){function b(b){a.iframe.style[b]=a[b]+"px",h(a.id,"IFrame ("+e+") "+b+" set to "+a[b]+"px")}function c(b){H||"0"!==a[b]||(H=!0,h(e,"Hidden iFrame detected, creating visibility listener"),y())}function d(a){b(a),c(a)}var e=a.iframe.id;P[e]&&(P[e].sizeHeight&&d("height"),P[e].sizeWidth&&d("width"))}function t(a,b,c){c!==b.type&&N?(h(b.id,"Requesting animation frame"),N(a)):a()}function u(a,b,c,d,e){function f(){var e=P[d]&&P[d].targetOrigin;h(d,"["+a+"] Sending msg to iframe["+d+"] ("+b+") targetOrigin: "+e),c.contentWindow.postMessage(K+b,e)}function g(){j(d,"["+a+"] IFrame("+d+") not found")}function i(){c&&"contentWindow"in c&&null!==c.contentWindow?f():g()}function k(){function a(){!P[d]||P[d].loaded||l||(l=!0,j(d,"IFrame has not responded within "+P[d].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}e&&P[d]&&P[d].warningTimeout&&(P[d].msgTimeout=setTimeout(a,P[d].warningTimeout))}var l=!1;d=d||c.id,P[d]&&(i(),k())}function v(a){return a+":"+P[a].bodyMarginV1+":"+P[a].sizeWidth+":"+P[a].log+":"+P[a].interval+":"+P[a].enablePublicMethods+":"+P[a].autoResize+":"+P[a].bodyMargin+":"+P[a].heightCalculationMethod+":"+P[a].bodyBackground+":"+P[a].bodyPadding+":"+P[a].tolerance+":"+P[a].inPageLinks+":"+P[a].resizeFrom+":"+P[a].widthCalculationMethod}function w(c,d){function e(){function a(a){1/0!==P[x][a]&&0!==P[x][a]&&(c.style[a]=P[x][a]+"px",h(x,"Set "+a+" = "+P[x][a]+"px"))}function b(a){if(P[x]["min"+a]>P[x]["max"+a])throw new Error("Value for min"+a+" can not be greater than max"+a)}b("Height"),b("Width"),a("maxHeight"),a("minHeight"),a("maxWidth"),a("minWidth")}function f(){var a=d&&d.id||S.id+F++;return null!==document.getElementById(a)&&(a+=F++),a}function g(a){return R=a,""===a&&(c.id=a=f(),G=(d||{}).log,R=a,h(a,"Added missing iframe ID: "+a+" ("+c.src+")")),a}function i(){switch(h(x,"IFrame scrolling "+(P[x]&&P[x].scrolling?"enabled":"disabled")+" for "+x),c.style.overflow=!1===(P[x]&&P[x].scrolling)?"hidden":"auto",P[x]&&P[x].scrolling){case!0:c.scrolling="yes";break;case!1:c.scrolling="no";break;default:c.scrolling=P[x]?P[x].scrolling:"no"}}function k(){("number"==typeof(P[x]&&P[x].bodyMargin)||"0"===(P[x]&&P[x].bodyMargin))&&(P[x].bodyMarginV1=P[x].bodyMargin,P[x].bodyMargin=""+P[x].bodyMargin+"px")}function l(){var a=P[x]&&P[x].firstRun,b=P[x]&&P[x].heightCalculationMethod in O;!a&&b&&r({iframe:c,height:0,width:0,type:"init"})}function m(){Function.prototype.bind&&P[x]&&(P[x].iframe.iFrameResizer={close:n.bind(null,P[x].iframe),resize:u.bind(null,"Window resize","resize",P[x].iframe),moveToAnchor:function(a){u("Move to anchor","moveToAnchor:"+a,P[x].iframe,x)},sendMessage:function(a){a=JSON.stringify(a),u("Send Message","message:"+a,P[x].iframe,x)}})}function o(d){function e(){u("iFrame.onload",d,c,a,!0),l()}b(c,"load",e),u("init",d,c,a,!0)}function p(a){if("object"!=typeof a)throw new TypeError("Options is not an object")}function q(a){for(var b in S)S.hasOwnProperty(b)&&(P[x][b]=a.hasOwnProperty(b)?a[b]:S[b])}function s(a){return""===a||"file://"===a?"*":a}function t(a){a=a||{},P[x]={firstRun:!0,iframe:c,remoteHost:c.src.split("/").slice(0,3).join("/")},p(a),q(a),P[x]&&(P[x].targetOrigin=!0===P[x].checkOrigin?s(P[x].remoteHost):"*")}function w(){return x in P&&"iFrameResizer"in c}var x=g(c.id);w()?j(x,"Ignored iFrame, already setup."):(t(d),i(),e(),k(),o(v(x)),m())}function x(a,b){null===Q&&(Q=setTimeout(function(){Q=null,a()},b))}function y(){function a(){function a(a){function b(b){return"0px"===(P[a]&&P[a].iframe.style[b])}function c(a){return null!==a.offsetthat}P[a]&&c(P[a].iframe)&&(b("height")||b("width"))&&u("Visibility change","resize",P[a].iframe,a)}for(var b in P)a(b)}function b(b){h("window","Mutation observed: "+b[0].target+" "+b[0].type),x(a,16)}function c(){var a=document.querySelector("body"),c={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},e=new d(b);e.observe(a,c)}var d=window.MutationObserver||window.WebKitMutationObserver;d&&c()}function z(a){function b(){B("Window "+a,"resize")}h("window","Trigger event: "+a),x(b,16)}function A(){function a(){B("Tab Visable","resize")}"hidden"!==document.visibilityState&&(h("document","Trigger event: Visiblity change"),x(a,16))}function B(a,b){function c(a){return P[a]&&"that"===P[a].resizeFrom&&P[a].autoResize&&!P[a].firstRun}for(var d in P)c(d)&&u(a,b,document.getElementById(d),d)}function C(){b(window,"message",l),b(window,"resize",function(){z("resize")}),b(document,"visibilitychange",A),b(document,"-webkit-visibilitychange",A),b(window,"focusin",function(){z("focus")}),b(window,"focus",function(){z("focus")})}function D(){function b(a,b){function c(){if(!b.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==b.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+b.tagName+">")}b&&(c(),w(b,a),e.push(b))}function c(a){a&&a.enablePublicMethods&&j("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var e;return d(),C(),function(d,f){switch(e=[],c(d),typeof f){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(f||"iframe"),b.bind(a,d));break;case"object":b(d,f);break;default:throw new TypeError("Unexpected data type ("+typeof f+")")}return e}}function E(a){a.fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(a){function b(b,c){w(c,a)}return this.filter("iframe").each(b).end()}):i("","Unable to bind to jQuery, it is not fully loaded.")}if("undefined"!=typeof window){var F=0,G=!1,H=!1,I="message",J=I.length,K="[iFrameSizer]",L=K.length,M=null,N=window.requestAnimationFrame,O={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},P={},Q=null,R="Host Page",S={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"that",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){j("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};window.jQuery&&E(window.jQuery),"function"==typeof define&&define.amd?define([],D):"object"==typeof module&&"object"==typeof module.exports?module.exports=D():window.iFrameResize=window.iFrameResize||D()}}();

function customModal(bodyhtml,callback) {
if(typeof(jQuery.fn.AEeasyModal)=="undefined"){
!function(e){"use strict";var o={init:function(o){var n={top:"auto",autoOpen:!1,overlayOpacity:.7,overlayColor:"#000",overlayClose:!1,overlayParent:"body",closeOnEscape:!1,closeButtonClass:".close",onOpen:function(){jQuery("body, html").addClass("modal-open-no-scroll"),jQuery("#ae-chat-embed-root.idle-mode").addClass('hide-ae-chat')},onClose:function(){jQuery("body, html").removeClass("modal-open-no-scroll"),jQuery("#ae-chat-embed-root.idle-mode").removeClass('hide-ae-chat')},zIndex:function(){return 1040},updateZIndexOnOpen:!0};return o=e.extend(n,o),this.each(function(){var n=o,t=jQuery('<div class="lean-overlay"></div>'),a=e(this);t.css({display:"none",position:"fixed","z-index":n.updateZIndexOnOpen?0:n.zIndex(),top:0,left:0,height:"100%",width:"100%",background:n.overlayColor,opacity:n.overlayOpacity,overflow:"auto"}).appendTo(n.overlayParent),a.css({display:"none",position:"fixed","z-index":n.updateZIndexOnOpen?0:n.zIndex()+1,left:"50%",top:parseInt(n.top,10)>-1?n.top+"px":"50%"}),a.bind("openModal",function(){var e=n.updateZIndexOnOpen?n.zIndex():parseInt(t.css("z-index"),10),o=e+1;a.css({display:"block",transform:"translate(-50%, -50%)","z-index":o}),t.css({"z-index":e,display:"block"}),n.onOpen&&"function"==typeof n.onOpen&&n.onOpen(a[0])}),a.bind("closeModal",function(){a.css("display","none"),t.css("display","none"),n.onClose&&"function"==typeof n.onClose&&n.onClose(a[0])}),t.click(function(){n.overlayClose&&a.trigger("closeModal")}),e(document).keydown(function(e){n.closeOnEscape&&27===e.keyCode&&a.trigger("closeModal")}),a.on("click",n.closeButtonClass,function(e){a.trigger("closeModal"),e.preventDefault()}),n.autoOpen&&a.trigger("openModal")})}};e.fn.AEeasyModal=function(n){return o[n]?o[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.AEeasyModal"):o.init.apply(this,arguments)}}(jQuery);
}
//cleanup previous instance
if (jQuery('.rcustomModal').length > 0) {
jQuery('.rcustomModal').data('modal', null);
jQuery('.rcustomModal').data('bs.modal', null);
jQuery('.lean-overlay').remove();
jQuery(".rcustomModal,.rcustomModalStyle").remove();
}


var bodyhtml = bodyhtml || "";
var html = "";
html = '<div class="rcustomModal" style="overflow:visible; border-radius: 0px; padding-right: 0px; width:100%;max-width:720px;z-index:1003;transform: translate(-50%, -50%);">';
html += '<div class="ae-modal-header" style="padding:0;border: 0;overflow-y:auto;"><a class="close btn-close" title="Close" data-dismiss="modal" style="opacity: 1; text-shadow: none; cursor: pointer; position: fixed; top: 20px; right: -10px; padding: 10px;color: #777777; font-size: 2rem; font-weight: 700; line-height: 1; outline: 0 !important; background-color: transparent; box-sizing: border-box; font-family: \'Open Sans\',Arial,sans-serif;">×</a>';
html += '<div style="z-index:-1;color: white; text-align: center; position: absolute; width: 100%;margin-top:100px; background-color:white"><span class="icon icon-spin icon-spinner icon-2x"></span></div>';
html += bodyhtml;
html += '</div>'; // header
html += '</div>'; // modalWindow

html += '<style class="rcustomModalStyle">.rcustomModal{margin-top: 0!important; margin-left: 0!important;} .modal-open-no-scroll{overflow: hidden; max-height:100%} @media only screen and (max-width: 670px){.rcustomModal{width: 100% !important; margin: auto !important; margin-top: 30px!important;transform: none!important;overflow:hidden;-webkit-overflow-scrolling:touch;}.ae-modal-header{height: 100vh!important; position: fixed!important; top: 0!important; right: -6px!important; left: 0!important; bottom: 0!important;}.btn-close{right: 10px!important; z-index: 99999; background: whitesmoke; border-radius: 50%; padding: 4px 8px !important; line-height: unset; height: auto; top: 10px!important} #ae-chat-embed-root.hide-ae-chat{display:none!important} .ae-event-custom-modal iframe{max-height: 100vh!important; height: 92vh!important;}}</style>';
html += '<style class="scrollbarStyling">.rcustomModal *::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); } .rcustomModal *::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); } .rcustomModal *::-webkit-scrollbar { width: 6px !important; height: 6px !important; }</style>';
jQuery('body').append(html);
if(callback && typeof callback == 'function'){
callback();
}
jQuery(".rcustomModal").AEeasyModal().trigger('openModal');
}


(function(w){

var plugin_events_class = function(w){
this.targetEleSelector = ".ae-embed-plugin";
var siteBase = "allevents.in"
var org_baseURL = "https://"+siteBase+"/plugin/org-events-plugin.php";
var city_baseURL = "https://"+siteBase+"/plugin/city-events-plugin-new.php";
this.iframes = [];
this.aevnt = [];
function extend_obj() { var extended = {}; var deep = false; var i = 0; var length = arguments.length; if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { deep = arguments[0]; i++; } var merge = function (obj) { for ( var prop in obj ) { if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { extended[prop] = extend( true, extended[prop], obj[prop] ); } else { extended[prop] = obj[prop]; } } } }; for ( ; i < length; i++ ) { var obj = arguments[i]; merge(obj); } return extended; };
function generate_url_query(obj){
var url_query = "";
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
obj[key] = obj[key] + "";
if(obj[key] != ""){
url_query = url_query + key + "=" + obj[key] + "&";
}
}
}
url_query = url_query.substring(0, url_query.length - 1);
return url_query;
}
function get_data_attr(ele){
var attrs = ele.attributes;
var data_attrs = {};
for (var i = 0; i < attrs.length; i++) {
if(attrs[i].name.indexOf("data-") == 0){
data_attrs[attrs[i].name.substring(5,attrs[i].name.length)] = attrs[i].value;
}
}
return data_attrs;
}
this.embedIframe = function embedIframe(ele,props){
var that = this;
var iframe_ele = document.createElement("IFRAME");
for (var att in props) {
if (props.hasOwnProperty(att)) {
iframe_ele.setAttribute(att,props[att]);
}
}
ele.appendChild(iframe_ele);
//ele.appendChild(resizerScript);
ele.classList.add('ae-embed-plugin-processed')
that.iframes = iFrameResize({checkOrigin:false,warningTimeout:0},iframe_ele);
};

this.render_widgets = function(){
var that = this;
var target_ele_list = document.querySelectorAll(that.targetEleSelector);
if(target_ele_list.length > 0){
for (var i = 0; i < target_ele_list.length; i++) {
if(target_ele_list[i].classList.contains('ae-embed-plugin-processed') === true){

continue;
}

var config = get_data_attr(target_ele_list[i]);
config.transparency = config.transparency||"true";
config.extcolor = config.extcolor || "2e363f";
$ext_color = config.extcolor;
config.width = config.width || "0";
config.height = config.height || "0";
config.layout = config.layout || "left";
config.category = config.category || "All";
config.count = config.count || "50";
var url_obj = {
width : config.width,
height : config.height,
header : config.header,
transparency : config.transparency == "false" ? "false" : "true",
border : config.border,
count : config.count
};
var iframe_width = Number(config.width) > 0 ? config.width + "px" : "100%";
var iframe_height = Number(config.height) > 0 ? config.height + "px" : "100%";
var iframe_style = "width : " + iframe_width + ";height : " + iframe_height + ";border:none;";
var iframe_options = {
allowTransparency : config.transparency == "false"? "false" : "true",
scrolling : "no",
border : "0",
style : iframe_style
}
switch(config.type){
case 'org':
url_obj = extend_obj(url_obj,{org_id : config.id, extcolor : config.extcolor, layout : config.layout, aevnt : that.aevnt[1]||""});
iframe_options = extend_obj(iframe_options,{src : org_baseURL + "?" + generate_url_query(url_obj)});
that.embedIframe(target_ele_list[i],iframe_options);
break;
case 'city':
url_obj = extend_obj({city : config.cityname, state : config.state , popular : config.sort , keywords : config.category});
iframe_options = extend_obj(iframe_options,{src : city_baseURL + "?" + generate_url_query(url_obj)});
that.embedIframe(target_ele_list[i],iframe_options);
break;
}
}
}
else{
console.log("No target element found");
}
};
this.init_event_plugin_lib = function(){
var that = this;
that.aevnt_search = window.location.search;

var str= that.aevnt_search;
that.aevnt = str.match(/aevnt=([^&]*)/);
that.aevnt = that.aevnt||[];

loadJqandExecute(function(){
!function(e){"use strict";var o={init:function(o){var n={top:"auto",autoOpen:!1,overlayOpacity:.7,overlayColor:"#000",overlayClose:!1,overlayParent:"body",closeOnEscape:!1,closeButtonClass:".close",onOpen:function(){jQuery("body, html").addClass("modal-open-no-scroll"),jQuery("#ae-chat-embed-root.idle-mode").addClass('hide-ae-chat')},onClose:function(){jQuery("body, html").removeClass("modal-open-no-scroll"),jQuery("#ae-chat-embed-root.idle-mode").removeClass('hide-ae-chat')},zIndex:function(){return 1040},updateZIndexOnOpen:!0};return o=e.extend(n,o),this.each(function(){var n=o,t=jQuery('<div class="lean-overlay"></div>'),a=e(this);t.css({display:"none",position:"fixed","z-index":n.updateZIndexOnOpen?0:n.zIndex(),top:0,left:0,height:"100%",width:"100%",background:n.overlayColor,opacity:n.overlayOpacity,overflow:"auto"}).appendTo(n.overlayParent),a.css({display:"none",position:"fixed","z-index":n.updateZIndexOnOpen?0:n.zIndex()+1,left:"50%",top:parseInt(n.top,10)>-1?n.top+"px":"50%"}),a.bind("openModal",function(){var e=n.updateZIndexOnOpen?n.zIndex():parseInt(t.css("z-index"),10),o=e+1;a.css({display:"block",transform:"translate(-50%, -50%)","z-index":o}),t.css({"z-index":e,display:"block"}),n.onOpen&&"function"==typeof n.onOpen&&n.onOpen(a[0])}),a.bind("closeModal",function(){a.css("display","none"),t.css("display","none"),n.onClose&&"function"==typeof n.onClose&&n.onClose(a[0])}),t.click(function(){n.overlayClose&&a.trigger("closeModal")}),e(document).keydown(function(e){n.closeOnEscape&&27===e.keyCode&&a.trigger("closeModal")}),a.on("click",n.closeButtonClass,function(e){a.trigger("closeModal"),e.preventDefault()}),n.autoOpen&&a.trigger("openModal")})}};e.fn.AEeasyModal=function(n){return o[n]?o[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.AEeasyModal"):o.init.apply(this,arguments)}}(w.jQuery);
});
}
this.processIframeMessage = function(event) {
if (event.origin == "https://" + siteBase || event.origin == "http://" + siteBase) {
try {
var data = JSON.parse(event.data);
if (typeof(data) === "object") {
switch (data.action) {
case 'bookTickets':
try {
var is_device_mobile = false;
try {
if (w.innerHeight <= 400 || w.innerWidth <= 486) {
is_device_mobile = true;
}
} catch (e) {
is_device_mobile = false;
}
var event_id = data.event_id;
var _param = {};
_param.platform = "plugin-lib";
_param.hide_details = "0";
if (is_device_mobile === true) {
_param.event_id = event_id;
_param.back_btn = "1";
_param.hide_detail = "0";
var query_string = generate_url_query(_param);
var ticket_link = "https://" + siteBase + "/manage/tickets/book.php?" + query_string;
w.open(ticket_link);
} else {
loadJqandExecute(function() {
w.jQuery.getScript('https://' + siteBase + '/scripts/public/ae-plugin-lib.js', function(data, textStatus) {
AE.showTicketModal(event_id, _param);
});
});
}
} catch (e) { console.log("Something Bad occured,Please email us at contact@allevents.in with error displayed below.");
console.log(e); }
break;
case 'org_events':
try{
var _template = "";
var event_id = data.event_id;

var _param = {};
_param.event_id = event_id;
_param.platform = "plugin-lib";
_param.hide_details = "0";

var query_string = generate_url_query(_param);
var event_page_link = "https://" + siteBase + "/plugin/organizer/event.php?" + query_string;
$ext_color = ($ext_color == "2e363f") ? "777" : $ext_color;
loadJqandExecute(function() {
customModal('<style>.btn-close {color: #'+$ext_color+'!important;} .loading-overlay {height:600px; max-width: 600px; margin: auto; visibility: visible; opacity:1; position: absolute; position: fixed; top: 30px; bottom: 0; left: 0; right: 0; z-index: 999; background: -webkit-radial-gradient(center ellipse, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, .8) 30%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.3) 100%); background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, .8) 30%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.3) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#a6ffffff\', endColorstr=\'#4d000000\', GradientType=1);background: transparent; } .loading-text{position: relative; top: 61%; text-align: center; display: block; font-size: medium;} .loading-spinner { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-image: url("https://cdn-az.allevents.in/banners/ef8f6071a37788b4626e82581ee2c356-rimg-w100-h100-gmir.gif"); z-index: 9999; background-repeat: no-repeat; background-position: 50%; background-color: transparent; background-size: 100px; text-align: center;}@media(max-width: 486px){.loading-overlay {height:400px;}}</style><div class="ae-event-custom-modal"><div class="loading-overlay"> <i class="loading-spinner"> <span class="loading-text">Loading...</span> </i> </div> <iFrame src="'+event_page_link+'" style="width:100%; max-width: 100%; height: 700px; max-height: 85vh; border: 0; z-index: 9999; position: relative;"></iframe> </div> ',function(){
});
})

}catch(e){console.log(e);}
break;
case 'org_private_events':
try{
var _template = "";
var event_id = data.event_id;

var _param = {};
_param.event_id = event_id;
_param.platform = "plugin-lib";
_param.hide_details = "0";

var query_string = generate_url_query(_param);
var event_page_link = "https://" + siteBase + "/plugin/organizer/event.php?" + query_string;
$ext_color = ($ext_color == "2e363f") ? "777" : $ext_color;
loadJqandExecute(function() {
customModal('<style>.btn-close {color: #'+$ext_color+'!important;} .loading-overlay {height:600px; max-width: 600px; margin: auto; visibility: visible; opacity:1; position: absolute; position: fixed; top: 30px; bottom: 0; left: 0; right: 0; z-index: 999; background: -webkit-radial-gradient(center ellipse, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, .8) 30%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.3) 100%); background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, .8) 30%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.3) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#a6ffffff\', endColorstr=\'#4d000000\', GradientType=1);background: transparent; } .loading-text{position: relative; top: 61%; text-align: center; display: block; font-size: medium;} .loading-spinner { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-image: url("https://cdn-az.allevents.in/banners/ef8f6071a37788b4626e82581ee2c356-rimg-w100-h100-gmir.gif"); z-index: 9999; background-repeat: no-repeat; background-position: 50%; background-color: transparent; background-size: 100px; text-align: center;}@media(max-width: 486px){.loading-overlay {height:400px;}}</style><div class="ae-event-custom-modal"><div class="loading-overlay"> <i class="loading-spinner"> <span class="loading-text">Loading...</span> </i> </div> <iFrame src="'+event_page_link+'" style="width:100%; max-width: 100%; height: 700px; max-height: 85vh; border: 0; z-index: 9999; position: relative;"></iframe> </div> ',function(){
});
})

}catch(e){console.log(e);}
break;
case 'share_event':
try{
loadJqandExecute(function() {
customModal('<div id="sharer-modal" style="background: white; float: left; width: 100%; padding: 30px;box-sizing:border-box;"><style type="text/css"> body.modal-open { overflow: hidden; } #event-share-url{ width: 80%; padding: 5px 10px; color: #555; border: 1px solid #ddd;} @media(max-width: 486px){ #event-share-url{ width: 60%; padding: 5px 10px; color: #555; } } </style> <div style="border-bottom: 1px solid #ddd; padding-bottom: 15px;"> <h3 style="margin-top: 0; margin-bottom: 10px; font-weight: 600; text-transform: capitalize;text-align: center; width: 100%;font-size: 25px; letter-spacing: normal; line-height: 24px; color: #1d2127;font-family:\'Open-Sans\',Arial,sans-serif;">Share with Friends</h3> </div> <div class="modal-body" style="position: relative; flex: 1 1 auto; padding: 16px;color: #1d2127; font-size: 14px; line-height: 22px; box-sizing: border-box;"> <div style="margin-bottom: 10px;line-height: 22px;"> <h4 style="margin-top: 10px;text-align: center;text-transform: none; margin-bottom: 0;font-weight: 600;font-size: 1.4em; letter-spacing: normal; line-height: 27px; margin: 0 0 14px;font-family:\'Open-Sans\',Arial,sans-serif;">'+data.event_name+'</h4> </div> <div style="display: block;float: left;width: 100%;margin-top: 10px;"> <div id="ae-sharethis-inline-share-buttons" class="sharethis-inline-share-buttons" data-url="'+data.link+'"></div> </div> <div class="pull-left input-append" style="margin-top: 25px; box-sizing: border-box; width: 100%;float:left;"> <input type="text" id="event-share-url" value="'+data.share_link+'" readonly style="font-family: inherit; font-size: inherit; line-height: inherit; box-sizing: border-box;"> <a href="#" class="btn btn-info btn-copy" style="padding: 6px 12px; display: inline-block; vertical-align: baseline;background-color: #17a2b8; border-color: #17a2b8 #17a2b8 #117a8b; color: #FFF; font-size: .9rem; cursor: pointer; line-height: 1.5; border-radius: .25rem; transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;" onclick="ae.plugin.events.copyurlToClipboard(\'#event-share-url\',event);return false;">Copy URL</a> </div> </div> </div>', function(){
loadJqandExecute(function() {
w.jQuery.getScript('https://platform-api.sharethis.com/js/sharethis.js#property=5a97f00b0ed30500131a03c6&product=inline-share-buttons', function(textStatus) {
window.__sharethis__.load('inline-share-buttons', {
alignment: 'justified',
id: 'ae-sharethis-inline-share-buttons',
enabled: true,
font_size: 12,
has_spacing: true,
labels: 'none',
min_count: 10,
networks: ['facebook', 'twitter', 'whatsapp', 'messenger', 'linkedin', 'sharethis'],
num_networks: 8,
padding: 10,
radius: 4,
show_total: false,
size: 40,
size_label: 'small',
spacing: 8,
use_native_counts: true,
color: 'social',
language: 'en',
show_mobile_buttons: true,
url: data.share_link, // custom url
title: document.title,
});
});
});
});
$(".events-style-resgrid .meta-right .title h3").dotdotdot({
ellipsis: "… ",
watch: true,
truncate: "letter",
height: 40, // this is the number of lines
lastCharacter: {
remove: [" ", ",", ";", ".", "!", "?"],
noEllipsis: [],
},
// after: "a.read-more",
});
});

}catch(e){console.log(e);}
break;
}
}
} catch (e) {}
}
};
this.copyurlToClipboard = function(element,event) {
loadJqandExecute(function() {
var $temp = w.jQuery("<input>");
w.jQuery("body").append($temp);
$temp.val(w.jQuery(element).val()).select();
w.jQuery(event.currentTarget).popover({title:"",content: "Copied", placement:"top",animation: true});
w.jQuery(event.currentTarget).popover("show");
(function(elm){
setTimeout(function(){
w.jQuery(elm).popover("hide");
}, 2000);
})(event.currentTarget);
document.execCommand("copy");
$temp.remove();
});
}
var loadJqandExecute = function(callback){
if(typeof(w.jQuery) != "undefined"){
callback();
}else{
var script = document.createElement("script");
script.type = "text/javascript";
script.onload = function() {
callback();
};
// Add the script to the DOM
(document.getElementsByTagName( "head" )[ 0 ]).appendChild( script );

// Set the `src` to begin transport
script.src = "https://"+siteBase+"/scripts/jquery.js";
}
};
};

var plugin_org_events_class = function(w){
this.targetEleSelector = ".ae-embed-org-plugin";
var siteBase = "allevents.in"
var org_baseURL = "https://"+siteBase+"/plugin/organizer/org-events.php";
var city_baseURL = "https://"+siteBase+"/plugin/city-events-plugin-new.php";
$ext_color = "777";
this.iframes = [];
this.aevnt = [];
var div_style_css = `@-webkit-keyframes placeHolderShimmer {
0% {
background-position: -468px 0
}
100% {
background-position: 468px 0
}
}

@keyframes placeHolderShimmer {
0% {
background-position: -468px 0
}
100% {
background-position: 468px 0
}
}

.animated-background {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-name: placeHolderShimmer;
animation-name: placeHolderShimmer;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
background: #f6f7f8;
background: #eeeeee;
background: -webkit-gradient(linear, left top, right top, color-stop(8%, #eeeeee), color-stop(18%, #dddddd), color-stop(33%, #eeeeee));
background: -webkit-linear-gradient(left, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
-webkit-background-size: 800px 104px;
background-size: 800px 104px;
height: 96px;
position: relative;
transform: translateZ(0);
}
.shimmer-block{
margin: 0;
}
.shimmer-block li {
display: inline-block;
width: 32.3%
}

.shimmer-block li div {
margin: 5px;
height: 300px;
}

@media(max-width: 986px){
.shimmer-block li{
width: 49%;
}
.shimmer-block li:first-child {
display: none;
}

}
@media(max-width: 767px){
@-webkit-keyframes placeHolderShimmer {
0% {
background-position: -390px 0
}
100% {
background-position: 502px 0
}
}

@keyframes placeHolderShimmer {
0% {
background-position: -390px 0
}
100% {
background-position: 502px 0
}
}
.shimmer-block li:nth-child(2) {
display: none;
}
.shimmer-block{
padding: 0;
}
.shimmer-block li{
width: 100%;
}
}
`;
var div_style = document.createElement("style");
div_style.innerHTML = div_style_css;
document.getElementsByTagName('body')[0].appendChild(div_style);
function extend_obj() { var extended = {}; var deep = false; var i = 0; var length = arguments.length; if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { deep = arguments[0]; i++; } var merge = function (obj) { for ( var prop in obj ) { if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { extended[prop] = extend( true, extended[prop], obj[prop] ); } else { extended[prop] = obj[prop]; } } } }; for ( ; i < length; i++ ) { var obj = arguments[i]; merge(obj); } return extended; };
function generate_url_query(obj){
var url_query = "";
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
obj[key] = obj[key] + "";
if(obj[key] != ""){
url_query = url_query + key + "=" + obj[key] + "&";
}
}
}
url_query = url_query.substring(0, url_query.length - 1);
return url_query;
}
function get_data_attr(ele){
var attrs = ele.attributes;
var data_attrs = {};
for (var i = 0; i < attrs.length; i++) {
if(attrs[i].name.indexOf("data-") == 0){
data_attrs[attrs[i].name.substring(5,attrs[i].name.length)] = attrs[i].value;
}
}
return data_attrs;
}
this.embedIframe = function embedIframe(ele,props){
var that = this;
var iframe_ele = document.createElement("IFRAME");
for (var att in props) {
if (props.hasOwnProperty(att)) {
iframe_ele.setAttribute(att,props[att]);
}
}
ele.appendChild(iframe_ele);
iframe_ele.style['display'] = "none";

iframe_ele.onload = function(){
if (ele.querySelector('.shimmer-block') != null) {ele.removeChild(ele.querySelector('.shimmer-block'));}
ele.classList.add('ae-embed-plugin-processed');
iframe_ele.style['display'] = "block";
}
that.iframes = iFrameResize({checkOrigin:false,warningTimeout:0},iframe_ele);
};

this.render_widgets = function(){
var that = this;
var target_ele_list = document.querySelectorAll(that.targetEleSelector);
var div_ul = document.createElement("ul");
div_ul.classList.add('shimmer-block');
div_ul.style['list-style'] = "none";
div_ul.innerHTML = '<li> <div class="animated-background"></div> </li> <li> <div class="animated-background"></div> </li> <li> <div class="animated-background"></div> </li>';
if(target_ele_list.length > 0){
for (var i = 0; i < target_ele_list.length; i++) {
if(target_ele_list[i].classList.contains('ae-embed-plugin-processed') === true){

continue;
}

target_ele_list[i].appendChild(div_ul);

var config = get_data_attr(target_ele_list[i]);
config.transparency = config.transparency||"true";
config.width = config.width || "0";
config.height = config.height || "0";
config.extcolor = config.extcolor || "2e363f";
$ext_color = config.extcolor;
config.layout = config.layout || "left";
config.category = config.category || "All";
config.count = config.count || "50";
config.title = config.title || "false";
config.click = config.click || "true";
var url_obj = {
width : config.width,
height : config.height,
header : config.header,
transparency : config.transparency == "false" ? "false" : "true",
border : config.border,
title : config.title,
click : config.click,
count : config.count
};
var iframe_width = Number(config.width) > 0 ? config.width + "px" : "100%";
var iframe_height = Number(config.height) > 0 ? config.height + "px" : "100%";
var iframe_style = "width : " + iframe_width + ";height : " + iframe_height + ";border:none;";
var iframe_options = {
allowTransparency : config.transparency == "false"? "false" : "true",
scrolling : "no",
border : "0",
style : iframe_style
}
switch(config.type){
case 'org':
url_obj = extend_obj(url_obj,{org_id : config.id, extcolor : config.extcolor, layout : config.layout, aevnt: that.aevnt[1]||"", ref: encodeURIComponent(window.location.href)});
iframe_options = extend_obj(iframe_options,{src : org_baseURL + "?" + generate_url_query(url_obj)});
that.embedIframe(target_ele_list[i],iframe_options);
break;
case 'city':
url_obj = extend_obj(url_obj,{city : config.cityname, keywords : config.category});
iframe_options = extend_obj(iframe_options,{src : city_baseURL + "?" + generate_url_query(url_obj)});
that.embedIframe(target_ele_list[i],iframe_options);
break;
}
}
}
else{
console.log("No target element found");
}
};
this.init_event_plugin_lib = function(){
var that = this;
that.aevnt_search = window.location.search;

var str= that.aevnt_search;
that.aevnt = str.match(/aevnt=([^&]*)/);
that.aevnt = that.aevnt||[];
loadJqandExecute(function(){
!function(e){"use strict";var o={init:function(o){var n={top:"auto",autoOpen:!1,overlayOpacity:.7,overlayColor:"#000",overlayClose:!1,overlayParent:"body",closeOnEscape:!1,closeButtonClass:".close",onOpen:function(){jQuery("body, html").addClass("modal-open-no-scroll"),jQuery("#ae-chat-embed-root.idle-mode").addClass('hide-ae-chat')},onClose:function(){jQuery("body, html").removeClass("modal-open-no-scroll"),jQuery("#ae-chat-embed-root.idle-mode").removeClass('hide-ae-chat')},zIndex:function(){return 1040},updateZIndexOnOpen:!0};return o=e.extend(n,o),this.each(function(){var n=o,t=jQuery('<div class="lean-overlay"></div>'),a=e(this);t.css({display:"none",position:"fixed","z-index":n.updateZIndexOnOpen?0:n.zIndex(),top:0,left:0,height:"100%",width:"100%",background:n.overlayColor,opacity:n.overlayOpacity,overflow:"auto"}).appendTo(n.overlayParent),a.css({display:"none",position:"fixed","z-index":n.updateZIndexOnOpen?0:n.zIndex()+1,left:"50%",top:parseInt(n.top,10)>-1?n.top+"px":"50%"}),a.bind("openModal",function(){var e=n.updateZIndexOnOpen?n.zIndex():parseInt(t.css("z-index"),10),o=e+1;a.css({display:"block",transform:"translate(-50%, -50%)","z-index":o}),t.css({"z-index":e,display:"block"}),n.onOpen&&"function"==typeof n.onOpen&&n.onOpen(a[0])}),a.bind("closeModal",function(){a.css("display","none"),t.css("display","none"),n.onClose&&"function"==typeof n.onClose&&n.onClose(a[0])}),t.click(function(){n.overlayClose&&a.trigger("closeModal")}),e(document).keydown(function(e){n.closeOnEscape&&27===e.keyCode&&a.trigger("closeModal")}),a.on("click",n.closeButtonClass,function(e){a.trigger("closeModal"),e.preventDefault()}),n.autoOpen&&a.trigger("openModal")})}};e.fn.AEeasyModal=function(n){return o[n]?o[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.AEeasyModal"):o.init.apply(this,arguments)}}(w.jQuery);
});
}
this.processIframeMessage = function(event){
if(event.origin == "https://"+siteBase||event.origin == "http://"+siteBase){
try{
var data = JSON.parse(event.data);
if(typeof(data) === "object"){
switch(data.action){
case 'bookTickets' :
try{
var is_device_mobile = false;
try{
if(w.innerHeight <= 400 || w.innerWidth <= 486){
is_device_mobile = true;
}
}catch(e){
is_device_mobile = false;
}
var event_id = data.event_id;
var _param = {};
_param.platform="plugin-lib";
_param.hide_details = "0";
if(is_device_mobile === true){
_param.event_id = event_id;
_param.back_btn = "1";
_param.hide_detail = "0";
var query_string = generate_url_query(_param);
var ticket_link = "https://"+siteBase+"/manage/tickets/book.php?" + query_string;
w.open(ticket_link);
}else{
loadJqandExecute(function(){
w.jQuery.getScript('https://'+siteBase+'/scripts/public/ae-plugin-lib.js', function(data, textStatus) {
AE.showTicketModal(event_id,_param);
});
});
}
}catch(e){console.log("Something Bad occured,Please email us at contact@allevents.in with error displayed below.");console.log(e);}
break;
}
}
}catch(e){}
}
};
var loadJqandExecute = function(callback){
if(typeof(w.jQuery) != "undefined"){
callback();
}else{
var script = document.createElement("script");
script.type = "text/javascript";
script.onload = function() {
callback();
};
// Add the script to the DOM
(document.getElementsByTagName( "head" )[ 0 ]).appendChild( script );

// Set the `src` to begin transport
script.src = "https://"+siteBase+"/scripts/jquery.js";
}
};
};



w.ae = w.ae || {};
w.ae.plugin = w.ae.plugin || {};
w.ae.plugin.events = new plugin_events_class(w);
w.ae.plugin.org_events = new plugin_org_events_class(w);

w.ae.plugin.events.init_event_plugin_lib();
w.ae.plugin.events.render_widgets();

w.ae.plugin.org_events.init_event_plugin_lib();
w.ae.plugin.org_events.render_widgets();

window.addEventListener("message", w.ae.plugin.events.processIframeMessage);

})(window);

Back to list