We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d1ce8 commit 3579f6bCopy full SHA for 3579f6b
Example.html
@@ -15,15 +15,20 @@ <h1>Example TinyTimer.js</h1>
15
16
<div data-timer-duration="7" data-timer-mutation="2" data-timer-repeat="2"></div>
17
18
- <div data-timer-duration="7" data-timer-delay="2000" data-timer-mutation="2" data-timer-repeat="2"></div>
19
-
+ <div data-timer-duration="7" data-timer-mutation="2" data-timer-finish="finish" data-timer-repeat="2"></div>
+
20
<script>
21
function done(index)
22
{
23
console.log("#"+index+" : Done");
24
}
25
function finish(index)
26
27
+ let element=document.querySelector("div.timer-"+index);
28
+ if(element)//Found
29
+ {
30
+ element.textContent="Finish!";
31
+ }
32
console.log("#"+index+" : Finish");
33
34
function update(index)
0 commit comments