Skip to content
Myr

base.html

This file

Path

examples/javascript/js_example/templates/base.html

33 lines · 1.2 KiB · HTML

Last changed by

clean up js exampleDavid Lordbefore adoption1e84c67

History of this file

Take it

Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d

lines 1–25why, one step back
1<!doctype html>
2<title>JavaScript Example</title>3<link rel="stylesheet" href="https://unpkg.com/sakura.css@1.0.0/css/normalize.css">4<link rel="stylesheet" href="https://unpkg.com/sakura.css@1.0.0/css/sakura-earthly.css">5<style>6 ul { margin: 0; padding: 0; display: flex; list-style-type: none; }7 li > * { padding: 1em; }8 li.active > a { color: #5e5e5e; border-bottom: 2px solid #4a4a4a; }9 form { display: flex; }10 label > input { width: 3em; }11 form > * { padding-right: 1em; }12 #result { font-weight: bold; }13</style>14<ul>15 <li><span>Type:</span>16 <li class="{% if js == 'plain' %}active{% endif %}">17 <a href="{{ url_for('index', js='plain') }}">Plain</a>18 <li class="{% if js == 'fetch' %}active{% endif %}">19 <a href="{{ url_for('index', js='fetch') }}">Fetch</a>20 <li class="{% if js == 'jquery' %}active{% endif %}">21 <a href="{{ url_for('index', js='jquery') }}">jQuery</a>22</ul>23<hr>24<p>{% block intro %}{% endblock %}</p>25<hr>

clean up js exampleDavid Lordbefore adoption1e84c67

line 26why, one step back
26<form id="calc">

Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d

lines 27–33why, one step back
27 <label>a <input name="a"></label>
28 <span>+</span>29 <label>b <input name="b"></label>30 <input type="submit" value="Calculate">31</form>32<span>= <span id="result"></span></span>33{% block script %}{% endblock %}