commit 3bbc4329e909c82fe838820c74044d8ecc0c81ee
parent 065d8548c06feda03c8af022443d8d58dbc5cdee
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Mon, 7 Mar 2016 17:37:22 +0100
removing use of copy&pasted HTML/JS
Diffstat:
4 files changed, 1 insertion(+), 123 deletions(-)
diff --git a/copylib/taler-presence.js b/copylib/taler-presence.js
@@ -1,61 +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");
- 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");
- 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/examples/blog/essay_cc-form.html b/examples/blog/essay_cc-form.html
@@ -121,6 +121,6 @@
}
</script>
- <script type="application/javascript" src="taler-presence.js"></script>
+ <script type="application/javascript" src="web-common/taler-presence.js"></script>
</body>
</html>
diff --git a/examples/blog/taler-presence.js b/examples/blog/taler-presence.js
@@ -1,61 +0,0 @@
-/* @licstart The following is the entire license notice for the
- JavaScript code in this page.
-
- Copyright (C) 2016 INRIA
-
- 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");
- 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");
- 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/OWNERS.rst b/licensing.rst