//$.noConflict(true); let url = document.querySelector("#rexadz").src; let url_parameter = url.indexOf("?"); let get_str = url.substr(url_parameter); let new_get_str=get_str+"&activeval=2"; const newDiv = document.createElement("div"); newDiv.setAttribute("id","JsModal"); newDiv.innerHTML = ""; document.getElementById("rexadz").parentNode.appendChild(newDiv); (function() { setTimeout(function() { var script = document.createElement("SCRIPT"); script.src = "https://code.jquery.com/jquery-3.6.0.min.js"; document.getElementsByTagName("head")[0].appendChild(script); var checkReady = function(callback) { if (window.jQuery) { callback(jQuery); } else { window.setTimeout(function() { checkReady(callback); }, 20); } }; checkReady(function($) { $(function() { var settings = { "cache": false, "async": true, "crossDomain": true, "data":{"url":"ModalJs"+new_get_str}, "url":"https://rexadz.com/Modal/"+ new_get_str, "method": "POST", } $.ajax(settings).done(function (response) { try { var objJSON = JSON.parse(response); if(objJSON.redirectsts==1){ window.top.location.href = objJSON.url; } } catch (e) { $("#JsModal").html(response); $("#exampleModal").css("display","block"); $("#exampleModal").addClass("in"); } }); }); }); }, 000); })();