Skip to content

(function () {
var head = document.getElementsByTagName(‘head’)[0];
var script = document.createElement(‘script’);
script.src = “https://code.jquery.com/jquery-3.4.1.min.js”;
script.type = ‘text/javascript';
script.onload = script.onreadystatechange = function () {
if (script.readyState) {
if (script.readyState === ‘complete’ || script.readyState === ‘loaded’) {
script.onreadystatechange = null;
onload();
}
}
else {
onload();
}
};
head.appendChild(script);
function async_load(zingJQ) {
window.zingJQ = zingJQ;
let parentElement = zingJQ(‘#z2-schdeule-widget’).parent();
metaInfo = document.createElement(‘span’);
var zaid = document.createAttribute(“zaid”);
zaid.value = ‘SB487372O5166HU242Q6655Q721G646Z794Z';
var id = document.createAttribute(“id”);
id.value = ‘WTAPP_001_672762′;
var widgetType = document.createAttribute(“widget-type”);
widgetType.value = ‘banner';
metaInfo.setAttributeNode(id);
metaInfo.setAttributeNode(zaid);
metaInfo.setAttributeNode(widgetType);
zingJQ(metaInfo)
.appendTo(parentElement); //main div
var widgetScript = document.createElement(‘script’);
widgetScript.src = ‘https://widget-extension.s3-us-west-2.amazonaws.com/widget.js';
widgetScript.type = ‘text/javascript';
head.appendChild(widgetScript);
}
var onload = () => {
var zingJQ = $.noConflict();
async_load(zingJQ);
}

})();