Meditsiinilised kompressioonsukad
(5 toodet)
function initialize_function(JQ_value){
var is_JQ = JQ_value;
if(is_JQ){
var jQ = typeof window.WSAIO_GET_JQUERY === "function" ? window.WSAIO_GET_JQUERY() : jQuery;
if(typeof window.WSAIO_MODULE !== "undefined") window.WSAIO_MODULE(jQ);
if(typeof window.WSAIO_MODULEJS !== "undefined") window.WSAIO_MODULEJS(jQ);
if(typeof WSAIO.app_enable_preview_define != 'undefined')WSAIO.app_enable_preview_define();
if(typeof WSAIO.cart_qty_handler_define != 'undefined')WSAIO.cart_qty_handler_define();
if(typeof window.ws_load_app !== "undefined") window.ws_load_app(jQ);
}else{
if(typeof window.WSAIO_MODULE !== "undefined") window.WSAIO_MODULE();
if(typeof window.WSAIO_MODULEJS !== "undefined") window.WSAIO_MODULEJS();
if(typeof WSAIO.app_enable_preview_define != 'undefined')WSAIO.app_enable_preview_define();
if(typeof WSAIO.cart_qty_handler_define != 'undefined')WSAIO.cart_qty_handler_define();
if(typeof window.ws_load_app !== "undefined") window.ws_load_app();
}
}
function append_asset_files(){if(theme_file != '' && (WSAIO.use_file_customCode || WSAIO.use_file_html || WSAIO.use_file_selector)){
var themeScript = document.createElement('script');
themeScript.src = theme_file;
themeScript.defer = true;
themeScript.type = "text/javascript";
document.body.appendChild(themeScript);
}
if(theme_file != '' && WSAIO.use_file_customCode && typeof WSAIO.discount_applicable != 'undefined' && WSAIO.discount_applicable){
let intervalID;
var maxIntervalTime = 10000;
var currentInterval = 0;
function waitForFunction() {
currentInterval = currentInterval + 50;
if(currentInterval >= maxIntervalTime) clearInterval(intervalID);
if (typeof wsaio_execute_custom_code === 'function' && typeof window.WSAIO_GET_JQUERY !== "undefined") {
clearInterval(intervalID);
var jQ = typeof window.WSAIO_GET_JQUERY === "function" ? window.WSAIO_GET_JQUERY() : jQuery;
if(typeof WSAIO.render_file_function !== "undefined" && WSAIO.render_file_function){
if(jQ){
initialize_function(true);
}else{
initialize_function(false);
}
}
setTimeout(() => {
if(jQ){
wsaio_execute_custom_code(jQ);
}else{
wsaio_execute_custom_code();
}
}, 50);
}
}
intervalID = setInterval(waitForFunction, 50);
}
var temp = document.createElement('div');
temp.innerHTML = installationstandalonecode;
Array.from(temp.childNodes).forEach(function(node) {
if (node.nodeType === Node.ELEMENT_NODE && node.tagName === 'SCRIPT') {
var script = document.createElement('script');
Array.from(node.attributes).forEach(function(attr) {
script.setAttribute(attr.name, attr.value);
});
script.textContent = node.textContent;
document.body.appendChild(script);
} else {
document.body.appendChild(node);
}
});
}
document.currentScript.remove();