diff --git a/demo/app.py b/demo/app.py index e6b6a69..d881419 100644 --- a/demo/app.py +++ b/demo/app.py @@ -12,6 +12,11 @@ def index(): return render_template('index.html') +@app.route('/popup') +def popup(): + return render_template('popover.html') + + @app.route('/translate', methods=['POST']) def translate(): lines = request.form['code'] diff --git a/demo/templates/base.html b/demo/templates/base.html index 7b61cd9..88041e5 100644 --- a/demo/templates/base.html +++ b/demo/templates/base.html @@ -2,64 +2,21 @@ {% block title %}{% endblock %} | hy - + - + -
-
-
- -

-                
-
-
+
@@ -67,7 +24,7 @@ $(document).ready(function() { diff --git a/demo/templates/popover.html b/demo/templates/popover.html new file mode 100644 index 0000000..2b32c38 --- /dev/null +++ b/demo/templates/popover.html @@ -0,0 +1,59 @@ + +
+
+
+ +

+                
+
+