Вход Регистрация
Файл: vk/js/main.js
Строк: 40
<?php
$(document).ready(function(){
    $(
"#needUsers").keyup(function(){
        var 
total = $(this).val() * price_join;
        $(
"#total").html(total+" балл.");
    });
    $(
"#needLikes").keyup(function(){
        var 
total = $(this).val() * price_share;
        $(
"#total").html(total+" балл.");
    });
    $(
"#needVotes").keyup(function(){
        var 
total = $(this).val() * price_votes;
        $(
".total-sum").html(total+" балл.");
    });
    $(
"#buybals").keyup(function(){
        var 
vl = $(this).val();
        var 
vl.search(/^d+$/i);
        if(
== -1){
            $(
this).val(vl.substring(0vl.length 1));
        }else{
            var 
total = $(this).val() * price_bals;
            $(
"#buybalstotal").html(total.toFixed(2)+" руб.");
        }
    });
    
startAnim();
});
function 
startAnim(){
    $(
".animcolor").animate({color:"#2d637a"}, 1000,function(data){
        $(
".animcolor").animate({color:"#DE8D1B"}, 1000,function(data){
            
startAnim();
        });
    });
    $(
".animcolor2").animate({color:"#DE8D1B"}, 1000,function(data){
        $(
".animcolor2").animate({color:"#1b751b"}, 1000,function(data){
            
startAnim();
        });
    });
}
?>
Онлайн: 3
Реклама