summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-02-20 15:58:39 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-02-20 15:58:39 +0100
commite9554baf0f3f880d656284ef5e9089bbd8313464 (patch)
tree0b1ce2caaa3982504adfd6b91b59eaffff90735f
parenteb98a9a1ffd8fae66f03184861b4f25919931fd1 (diff)
downloadweb-common-e9554baf0f3f880d656284ef5e9089bbd8313464.tar.gz
web-common-e9554baf0f3f880d656284ef5e9089bbd8313464.tar.bz2
web-common-e9554baf0f3f880d656284ef5e9089bbd8313464.zip
Unversioning unneeded objects.
-rw-r--r--Makefile.am9
-rw-r--r--Makefile_Guix5
-rw-r--r--dropdown-navbar.html51
-rw-r--r--dropdown-navbar_script.js60
-rw-r--r--dropdown-navbar_style.css58
-rw-r--r--lang.css29
-rw-r--r--lang.html29
-rw-r--r--lang.js69
-rw-r--r--style.css198
9 files changed, 0 insertions, 508 deletions
diff --git a/Makefile.am b/Makefile.am
index 78e15e4..ea400be 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,26 +2,17 @@
EXTRA_DIST = \
pure.css \
demo.css \
- style.css \
taler-wallet-lib.ts \
chrome-any.d.ts \
licensing.rst \
favicon-taler.ico \
- dropdown-navbar.html \
- lang.html \
- lang.css \
- lang.js \
- dropdown-navbar_style.css \
- dropdown-navbar_script.js \
taler-fallback.css \
tsconfig.json \
AUTHORS
# Some file may be missing here...
pkgdata_DATA = \
- dropdown-navbar.html \
favicon-taler.ico \
- style.css \
taler-wallet-lib.js
all: taler-wallet-lib.min.js taler-wallet-lib.js.tar.gz taler-wallet-lib.js
diff --git a/Makefile_Guix b/Makefile_Guix
deleted file mode 100644
index 43dfe04..0000000
--- a/Makefile_Guix
+++ /dev/null
@@ -1,5 +0,0 @@
-# This Makefile is used to update the compiled JavaScripts
-# put under versioning for making Guix packaging easier
-
-all:
- tsc taler-wallet-lib.ts
diff --git a/dropdown-navbar.html b/dropdown-navbar.html
deleted file mode 100644
index 7d28787..0000000
--- a/dropdown-navbar.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!--
- This file is part of GNU TALER.
- Copyright (C) 2014, 2015, 2016 INRIA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2.1, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/>
-
- @author Marcello Stanisci
--->
-
-<!--
- URLs here use the special redir_app_rel path, which is rewritten by the
- webserver to be relative to the current application mount path, no matter
- where it occurs in the path.
--->
-
-<div>
- <link rel="stylesheet" type="text/css" href="redir_app_rel/static/web-common/dropdown-navbar_style.css">
- <script src="redir_app_rel/static/web-common/dropdown-navbar_script.js" type="application/javascript"></script>
- <div class="dropdown-navbar">
- <ul>
- <li>
- <a href="https://taler.net/" class="m_index btn btn-outline-success" id="home" target="_blank">Home</a>
- </li>
- <li>
- <a href="redir_app_rel/landing" class="m_demo" id="demo">Instructions</a>
- </li>
- <li>
- <a href="javascript:void(0)" class="dropbtn" id="bank">Bank</a>
- <div class="dropdown-content bank">
- <a href="redir_app_rel/bank">Main</a>
- <a href="redir_app_rel/bank/public-accounts">Public accounts</a>
- </div>
- </li>
- <li>
- <a href="redir_app_rel/shop" class="m_demo" id="shop">Shop</a>
- </li>
- <li>
- <a href="redir_app_rel/donations" class="m_demo" id="donations">Donations</a>
- </li>
- </ul>
- </div>
-</div>
diff --git a/dropdown-navbar_script.js b/dropdown-navbar_script.js
deleted file mode 100644
index 65f6848..0000000
--- a/dropdown-navbar_script.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/* @licstart The following is the entire license notice for the
- JavaScript code in this page.
-
- Copyright (C) 2015, 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.
-
- @author Marcello Stanisci
-*/
-window.onclick = function(e) {
- var dropdowns = document.getElementsByClassName("dropdown-content");
- if (!e.target.matches('.dropbtn')) {
- for (var d = 0; d < dropdowns.length; d++) {
- var openDropdown = dropdowns[d];
- if (openDropdown.classList.contains('show')) {
- openDropdown.classList.remove('show');
- }
- }
- }
- else{ // need to close other tabs belonging to tabs other than the clicked one
- for (var d = 0; d < dropdowns.length; d++) {
- var openDropdown = dropdowns[d];
- if ((openDropdown.parentNode != e.target.parentNode)
- && (openDropdown.classList.contains("show"))){
- openDropdown.classList.remove('show');
- }
- }
- }
-}
-/**
- * Dropdown bar items which are supposed to. In the current
- * configuration, only the 'bank' item shold dropdown.
- */
-function injectOnclicks(){
- var where = ["bank"];
- for (i in where){
- document.getElementById(where[i]).onclick = function(){
- this.parentNode.children[1].classList.toggle("show");
- }
- }
-}
-function dropMenu(){
-
-}
-document.addEventListener('DOMContentLoaded', injectOnclicks);
diff --git a/dropdown-navbar_style.css b/dropdown-navbar_style.css
deleted file mode 100644
index 139115d..0000000
--- a/dropdown-navbar_style.css
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- This file is part of GNU TALER.
- Copyright (C) 2014, 2015, 2016 INRIA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2.1, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
-
- @author Marcello Stanisci
-*/
-
-.dropdown-navbar ul {
- border-radius: 5px;
- overflow: hidden;
- background-color: #F4F3F3;
- list-style-type: none;
- margin: 0;
- padding: 0;
- max-width: 40em;
-}
-.dropdown-navbar {
- position: relative;
- z-index: 1;
- margin-left: 100px;
-}
-.dropdown-navbar li {
- float: left;
-}
-.dropdown-content {
- border-radius: 5px;
- border-style: solid;
- border-color: #B3B3B3;
- border-width: 1px;
- background-color: #F4F3F3;
- position: absolute;
- display: none;
-}
-.dropdown-navbar a {
- font-weight: bold;
- color: black;
- text-decoration: none;
- padding: 6px 8px;
- display: inline-block;
- position: relative;
-}
-.dropdown-content a {
- display: block;
-}
-.show {
- display: block;
-}
diff --git a/lang.css b/lang.css
deleted file mode 100644
index bae82f0..0000000
--- a/lang.css
+++ /dev/null
@@ -1,29 +0,0 @@
-body.it :lang(en) {
- display: none;
-}
-
-body.en :lang(it) {
- display: none;
-}
-
-.bottom-bar {
- background-color: #F8F8F8;
- border-color: #E7E7E7;
- bottom: 0px;
- margin-bottom: 0px;
- border-width: 1px 0px 0px;
- position: fixed;
- bottom: 0px;
- min-height: 50px;
- width: 100%;
-}
-
-.lang-selector {
- padding-top: 14px;
- padding-bottom: 10px;
- margin-left: 50px;
-}
-
-.lang-selector a {
- text-decoration: none;
-}
diff --git a/lang.html b/lang.html
deleted file mode 100644
index 8db1c0d..0000000
--- a/lang.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="bottom-bar">
- <div class="lang-selector">
- <a href="#" onclick="setLang('en');">
- <img>
- <!-- https://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg -->
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="45" height="22.5">
- <clipPath id="t">
- <path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/>
- </clipPath>
- <path d="M0,0 v30 h60 v-30 z" fill="#00247d"/>
- <path d="M0,0 L60,30 M60,0 L0,30" stroke="#fff" stroke-width="6"/>
- <path d="M0,0 L60,30 M60,0 L0,30" clip-path="url(#t)" stroke="#cf142b" stroke-width="4"/>
- <path d="M30,0 v30 M0,15 h60" stroke="#fff" stroke-width="10"/>
- <path d="M30,0 v30 M0,15 h60" stroke="#cf142b" stroke-width="6"/>
- </svg>
- </img>
- </a>
- <a href="#" onclick="setLang('it');">
- <img>
- <!-- https://upload.wikimedia.org/wikipedia/en/0/03/Flag_of_Italy.svg -->
- <svg xmlns="http://www.w3.org/2000/svg" width="45" height="22.5" viewBox="0 0 3 2">
- <rect width="1" height="2" fill="#009246"/>
- <rect width="1" height="2" x="1" fill="#fff"/>
- <rect width="1" height="2" x="2" fill="#ce2b37"/>
- </svg>
- </img>
- </a>
- </div>
-</div>
diff --git a/lang.js b/lang.js
deleted file mode 100644
index 356a152..0000000
--- a/lang.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * @licstart The following is the entire license notice for the
- * JavaScript code in this page.
- *
- * Copyright (C) 2014 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
- * General Public License (GNU GPL) as published by the Free Software
- * Foundation, either version 3 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 GPL for more details.
- *
- * As additional permission under GNU GPL version 3 section 7, you
- * may distribute non-source (e.g., minimized or compacted) forms of
- * that code without the copy of the GNU GPL 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.
- */
-
-// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
-
-function supports_html5_storage() {
- try {
- return 'sessionStorage' in window && window['sessionStorage'] !== null;
- }
- catch (e) {
- return false;
- }
-}
-
-function setLang(l)
-{
- document.body.className=l;
- if (supports_html5_storage()) {
- sessionStorage.setItem('lang', l);
- }
- if (l == 'en') document.title = 'GNU Taler - Merchant demonstrator';
- if (l == 'it') document.title = 'GNU Taler - Dimostrazione d\'acquisto';
-}
-
-function get_default_lang()
-{
- langs = ['en', 'it'];
- for (var i in navigator.languages) {
- for (var j in langs) {
- if (navigator.languages[i].indexOf(langs[j]) != -1)
- return langs[j];
- }
- }
- return 'en';
-}
-
-/*To be called on each onLoad*/
-function loadLang()
-{
- l = null;
- if (supports_html5_storage()) {
- l = sessionStorage.getItem('lang');
- }
- if (!l)
- l = get_default_lang();
- setLang(l);
-}
-// @license-end
diff --git a/style.css b/style.css
deleted file mode 100644
index b63fdd1..0000000
--- a/style.css
+++ /dev/null
@@ -1,198 +0,0 @@
-/*
- This file is part of GNU TALER.
- Copyright (C) 2014, 2015, 2016 INRIA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2.1, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/>
-
- @author Marcello Stanisci
- @author Gabor Toth
-*/
-
-body {
- background-color: white;
- margin: 0;
- padding: 0;
- font-family: Verdana, sans;
-}
-
-header {
- width: 100%;
- height: 100px;
- margin: 0;
- padding: 0;
- border-bottom: 1px solid black;
-}
-
-/* NOTE: this class is needed to differentiate h1's which need to coexist
- with the navigation bar, and h1's which don't (like the ones in the blog's
- articles) */
-header h1.nav {
- font-size: 200%;
-/* position: relative;
- margin: 15 0 0 120px;
- top: 50%;
- transform: translateY(-50%);*/
-}
-
-body.article {
- transform: translateY(-22px);
-}
-
-/* Redundant for testing reasons */
-header h1.book-title {
- font-size: 200%;
- transform: translateY(30px);
- margin-left: 100px;
-}
-/*
- margin: 15 0 0 120px;
- position: relative;
- top: 50%;
- transform: translateY(-50%);
-}*/
-header #logo {
- float: left;
- width: 100px;
- height: 100px;
- padding: 0;
- margin: 0;
- text-align: center;
- border-right: 1px solid black;
-}
-
-section#menu {
- margin: 0 0 90 0;
- padding: 5px;
- border-right: 1px solid black;
- height: 100%;
- width: 90px;
- float: left;
-}
-
-section#main {
- margin: 0 0 0 100px;
- padding: 20px;
- border-left: 1px solid black;
- height: 100%;
- /*max-width: 40em;*/
-}
-
-div.copyright {
- margin: 40px 1000px 0px 150px;
- padding: 20px;
- border-top: 1px solid black;
- height: 100%;
- max-width: 40em;
- font-size: 70%;
- text-align: center;
-}
-
-section#main h1:first-child {
- margin-top: 0;
-}
-
-div.login-form, div.register-form {
- border-radius: 10px;
- background-color: #f2f2f2;
- padding: 11px 27px 44px 27px;
- max-width: 200px;
-}
-
-div.login-form input[type=submit],
-div.register-form input[type=submit] {
- width-max: 30%;
- float: right;
- padding: 6px;
-}
-
-.selected-item {
- border-style: solid;
- border-width: 1px;
-}
-
-.informational {
- border-radius: 8px;
- padding: 8px;
-}
-
-.informational-ok {
- background: #ccffcc;
-}
-
-.informational-fail {
- background: #ff8566;
-}
-
-div.login-form input[type=text],
-div.login-form input[type=password],
-div.register-form input[type=text],
-div.register-form input[type=password] {
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- border-radius: 4px;
- box-sizing: border-box;
-}
-
-h1 {
- font-size: 160%;
-}
-
-h2 {
- font-size: 140%;
-}
-
-h3 {
- font-size: 120%;
-}
-
-h4, h5, h6 {
- font-size: 100%;
-}
-
-table.history {
- margin: 30px 0px;
- border-width: 1px;
- border-spacing: 3px;
- border-style: groove;
- border-color: gray;
- border-collapse: separate;
- background-color: white;
- white-space: nowrap;
-}
-table.history th {
- border-width: 1px;
- padding: 5px;
- border-style: outset;
- border-color: gray;
- background-color: white;
- -moz-border-radius: ;
-}
-table.history td {
- border-width: 1px;
- padding: 5px;
- border-style: outset;
- border-color: gray;
- background-color: white;
- -moz-border-radius: ;
-}
-div.track-results {
- position: absolute;
-}
-
-.fade {
- -webkit-animation: fade 0.7s;
- animation: fade 0.7s;
- opacity: 1;
-}