if (window.qoopler === undefined){ window.qoopler = 1; console.log('Решение для lada-sklad-64.ru');; function findGetParameter(parameterName) { let result = null, tmp = []; let items = location.search.substr(1).split("&"); for (let index = 0; index < items.length; index++) { tmp = items[index].split("="); if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]); } return result; } function getUrlVars(url) { let hash; let myJson = {}; if (url != undefined && url != null) { let hashes = url.slice(url.indexOf("?") + 1).split("&"); for (let i = 0; i < hashes.length; i++) { hash = hashes[i].split("="); myJson[hash[0]] = hash[1]; } } return myJson; } var ajax = {}; ajax.x = function () { if (typeof XMLHttpRequest !== "undefined") { return new XMLHttpRequest(); } var versions = [ "MSXML2.XmlHttp.6.0", "MSXML2.XmlHttp.5.0", "MSXML2.XmlHttp.4.0", "MSXML2.XmlHttp.3.0", "MSXML2.XmlHttp.2.0", "Microsoft.XmlHttp", ]; let xhr; for (let i = 0; i < versions.length; i++) { try { xhr = new ActiveXObject(versions[i]); break; } catch (e) {} } return xhr; }; ajax.send = function (url, callback, method, data, async) { if (async === undefined) { async = true; } let x = ajax.x(); x.open(method, url, async); x.onreadystatechange = function () { if (x.readyState == 4) { callback(x.responseText); } }; if (method == "POST") { x.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); } x.send(data); }; ajax.post = function (url, data, callback, async) { let query = []; for (let key in data) { query.push(encodeURIComponent(key) + "=" + encodeURIComponent(data[key])); } ajax.send(url, callback, "POST", query.join("&"), async); }; // return cookie by name, if exist, if not exist, return undefined function getCookie(name) { var matches = document.cookie.match( new RegExp( "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + "=([^;]*)" ) ); return matches ? decodeURIComponent(matches[1]) : undefined; } ajax.get = function (url, data, callback, async) { let query = []; for (let key in data) { query.push(encodeURIComponent(key) + "=" + encodeURIComponent(data[key])); } ajax.send( url + (query.length ? "?" + query.join("&") : ""), callback, "GET", null, async ); }; //create cookie for visitors function makeid() { let text = ""; let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (let i = 0; i < 60; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; } //get cookie function getCookies() { let pairs = document.cookie.split(";"); let cookies = {}; for (let i = 0; i < pairs.length; i++) { let pair = pairs[i].split("="); cookies[pair[0]] = unescape(pair[1]); } return cookies; } function getScript(source, callback) { let script = document.createElement("script"); let prior = document.getElementsByTagName("script")[0]; script.async = 1; prior.parentNode.insertBefore(script, prior); script.onload = script.onreadystatechange = function (_, isAbort) { if ( isAbort || !script.readyState || /loaded|complete/.test(script.readyState) ) { script.onload = script.onreadystatechange = null; script = undefined; if (!isAbort) { if (callback) callback(); } } }; script.src = source; } //disable cookie function delete_cookie(name, path, domain) { if (get_cookie(name)) { document.cookie = name + "=" + (path ? ";path=" + path : "") + (domain ? ";domain=" + domain : "") + ";expires=Thu, 01 Jan 1970 00:00:01 GMT"; } } function is_mobile() { if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ) { return true; } else { return false; } } /* * /functions */ /** * Get current browser viewpane heigtht */ function get_window_height() { return ( window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || 0 ); } /** * Get current absolute window scroll position */ function get_window_Yscroll() { return ( window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop || 0 ); } /** * Get current absolute document height */ function get_doc_height() { return Math.max( document.body.scrollHeight || 0, document.documentElement.scrollHeight || 0, document.body.offsetHeight || 0, document.documentElement.offsetHeight || 0, document.body.clientHeight || 0, document.documentElement.clientHeight || 0 ); } /** * Get current vertical scroll percentage */ function get_scroll_percentage() { return ( ((get_window_Yscroll() + get_window_height()) / get_doc_height()) * 100 ); } function hasClass(elem, className) { return elem.className.split(" ").indexOf(className) > -1; } function createStyle(href) { let resource = document.createElement("link"); resource.setAttribute("rel", "stylesheet"); resource.setAttribute("href", href); resource.setAttribute("type", "text/css"); let head = document.getElementsByTagName("head")[0]; head.appendChild(resource); } function botCheck() { let botPattern = "(googlebot/|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|Yandex Mobile Bot|AdsBot Google|YandexMetrika|Phantom.js bot|YandexBot|YandexAccessibilityBot|YandexMobileBot|YandexDirectDyn|YandexScreenshotBot|YandexImages|YandexVideo|YandexVideoParser|YandexMedia|YandexBlogs|YandexFavicons|YandexWebmaster|YandexPagechecker|YandexImageResizer|YandexAdNet|YandexDirect|YaDirectFetcher|YandexCalendar|YandexSitelinks|YandexMetrika|YandexNews|YandexCatalog|YandexMarket|YandexVertis|YandexForDomain|YandexBot|YandexSpravBot|YandexSearchShop|YandexMedianaBot|YandexOntoDB|YandexOntoDBAPI|YandexVerticals|GoogleBot|Googlebot-News|Googlebot-Image|Googlebot-Video|Googlebot-Mobile|AdsBot-Google|AdsBot-Google-Mobile-Apps|Google Web Preview|Adbeat Bot|AdbeatBot|adbeat_bot|adbeat-bot|Screenshot Bot|ScreenshotBot|screenshot_bot|screenshot-bot|NaverBot|Naver Bot|naver-bot|naver_bot|Google Bot|google-bot|google_bot|googlebot|AddThis)"; let re = new RegExp(botPattern, "i"); let userAgent = navigator.userAgent; if (re.test(userAgent)) { return true; } else { return false; } } function yandexCheck() { let botPattern = "(yandex/|Yandex Mobile Browser|Yandex Browser|Yandex Mobile|YaBrowser)"; let re = new RegExp(botPattern, "i"); let userAgent = navigator.userAgent; if (re.test(userAgent)) { return true; } else { return false; } } function get_domian_with_protocol() { return ( location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "") ); } function isHidden() { if (!document.hidden) { return true; } else { return false; } } function myClickHandler(e) { // Here you'll do whatever you want to happen when they click // now this part stops the click from propagating if (!e) var e = window.event; e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation(); } function dateNowSeconds() { let timeStampInMs = new Date() / 1000; return Math.round(timeStampInMs); } function getHours() { let d = new Date(); return d.getHours(); } var Ajax1 = { request: function (ops) { if (typeof ops === "string") ops = { url: ops }; ops.url = ops.url || ""; ops.method = ops.method || "get"; ops.data = ops.data || {}; let api = { host: {}, process: function (ops) { let postBody = "", self = this; this.xhr = null; this.xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); if (this.xhr) { this.onreadystatechange = function () { if (self.xhr.readyState === 4 && self.xhr.status === 200) { var result = self.xhr.responseText; if (ops.json === true && typeof JSON != "undefined") { result = JSON.parse(result); } self.doneCallback && self.doneCallback.apply(self.host, [result, self.xhr]); } else if (self.xhr.readyState === 4) { self.failCallback && self.failCallback.apply(self.host, [self.xhr]); } self.alwaysCallback && self.alwaysCallback.apply(self.host, [self.xhr]); }; } if (ops.method === "get") { this.xhr.open("GET", ops.url + getParams(ops.data, ops.url), true); } else { this.xhr.open(ops.method, ops.url, true); this.setHeaders({ "X-Requested-With": "XMLHttpRequest", "Content-type": "application/x-www-form-urlencoded", }); } if (ops.headers && typeof ops.headers === "object") { this.setHeaders(ops.headers); } setTimeout(function () { ops.method === "get" ? self.xhr.send() : self.xhr.send(getParams(ops.data)); }); return this; }, done: function (callback) { this.doneCallback = callback; return this; }, fail: function (callback) { this.failCallback = callback; return this; }, always: function (callback) { this.alwaysCallback = callback; return this; }, setHeaders: function (headers) { for (var name in headers) { this.xhr && this.xhr.setRequestHeader(name, headers[name]); } }, }; getParams = function (data, url) { let arr = [], str; for (var name in data) { arr.push(name + encodeURIComponent(data[name])); } str = arr.join("&"); if (str !== "") { return url ? (url.index("?") < 0 ? "?" + str : "&" + str) : str; } return ""; }; return api.process(ops); }, }; var OAuth_utm = ""; var OAuth_workdays = ""; var getHoursD = (new Date()).getHours(); var getDay = (new Date()).getDay(); getDay = (getDay == 0) ? 7 : getDay; var start_work = -1; var end_work = -1; if (!botCheck()){ var SERVER_NAME = "https://victorycorp.ru/"; var _delay = 1; var OAuth = getCookie('OAuth'); var cookie_date_obj = new Date(1732704423000 + 30 * 86400 * 1000); var cookie_date_toUTCString = cookie_date_obj.toUTCString(); //console.log(cookie_date_toUTCString); var domain_id = "240801"; var wr_csrf = "6e6a5cbf75eb6e6739f7092e00dff3ba"; var user_id = "120405"; var role_id = "5"; var domain_delay = "10"; var catchform = "0"; var postpay = ""; var geo_filter = "0"; var hqdata = "0"; var allow_limit_phone = 0; var limit_phone = 0; var max_limit_phone = 0; var is_load_forms = 0; var view_id = null; var OAuth_url_string = window.location.href.toLowerCase(); var OAuth_is_utm = []; var OAuth_utm_terms_string = OAuth_utm; if (OAuth_utm_terms_string != undefined && OAuth_utm_terms_string != null && OAuth_utm_terms_string != ""){ var OAuth_utm_terms_array = OAuth_utm_terms_string.split(','); for (let i = 0; i < OAuth_utm_terms_array.length; i++) { OAuth_utm_terms_array[i] = OAuth_utm_terms_array[i].trim() } //console.log(OAuth_utm_terms_array); if (OAuth_url_string != undefined && OAuth_url_string != null && OAuth_url_string != ""){ //console.log('asd=' + OAuth_url_string); var OAuth_url_obj = new URL(OAuth_url_string); var OAuth_url_params = OAuth_url_obj.searchParams.entries(); var OAuth_url_utm_params = []; for(var pair of OAuth_url_params) { if (pair[0].indexOf('utm') !== -1){ OAuth_url_utm_params.push(pair[1]); } } OAuth_is_utm = OAuth_url_utm_params.filter(element => OAuth_utm_terms_array.includes(element)); OAuth_is_utm = OAuth_is_utm.filter(Boolean); //console.log(OAuth_is_utm); } } if ( (OAuth == undefined || OAuth == null || OAuth == "" || OAuth == "off") ) { //if (OAuth_workdays == undefined || OAuth_workdays == null || OAuth_workdays == "" || OAuth_workdays.match(getDay) ) { //if ( start_work == -1 || end_work == -1 || (start_work != -1 && end_work != -1 && start_work < end_work && getHoursD > start_work && getHoursD < end_work) ){ if ( allow_limit_phone == 0 || max_limit_phone == 0 || limit_phone > 0 ) { if (OAuth_utm == undefined || OAuth_utm == null || OAuth_utm == "" || ( OAuth_utm == "*" && ("https://lada-sklad-64.ru/" + "").match(/utm\_/i) ) || (OAuth_utm != undefined && OAuth_utm != null && OAuth_utm != "" && OAuth_utm != "*" && OAuth_utm.length >= 2 && OAuth_is_utm.length ) ) { document.cookie = "OAuth=off; path=/; expires="+cookie_date_toUTCString; setTimeout(function () { console.log("Pixel is working..."); ajax.post(SERVER_NAME + 'actionv4.php', { referer: "", domain_id: domain_id, user_id: user_id, csrf: wr_csrf, url: "https://lada-sklad-64.ru/", url_clear: "lada-sklad-64.ru", url_page: 'https://lada-sklad-64.ru/', geo_filter: "0", allow_phone: "1" }, function(data){ //console.log(data); var array = JSON.parse(data); region_id = 0; if (array.sxgeo != "off" && array.sxgeo != undefined && array.sxgeo.region != undefined && array.sxgeo.region.id != undefined){ region_id = array.sxgeo.region.id; } OAuth = array.visit_id; if (OAuth != undefined && OAuth != "off"){ //console.log(array); view_id = array.view_id; OAuth_view_id = array.view_id; device_id = array.device_id; var date = new Date(1732704423000 + 30 * 86400 * 1000); document.cookie = "OAuth="+OAuth+"; path=/; expires="+cookie_date_toUTCString; document.cookie = "wr_visit_id="+OAuth+"; path=/; expires="+cookie_date_toUTCString; /* (window.Image ? (new Image()) : document.createElement('img')).src = 'https://bazavk.wantresult.ru/oauthprint.php?visit_id='+OAuth+'&digitalprint='+array.wrprint+'&user_agent='+array.user_agent+'&ip='+array.ip; */ function frml(frameid, link) { var ifram = document.createElement('div'); ifram.style.transform = "none"; ifram.innerHTML = '