Skip to content

Give timer for change turn #4

@Vaishnavidespande

Description

@Vaishnavidespande

Hi Respected,
I have create a function for timer with setInterval in index.html as follow

<script> function set_timer() { activity_timer=60; game_countdown = setInterval(function(){ activity_timer--; console.log(activity_timer); $("#activity_timer_lower").text(activity_timer); $("#activity_timer_upper").text(activity_timer); if(activity_timer==0){ clearInterval(game_countdown); return activity_timer; } }, 1000); } </script>

and called it onClick of login button and 2 divs added in index.html up and below the dashbord. In this div I have show the timer. Timer is created. But I am not understand how that function implement for change turn and change timer as per turn.

Please give me suggestion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions