Javascript-форум (https://javascript.ru/forum/)
-   Javascript под браузер (https://javascript.ru/forum/css-html/)
-   -   Нужна помощь! (https://javascript.ru/forum/css-html/72507-nuzhna-pomoshh.html)

Maxym_Ko 04.02.2018 01:01

Уже пофиксил, использовал
var str = location.href;
    if (str.includes('index.html') && ((h == 20 && m >18) || h > 21) && h <= 23) {
        location = 'index2.html';
    }


Часовой пояс GMT +3, время: 02:32.