Skip to content

Commit 99c8f67

Browse files
authored
Update timer.html
1 parent b0f1d0f commit 99c8f67

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

timer.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
background-repeat: no-repeat;
2626
background: #e8f0f9;
2727
}
28+
button:focus-visible {
29+
outline: none;
30+
}
2831
@font-face {
2932
font-family: ellograph CF;
3033
src: url('fonts/ellograph-cf-bold.ttf') format('truetype');
@@ -358,6 +361,22 @@
358361
}
359362
)
360363
}
364+
if(e.keyCode == 38){
365+
timerspacebartriggerplay = setInterval (
366+
function() {
367+
document.querySelector('#addmin').click();
368+
clearInterval(timerspacebartriggerplay);
369+
}
370+
)
371+
}
372+
if(e.keyCode == 40){
373+
timerspacebartriggerplay = setInterval (
374+
function() {
375+
document.querySelector('#minusmin').click();
376+
clearInterval(timerspacebartriggerplay);
377+
}
378+
)
379+
}
361380
}
362381
function playtimer() {
363382
timerPlayPauseInterval = setInterval (
@@ -506,6 +525,22 @@
506525
}
507526
)
508527
}
528+
if(e.keyCode == 38){
529+
timerspacebartriggerplay = setInterval (
530+
function() {
531+
document.querySelector('#addmin').click();
532+
clearInterval(timerspacebartriggerplay);
533+
}
534+
)
535+
}
536+
if(e.keyCode == 40){
537+
timerspacebartriggerplay = setInterval (
538+
function() {
539+
document.querySelector('#minusmin').click();
540+
clearInterval(timerspacebartriggerplay);
541+
}
542+
)
543+
}
509544
}
510545
}
511546
function limiter(input) {

0 commit comments

Comments
 (0)