diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-08-17 02:23:16 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-08-17 02:23:16 +0200 |
commit | a331666cc1f06eb7e83eaa280f5d0e8521fc1aa4 (patch) | |
tree | 236629b2611005d65745bebeb40fe599794c402c /articles/ui/figs | |
parent | e7f402550f62e24d8e1ee59fdd6f25ded85ddd19 (diff) | |
download | wallet-core-a331666cc1f06eb7e83eaa280f5d0e8521fc1aa4.tar.xz |
session state stuff
Diffstat (limited to 'articles/ui/figs')
-rw-r--r-- | articles/ui/figs/taler-presence.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/articles/ui/figs/taler-presence.js b/articles/ui/figs/taler-presence.js deleted file mode 100644 index 2301bd27d..000000000 --- a/articles/ui/figs/taler-presence.js +++ /dev/null @@ -1,35 +0,0 @@ -function handleInstall() { - var show = document.getElementsByClassName("taler-installed-show"); - var hide = document.getElementsByClassName("taler-installed-hide"); - for (var i = 0; i < show.length; i++) { - show[i].style.display = ""; - } - for (var i = 0; i < hide.length; i++) { - hide[i].style.display = "none"; - } -}; - -function handleUninstall() { - var show = document.getElementsByClassName("taler-installed-show"); - var hide = document.getElementsByClassName("taler-installed-hide"); - for (var i = 0; i < show.length; i++) { - show[i].style.display = "none"; - } - for (var i = 0; i < hide.length; i++) { - hide[i].style.display = ""; - } -}; - -function probeTaler() { - var eve = new Event("taler-probe"); - document.dispatchEvent(eve); -}; - -function initTaler() { - handleUninstall(); probeTaler(); -}; - -document.addEventListener("taler-wallet-present", handleInstall, false); -document.addEventListener("taler-unload", handleUninstall, false); -document.addEventListener("taler-load", handleInstall, false); -window.addEventListener("load", initTaler, false); |