M
M
max120432017-12-02 19:21:24
css
max12043, 2017-12-02 19:21:24

Error (Uncaught SyntaxError: Unexpected token ) JS can't figure out how to fix it?

function get_timer(){
//day
var day = parseInt (timer/(24*60*60*1000));
if(day < 10){
day ='0' + day;

}
day = day.toString();

//hour
var hour = parseInt (timer/(60*60*1000))%24;
if(hour < 10){

hour ='0' + hour;
}
hour = hour.toString();

//min
var min = parseInt (timer/(60*1000))%60;
if(min < 10){

min ='0' + min;
}
min = min.toString();

//seconds
var sec = parseInt (timer/(1000))%60;
if(sec < 10){

sec ='0' + sec;
}
sec = sec.toString();

if(min[1] == 9 && sec[0] == 5 && sec[1] == 9){
animation($("#min0"),min[0]);
}
else{
$("#min0").html(min[0]);
}
if(sec[1] == 9){
animation($("#sec0"),sec[0]);
}
else{
$("#sec0").html(sec[0]);
}
animation($("#sec1"),sec[1]);
setTimeout(get_timer,1000);


function animation(vibor,param){
vibor
.html(param)
.css({'marginTop':'-20px','opacity':'0'})
.animate({'marginTop':'0px','opacity ':'one'});
}
get_timer();
}); //error

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Erl, 2019-09-18
@Relow

rangesliderjs
refreshless

A
Anton, 2019-09-18
@Eridani

inputtype="range"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question