function timer(){
    var times = 60;
var timer =  setInterval(function(){
    if(times == 0){
        clearInterval(timer)
    if(alert("Time up, you lost!! ")){
        }
    else{
        window.location.reload();
        };}
             times--;
             document.getElementById("time-passed").innerHTML = times
            },1000)
}
//Set the timer for the game
Set the timer for the game
Set the timer for the game
function timer(){
    var times = 60;
var timer =  setInterval(function(){
    if(times == 0){
        clearInterval(timer)
    if(alert("Time up, you lost!! ")){
        }
    else{
        window.location.reload();
        };}
             times--;
             document.getElementById("time-passed").innerHTML = times
            },1000)
}
function timer ( ) { var times = 60 ; var timer = setInterval ( function ( ) { if ( times == 0 ) { clearInterval ( timer ) if ( alert ( "Time up, you lost!! " ) ) { } else { window . location . reload ( ) ; } ; } times -- ; document . getElementById ( "time-passed" ) . innerHTML = times } , 1000 ) }
Set the timer for the game
Set the timer for the game