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

Merge pull request #4636 from pallets/docs-javascriptDavid Lordbefore adoption9398630

History of this file

Take it

The walk stopped after 200 commits: lines older than f325b8b point at it.

add lock threads workflowDavid Lordbefore adoptionf325b8b

lines 1–2why, one step back
1<!doctype html>
2<title>JavaScript Example</title>

Merge pull request #4636 from pallets/docs-javascriptDavid Lordbefore adoption9398630

lines 3–4why, one step back
3<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css">
4<link rel="stylesheet" href="https://unpkg.com/sakura.css@1.3.1/css/sakura.css">

add lock threads workflowDavid Lordbefore adoptionf325b8b

lines 5–17why, one step back
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 == 'fetch' %}active{% endif %}">17 <a href="{{ url_for('index', js='fetch') }}">Fetch</a>

Merge pull request #4636 from pallets/docs-javascriptDavid Lordbefore adoption9398630

lines 18–19why, one step back
18 <li class="{% if js == 'xhr' %}active{% endif %}">
19 <a href="{{ url_for('index', js='xhr') }}">XHR</a>

add lock threads workflowDavid Lordbefore adoptionf325b8b

lines 20–33why, one step back
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>26<form id="calc">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 %}