var API_PATH = "https://10-x.eu/"; RESSOURCE_TYPE = {}; RESSOURCE_TYPE.LINK = "link"; RESSOURCE_TYPE.SCRIPT = "script"; if (typeof jQuery=="undefined") { addResource("assets/libs/jquery/jquery.min.js", RESSOURCE_TYPE.SCRIPT ); } function addResource(Path, Type){ var Elem = document.createElement(Type); if( Type == RESSOURCE_TYPE.LINK ) { Elem.rel = "stylesheet"; Elem.type = "text/css"; Elem.href = API_PATH + Path; }else if(Type == RESSOURCE_TYPE.SCRIPT) { Elem.type = "text/javascript" Elem.async = false; Elem.src = API_PATH + Path; } document.getElementsByTagName("head")[0].appendChild(Elem); } window.onload = function() { var domain = window.location.hostname; var http = (("https:" == window.location.protocol) ? "https://" : "http://"); if (typeof(config["container_id"]) == "undefined") { console.error("ERROR: bookingform config variable missing"); } else if (jQuery("#"+config["container_id"]).length == 0) { console.error("ERROR: bookingform div container is missing"); } else { jQuery("#"+config["container_id"]).html("
"); var ajax_url = API_PATH + "frontend/getForm/aea467da04e85fdcbc7db0d50c6ea671" var loader = '
'; // Formular laden jQuery.ajax({ url:ajax_url, async:false, data:{ }, dataType:"html", beforeSend:function() { jQuery("#wrapper-10x").prepend(loader) }, success:function(response){ jQuery("#wrapper-10x").html(response); } }); } addResource("frontend/getJS/aea467da04e85fdcbc7db0d50c6ea671/", RESSOURCE_TYPE.SCRIPT ); addResource("frontend/getCSS/aea467da04e85fdcbc7db0d50c6ea671/", RESSOURCE_TYPE.LINK ); } // end of windows.load