aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-11-17 21:12:24 +0100
committerMatěj Cepl <mcepl@redhat.com>2014-11-17 21:12:24 +0100
commit5d1b9b66cb068123f51d5a9122fcb1c961ae9a01 (patch)
treec46abbb6d858bdb6984ff9b02a184dad34648a64
parent4b3327e2fb86f10ee66d8cff7fbac10a6143c0e4 (diff)
downloadhesla-5d1b9b66cb068123f51d5a9122fcb1c961ae9a01.tar.gz
Add hide() method.
-rw-r--r--hesla.appcache2
-rw-r--r--hesla.ts7
2 files changed, 8 insertions, 1 deletions
diff --git a/hesla.appcache b/hesla.appcache
index 0c1395f..32c7d2f 100644
--- a/hesla.appcache
+++ b/hesla.appcache
@@ -1,5 +1,5 @@
CACHE MANIFEST
-# v61 - 2014-11-17
+# v62 - 2014-11-17
hesla.js
icon-128.png
icon-30.png
diff --git a/hesla.ts b/hesla.ts
index 2051fea..30acf43 100644
--- a/hesla.ts
+++ b/hesla.ts
@@ -103,6 +103,13 @@ export class Hesla extends ap.ActivePage {
document.getElementById(this.cur_section.toISODateString()).classList.add("visible");
}
+ /**
+ * Hides the current Losungen
+ */
+ hide() {
+ document.getElementById(this.cur_watchword).classList.remove('visible');
+ }
+
shiftDate(shift: number) {
var cur_date = this.cur_watchword;
cur_date.setDate(cur_date.getDate() + shift);