gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-playground] branch master updated: more examples


From: gnunet
Subject: [GNUnet-SVN] [taler-playground] branch master updated: more examples
Date: Wed, 07 Mar 2018 20:49:47 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository playground.

The following commit(s) were added to refs/heads/master by this push:
     new 8cda972  more examples
8cda972 is described below

commit 8cda9724636679114f170719e51f0e4e623a6927
Author: Florian Dold <address@hidden>
AuthorDate: Wed Mar 7 20:38:09 2018 +0100

    more examples
---
 talerplayground/playground/playground.py               |  8 ++++++++
 talerplayground/playground/templates/base.html         |  5 +++++
 .../playground/templates/detection-css.html            | 18 ++++++++++++++++++
 3 files changed, 31 insertions(+)

diff --git a/talerplayground/playground/playground.py 
b/talerplayground/playground/playground.py
index 383dbfd..ecf03c6 100644
--- a/talerplayground/playground/playground.py
+++ b/talerplayground/playground/playground.py
@@ -106,3 +106,11 @@ def index():
 @app.route("/detection-js")
 def detection_js():
     return flask.render_template("templates/detection-js.html")
+
address@hidden("/detection-css")
+def detection_css():
+    return flask.render_template("templates/detection-css.html")
+
address@hidden("/detection-css-wrong")
+def detection_css_wrong():
+    return flask.render_template("templates/detection-css.html", 
disable_nojs=True)
diff --git a/talerplayground/playground/templates/base.html 
b/talerplayground/playground/templates/base.html
index cb7703c..d9f7ead 100644
--- a/talerplayground/playground/templates/base.html
+++ b/talerplayground/playground/templates/base.html
@@ -15,7 +15,12 @@
   TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
 -->
 
+{% if disable_nojs %}
+<html>
+{% else %}
 <html data-taler-nojs="true">
+{% endif %}
+
 <head>
   <title>Taler Playground</title>
   <link rel="stylesheet" type="text/css" href="{{ url_for('static', 
filename='web-common/pure.css') }}" />
diff --git a/talerplayground/playground/templates/detection-css.html 
b/talerplayground/playground/templates/detection-css.html
new file mode 100644
index 0000000..bea7fe5
--- /dev/null
+++ b/talerplayground/playground/templates/detection-css.html
@@ -0,0 +1,18 @@
+{% extends "templates/base.html" %}
+
+{% block main %}
+<h1>Taler Playground: CSS Presence Detection</h1>
+
+{% if disable_nojs %}
+<p>This is the "broken" version, without the <code>data-taler-nojs</code> set.
+{% endif %}
+
+<p>The following classes are available ("VISIBLE" is shown unless the class 
sets <code>display: none</code>):</p>
+
+<ul>
+  <li><code>taler-installed-hide</code>: <span 
class="taler-installed-hide">VISIBLE</span></li>
+  <li><code>taler-installed-show</code>: <span 
class="taler-installed-show">VISIBLE</span></li>
+  <li><code>taler-probed-hide</code>: <span 
class="taler-probed-hide">VISIBLE</span></li>
+</ul>
+
+{% endblock %}

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]