aboutsummaryrefslogtreecommitdiff
path: root/beamer/viewer/screen/timer.js
diff options
context:
space:
mode:
Diffstat (limited to 'beamer/viewer/screen/timer.js')
-rw-r--r--beamer/viewer/screen/timer.js18
1 files changed, 3 insertions, 15 deletions
diff --git a/beamer/viewer/screen/timer.js b/beamer/viewer/screen/timer.js
index 112a421..9b069ac 100644
--- a/beamer/viewer/screen/timer.js
+++ b/beamer/viewer/screen/timer.js
@@ -1,19 +1,7 @@
1/* 1/*
2 * Beamer Viewer, a web-based PDF presentation viewer 2 * Beamer Viewer, a web-based PDF presentation viewer
3 * Copyright (C) 2021 Pacien TRAN-GIRARD 3 * Copyright 2018-2024 Pacien TRAN-GIRARD
4 * 4 * SPDX-License-Identifier: EUPL-1.2
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */ 5 */
18 6
19"use strict"; 7"use strict";
@@ -78,7 +66,7 @@ class Timer {
78 _setDisplay(seconds) { 66 _setDisplay(seconds) {
79 const dateObj = new Date(null); 67 const dateObj = new Date(null);
80 dateObj.setSeconds(seconds); 68 dateObj.setSeconds(seconds);
81 this.display.textContent = dateObj.toISOString().substr(11, 8); 69 this.display.textContent = dateObj.toISOString().slice(11, 11+8);
82 } 70 }
83 71
84 _toggleDisplay(active) { 72 _toggleDisplay(active) {