const info = {
10: {
5: {
title: 'BORRI INGENIO COMPACT <br> 10 kVA (BSS90)',
description: 'Мощность 10 000 Вт/Ва',
...
},
10: {
title: 'BORRI INGENIO COMPACT <br> 10 kVA (BSS90)',
description: 'Мощность 10 000 Вт/Ва',
...
},
},
};
document.onmousemove = function(e) {
const slider1value = $("#slider1").roundSlider("option", "value");
const slider2value = $("#slider2").roundSlider("option", "value");
$('.calc_nazvanie').html(info[slider1value][slider2value].title);
$('.calc_descr').html(info[slider1value][slider2value].description);
...
}
route -p add 192.168.1.0 mask 255.255.255.0 192.168.0.1
route -p add 192.168.0.0 mask 255.255.255.0 192.168.1.1
reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v IPEnableRouter /t REG_DWORD /d 1 /f
function CSVToArray(strData, strDelimiter = ','){
const objPattern = new RegExp(
"(\\" + strDelimiter + "|\\r?\\n|\\r|^)" +
"(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|" +
"([^\"\\" + strDelimiter + "\\r\\n]*))",
'gi'
);
const arrData = [[]];
let arrMatches = null;
while (arrMatches = objPattern.exec(strData)){
const strMatchedDelimiter = arrMatches[ 1 ];
if (
strMatchedDelimiter.length &&
strMatchedDelimiter !== strDelimiter
) {
arrData.push([]);
}
const strMatchedValue = arrMatches[2]
? arrMatches[2].replace(new RegExp("\"\"", 'g' ), "\"")
: arrMatches[3];
arrData[arrData.length - 1].push(strMatchedValue);
}
return( arrData );
}
console.log(CSVToArray('"a,b",a b,')); // Array(3) [ "a,b", "a b", "" ]
full => notice,warning,error,debug,verbose(5),dtmf
module reload logger