Файл: 55555/plugins/koleso/js/js.js
Строк: 81
<?php
/*$(document).ready(function() {
    
});    
*/
function sleep(ms, cont) {
ms += new Date().getTime();
while (new Date() < ms){}
}
function chart_go()
        {
            $('#rrr').addClass('chart_go');
            
            $("#info_go_priz").html('Выбираем приз!').show();
            $("#chart_go").attr("onClick",'');
            
            var id_sec = $('#info_go_priz').attr("id_sec"); /*id сектора */
            
            $.ajax({
            type: "POST",
            url: "/plugins/koleso/ajax/?mod_inc=res_go_priz",
            dataType: "html",
            data: {id_sec: +id_sec},
            success: function(html) {
                 
                    $("#info_go_priz").html(html);
                    log_view();
                }
            });
            
        }
/* Вывод чата*/
function log_view()
        {
            $.ajax({
            url: "/plugins/koleso/ajax/?mod_inc=log_view",
            cache: false,
            success: function(html) {
                 
                    $("#log_view").html(html);
                }
            });
        }
log_view();
setInterval(log_view, 2000);
         
        
function chart_ok()
        {
            sleep(2000, "$('#rrr').addClass('chart_go');");
            document.getElementById('info').innerHTML ='tra-la-la';
        }
function chart_stop()
        {
            document.getElementById('rrr').className = 'chart';
        }
function chart_bloc()
        {
            $("#chart_go").attr("onClick",'');
        }
        
/* Прокрутка числа */
function numAnimate (start, stop, el) {
    /*$(document).ready(function() {
    
    document.getElementById('id_balls_go').className = 'id_balls_go';
    document.getElementById('id_money_go').className = 'id_money_go';
    document.getElementById('id_billing_go').className = 'id_billing_go';
    });    
    */
    var number = start;
    setInterval(function () {
        number++;
        if (number<=stop) { $(el).text(number); };
    }, 10);
    
    $(document).ready(function() {
    document.getElementById('id_balls').className = 'id_balls';
    document.getElementById('id_money').className = 'id_money';
    document.getElementById('id_billing').className = 'id_billing';
    });    
    
};
/* Обработка запроса на получение бонуса */
function go_priz()
        {
            
            document.getElementById('rrr').className = 'chart';
        }
?>