base.html
This file
Path
examples/javascript/js_example/templates/base.html
36 lines · 1.2 KiB · HTML
Last changed by
Close tag on js examples.Hsiaoming Yangbefore adoptionb7f6ff4
History of this fileTake it
Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d
lines 1–14why, one step back1<!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>Close tag on js examples.Hsiaoming Yangbefore adoptionb7f6ff4
line 15why, one step back15 <li><span>Type:</span></li>Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d
lines 16–17why, one step back16 <li class="{% if js == 'plain' %}active{% endif %}">17 <a href="{{ url_for('index', js='plain') }}">Plain</a>Close tag on js examples.Hsiaoming Yangbefore adoptionb7f6ff4
line 18why, one step back18 </li>Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d
lines 19–20why, one step back19 <li class="{% if js == 'fetch' %}active{% endif %}">20 <a href="{{ url_for('index', js='fetch') }}">Fetch</a>Close tag on js examples.Hsiaoming Yangbefore adoptionb7f6ff4
line 21why, one step back21 </li>Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d
lines 22–23why, one step back22 <li class="{% if js == 'jquery' %}active{% endif %}">23 <a href="{{ url_for('index', js='jquery') }}">jQuery</a>Close tag on js examples.Hsiaoming Yangbefore adoptionb7f6ff4
line 24why, one step back24 </li>Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d
lines 25–28why, one step back25</ul>26<hr>27<p>{% block intro %}{% endblock %}</p>28<hr>clean up js exampleDavid Lordbefore adoption1e84c67
line 29why, one step back29<form id="calc">Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d
lines 30–36why, one step back30 <label>a <input name="a"></label>31 <span>+</span>32 <label>b <input name="b"></label>33 <input type="submit" value="Calculate">34</form>35<span>= <span id="result"></span></span>36{% block script %}{% endblock %}