Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
/*---------------noUiSlider-------------------*/
const rangeSlider = document.querySelectorAll('.range-slider');
Array.from(rangeSlider, (elem) => {
if (typeof noUiSlider !== typeof undefined) {
if (elem.getAttribute('id') !== '' && elem.getAttribute('id') !== null) {
window[elem.getAttribute('id')] = createSlider(elem)
} else {
createSlider(elem)
}
}
})
function createSlider(elem) {
return noUiSlider.create(elem, {
start: [11, 50],
connect: true,
range: {
'min': 0,
'10%': [5, 5],
'max': 50
}
})
}
/*------------------------
range picker
--------------------------*/
const valuesNode = [
document.getElementById('lower-value'), // 0
document.getElementById('upper-value') // 1
];
window.addEventListener('load', function () {
if (window['product-price-range']) {
window['product-price-range'].on('update', function (values, handle, unencoded, isTap, positions) {
valuesNode[handle].innerHTML = '$' + Number(values[handle]).toFixed(0);
});
}
})