var widget_redirect_url = 'https://mashkantaguru.co.il/thank-u-gad/'; function init_load_widget(){ (function() { var basepath = 'https://leader.afteru.co.il/mortgage3/'; // Load the script var script = document.createElement("SCRIPT"); script.src = basepath + 'js/jquery-3.3.1.min.js'; script.type = 'text/javascript'; script.onload = function() { var basepath = 'https://leader.afteru.co.il/mortgage3/'; jQuery.get( 'https://leader.afteru.co.il/mortgage3/widget.php?siteUrl=widget.mashkantaguru.co.il' , function( data ){ jQuery('.loans-widget').html( data ); } ); }; document.getElementsByTagName("head")[0].appendChild(script); })(); } init_load_widget();