<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru">
<head>
<title>The website is under construction</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1" />
<meta name="generator" content="Flynax Classifieds Software" />
<meta charset="UTF-8" />
<meta name="description" content="" />
<meta name="Keywords" content="" />
<link href="https://beta.dagora.ru/plugins/underConstructions/static/style.css?rev=1" type="text/css" rel="stylesheet" />
<link href="https://beta.dagora.ru/templates/general_fusion/img/favicon.ico?rev=1" type="image/x-icon" rel="shortcut icon" />

</head>
<body>

<div id="main-bg">
    <div id="container">
        <div id="logo">
                        
                                                    
            <img alt="Доска объявлений"
                src="https://beta.dagora.ru/templates/general_fusion/img/logo.svg?rev=1"
                            />
        </div>
        <div id="box">
            <h1>Сайт находится на реконструкции </h1>
            <h2>До запуска сайта осталось:</h2>

            <section id="date">
                <div id="chart">
                    <div id="numbers">
                        <div id="time_day"></div>
                        <div id="time_hour"></div>
                        <div id="time_minute"></div>
                        <div id="time_sec"></div>
                    </div>
                    <div id="labels">
                        <div>Дней</div>
                        <div>Часов</div>
                        <div>Минут</div>
                        <div>Секунд</div>
                    </div>
                </div>
            </section>

                    </div>
    </div>
</div>

<script src="https://beta.dagora.ru/libs/jquery/jquery.js?rev=1"></script>
<script>
var ajax_url = 'https://beta.dagora.ru/request.ajax.php';
var legacy_version = true;
var current_date = new Array();
var redirect_url = 'https://beta.dagora.ru/';
var langCode = 'ru'
current_date['day'] = 23;
current_date['month'] = 07;
current_date['year'] = 2026;
current_date['hours'] = parseInt('11');
current_date['minutes'] = parseInt('00');
current_date['seconds'] = parseInt('57');

var lang = [];
lang['loading'] = "Загрузка…";
lang['no_response_from_server'] = '';
lang['notice_bad_email'] = 'Пожалуйста, убедитесь, что Вы ввели верный эл. адрес.';
lang['massmailer_newsletter_guest'] = 'Guest';

var curTime = 0;



$(function(){
    // Set current date
    var cDate = new Date();
    cDate.setDate(current_date['day']);
    cDate.setMonth(current_date['month']-1);
    cDate.setFullYear(current_date['year']);
    cDate.setHours(current_date['hours']);
    cDate.setMinutes(current_date['minutes']);
    cDate.setSeconds(current_date['seconds']);

    var curSeconds = cDate.getTime();

    
    // Set target date
    var tDate = new Date();
    tDate.setDate(23);
    tDate.setMonth(08 - 1);
    tDate.setFullYear(2026);
    tDate.setHours(parseInt('00'));
    tDate.setMinutes(parseInt('00'));
    tDate.setSeconds(parseInt('00'));
    

    var targetSeconds = tDate.getTime();
    curTime = (targetSeconds - curSeconds)/1000;

    printDate();

    var $button = $('input[type=button]');
    var $email = $('#email');
    var $notice = $('#notice');

    $('form').submit(function(){
        if (!$email.val()) {
            $notice
                .html(lang['notice_bad_email'])
                .attr('class', 'error');

            return false;
        }

        $button.val(lang['loading']);
        // Xajax call
        if (legacy_version) {
            xajax_subscribe('subscribe', lang['massmailer_newsletter_guest'], $('#email').val());
        }
        // Ajax call
        else {
            var name = $email.val().split('@')[0];
            var data = {
                mode: 'newsletterSubscribe',
                lang: langCode,
                name: (name && name.length > 2) ? name : lang['massmailer_newsletter_guest'],
                email: $email.val()
            };
            $.getJSON(ajax_url, data, function(response) {
                if (response) {
                    if (response.status == 'OK' || response.status == 'WARNING') {
                        $email.val('');

                        if (response.status == 'OK') {
                            printMessage('notice', response.data.content);
                        } else {
                            printMessage('warning', response.data.content);
                        }
                    } else {
                        printMessage('error', response.data.message);
                    }
                } else {
                    printMessage('error', lang['no_response_from_server']);
                }

                $button.val($button.data('default-val')).removeAttr('disabled');
            }).fail(function(){
                printMessage('warning', lang['no_response_from_server']);
                $button.val($button.data('default-val')).removeAttr('disabled');
            });
        }
        return false;
    });

    $button
        .width($button.width())
        .click(function(){
            $('form').submit();
        });

    $email.focus(function(){
        $notice
            .text('')
            .attr('class', 'notice');
    });
});

var printDate = function(){
    var days = Math.floor(curTime/3600/24);
    var hours = Math.floor((curTime-(days*3600*24))/3600);

    var minutes = Math.floor((curTime-(days*3600*24)-(hours*3600))/60);
    var seconds = Math.floor((curTime-(days*3600*24)-(hours*3600))-(minutes*60));

    if (days < 0) {
        location.href = redirect_url;
        return;
    }

    days = days < 10 ? '0'+days: days;
    hours = hours < 10 ? '0'+hours: hours;
    minutes = minutes < 10 ? '0'+minutes: minutes;
    seconds = seconds < 10 ? '0'+seconds: seconds;

    var outTime = days+':' +hours+':'+minutes+':'+seconds;
    $('#time_obj').html(outTime);
    $('#time_day').html(days);
    $('#time_hour').html(hours);
    $('#time_minute').html(minutes);
    $('#time_sec').html(seconds);

    curTime--;
    setTimeout('printDate()', 1000);
}

/**
* Notices/errors handler
*
* @param string type - message type: error, notice, warning
* @param string/array message - message text
*
**/
var printMessage = function(type, message){
    if (!message || !type)
        return;

    $('#notice')
        .html(message)
        .attr('class', type);
};


</script>

</body>
</html>