aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-02-29 02:43:54 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-02-29 02:43:54 +0100
commitf044f763d8aa45a2829e9d786b96a119ffd4b4c7 (patch)
tree50fd8712e7c04ce89a70f2f2a1bc586ccc5bdaf0
parenta6d7ca1277fc4f33085576ae06832f00aa6a482b (diff)
downloadbank-f044f763d8aa45a2829e9d786b96a119ffd4b4c7.tar.gz
bank-f044f763d8aa45a2829e9d786b96a119ffd4b4c7.tar.bz2
bank-f044f763d8aa45a2829e9d786b96a119ffd4b4c7.zip
add submodule for common web resources
-rw-r--r--.gitmodules3
-rw-r--r--website/index.php2
-rw-r--r--website/taler-presence.js69
m---------website/web-common0
4 files changed, 4 insertions, 70 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..5e627b3
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "website/web-common"]
+ path = website/web-common
+ url = git://taler.net/web-common.git
diff --git a/website/index.php b/website/index.php
index 300a3dc..29ec1c6 100644
--- a/website/index.php
+++ b/website/index.php
@@ -6,7 +6,7 @@ require_once "config.php";
<head>
<title>KUDOS Bank - Taler Demo</title>
<link rel="stylesheet" type="text/css" href="style.css">
- <script src="taler-presence.js" type="application/javascript"></script>
+ <script src="web-common/taler-presence.js" type="application/javascript"></script>
<script type="application/javascript">
/*
@licstart The following is the entire license notice for the
diff --git a/website/taler-presence.js b/website/taler-presence.js
deleted file mode 100644
index 59803c2..0000000
--- a/website/taler-presence.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/* @licstart The following is the entire license notice for the
- JavaScript code in this page.
-
- Copyright (C) 2016 GNUnet e.V.
-
- The JavaScript code in this page is free software: you can
- redistribute it and/or modify it under the terms of the GNU
- Lesser General Public License (GNU LGPL) as published by the Free Software
- Foundation, either version 2.1 of the License, or (at your option)
- any later version. The code is distributed WITHOUT ANY WARRANTY;
- without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU LGPL for more details.
-
- As additional permission under GNU LGPL version 2.1 section 7, you
- may distribute non-source (e.g., minimized or compacted) forms of
- that code without the copy of the GNU LGPL normally required by
- section 4, provided you include this license notice and a URL
- through which recipients can access the Corresponding Source.
-
- @licend The above is the entire license notice
- for the JavaScript code in this page.
-*/
-
-function handleInstall() {
- var show = document.getElementsByClassName("taler-installed-show");
- var hide = document.getElementsByClassName("taler-installed-hide");
- var activate = document.getElementsByClassName("taler-installed-activate");
- 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";
- }
- for (var i = 0; i < activate.length; i++) {
- activate[i].disabled = false;
- }
-};
-
-function handleUninstall() {
- var show = document.getElementsByClassName("taler-installed-show");
- var hide = document.getElementsByClassName("taler-installed-hide");
- var activate = document.getElementsByClassName("taler-installed-activate");
- 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 = "";
- }
- for (var i = 0; i < activate.length; i++) {
- activate[i].disabled = true;
- }
-};
-
-function probeTaler() {
- var eve = new Event("taler-probe");
- console.log("probing taler");
- document.dispatchEvent(eve);
-}
-
-document.addEventListener("taler-wallet-present", handleInstall, false);
-document.addEventListener("taler-unload", handleUninstall, false);
-document.addEventListener("taler-load", handleInstall, false);
-
-function initTaler() {
- handleUninstall();
- probeTaler();
-}
-
-window.addEventListener("load", initTaler, false);
diff --git a/website/web-common b/website/web-common
new file mode 160000
+Subproject 98130c928db4fcc8f06abfa618d649fc979eff1