From 5d1b9b66cb068123f51d5a9122fcb1c961ae9a01 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 17 Nov 2014 21:12:24 +0100 Subject: Add hide() method. --- hesla.appcache | 2 +- hesla.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- cgit