diff options
author | Matěj Cepl <mcepl@redhat.com> | 2014-11-17 21:12:24 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2014-11-17 21:12:24 +0100 |
commit | 5d1b9b66cb068123f51d5a9122fcb1c961ae9a01 (patch) | |
tree | c46abbb6d858bdb6984ff9b02a184dad34648a64 | |
parent | 4b3327e2fb86f10ee66d8cff7fbac10a6143c0e4 (diff) | |
download | hesla-5d1b9b66cb068123f51d5a9122fcb1c961ae9a01.tar.gz |
Add hide() method.
-rw-r--r-- | hesla.appcache | 2 | ||||
-rw-r--r-- | hesla.ts | 7 |
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 @@ -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); |