(function() { function async_load(){ //host for tracking purposes var host = '/widget_'+ encodeURIComponent(document.location.host); var job_type = ''; //create the js elem var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.alongside.com/widgets/jobs_widget/horizontal/11/en'+job_type; document.getElementsByTagName('head')[0].appendChild(s); //create the css elem var style = document.createElement('link'); style.rel = 'stylesheet'; style.type = 'text/css'; style.href = 'https://widget.alongside.com/widgets/css/horizontal/11/en'; document.getElementsByTagName('head')[0].appendChild(style); var s1 = document.createElement('script'); s1.type = 'text/javascript'; s1.text = 'var asc_title = 1, asc_company = 1, asc_location = 1, asc_category = 1;'; document.getElementsByTagName('head')[0].appendChild(s1); } var qimpleWidget = document.getElementById('qimpleWidget'); //we create the new loading div var loadingNode = document.createElement('div'); //with the id qimple_jobs_wrapper loadingNode.id = "qimple_jobs_loading"; //we paste the genrated html code loadingNode.innerHTML = ''; qimpleWidget.parentNode.insertBefore( loadingNode, qimpleWidget ); if (window.attachEvent){ window.attachEvent('onload', async_load); }else if (window.addEventListener){ window.addEventListener('load', async_load, false); }else{ window['onload'] = async_load; } })();