PageSourceSearch

https://xn----7sbabcoobyhqcvinbwkchc5ap7r.xn--p1ai/design/forall.js?design=ETALON&lc=1788357198

js xn----7sbabcoobyhqcvinbwkchc5ap7r.xn--p1ai collected 2026-10-05 00:38:37 UTC 4,049 bytes, 36 lines download raw bytes

1/*! Текущее состояние CapsLock */
2var capsLockEnabled=null;function getChar(a){if(a.which==null){if(a.keyCode<32){return null}return String.fromCharCode(a.keyCode)}if(a.which!=0&&a.charCode!=0){if(a.which<32){return null}return String.fromCharCode(a.which)}return null}if(navigator.platform.substr(0,3)!="Mac"){document.onkeydown=function(a){a=a||event;if(a.keyCode==20&&capsLockEnabled!==null){capsLockEnabled=!capsLockEnabled}}}document.onkeypress=function(b){b=b||event;var a=getChar(b);if(!a){return}if(a.toLowerCase()==a.toUpperCase()){return}capsLockEnabled=(a.toLowerCase()==a&&b.shiftKey)||(a.toUpperCase()==a&&!b.shiftKey)};function checkCapsWarning(){document.getElementById("capslock").style.display=capsLockEnabled?"block":"none"}function removeCapsWarning(){document.getElementById("capslock").style.display="none"};
3// Установка cookie файлов на основном домене магазина, в случае если покупатель зашёл на другой домен магазина, например по старой ссылке
4try{$(document).ajaxSuccess(function(i,l,h){try{if(-1<h.data.indexOf("ajax_q=1")){var d=$.parseJSON(l.responseText);if(null!=d&&typeof(d.setcookie)=="object"){for(var g in d.setcookie){var c=document.createElement("script");c.type="text/javascript";
4c.async=typeof(d.status)=="undefined"||d.status=="reload"?true:false;c.src=d.setcookie[g];var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(c,f);}}}}catch(j){}});}catch(e){}
5// Установка cookie файлов на основном домене магазина, в случае если покупатель зашёл на другой домен магазина, например по старой ссылке
6try{$(document).ajaxSuccess(function(i,l,h){try{if(typeof(h.data)!="undefined"&&-1<h.data.indexOf("ajax_q=1")){var d=$.parseJSON(l.responseText);if(null!=d&&typeof(d.setcookie)=="object"){for(var g in d.setcookie){var c=document.createElement("script");c.type="text/javascript";c.async=typeof(d.status)=="undefined"||d.status=="reload"?true:false;c.src=d.setcookie[g];var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(c,f);}}}}catch(j){}});}catch(e){}
7
8// Возвращает правильное окончание для слова
9function genWordEnd(num, e, m, mm) {
10  // Если забыли указать окончания
11  if(typeof (e) == "undefined") { e = ''; }
12  if(typeof (m) == "undefined") { e = 'а'; }
13  if(typeof (mm) == "undefined"){ e = 'oв'; }
14  // Если передали пустую строку, вместо цифры
15  if(0 == num.length) { num = 0; }
16  // Превращаем цифру в правильный INT
17  num = GetSum(num).toString();
18  // Получаем последний символ цифры
19  ch1 = num.substring(num.length-1);
20  // Получаем последний символ цифры
21  ch2 = num.length == 1 ? 0 : num.substring(num.length-2, num.length-1);
22  // Если последняя цифра - 1, вернем единственное число
23  if(ch2!=1 && ch1==1)               {return e;}
24  // Если последняя цифра - от 2 до 4х , вернем множественное чило из массива с индексом 2
25  else if(ch2!=1 && ch1>1 && ch1<=4) {return m;}
26  // Если последняя цифра - от 5 до 0 , вернем множественное чило из массива с индексом 3
27  else if(ch2==1 || ch1>4 || ch1==0) {return mm;}
28}
29
30// Считает сумму  33 599,65 + 2000 - 1910-41,6
31function GetSum(val,precision) {
32  if(typeof (precision) == "undefined" || precision < 0) { precision = 0; }
33  // Возводим в степень точности 10 для округления
34  var p = Math.pow(10,precision);  
35  try {return Math.round(parseFloat(eval(val.toString().replace(/\s/gi, "").replace(/,/gi, ".")))*p)/p;} catch (e) {return 0;}
36}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.