|
3 | 3 | <link rel="stylesheet" type="text/css" href="/static/css/default.css" />
|
4 | 4 | <link rel="stylesheet" type="text/css" href="/static/css/links.css" />
|
5 | 5 |
|
6 |
| - <!-- JS library for spawning popups --> |
| 6 | + <!-- JS library for spawning popups --> |
7 | 7 | <script src="/static/js/popups.js" defer></script>
|
8 | 8 | <script src="/static/js/popins.js" defer></script>
|
9 | 9 | <!-- JS library for annotating hyperlinks with introduction/summary from various sources; not lazy-loaded as (almost) all pages have popups -->
|
|
13 | 13 | <script src="/static/js/extracts-content.js" defer></script>
|
14 | 14 | <script src="/static/js/extracts-options.js" defer></script>
|
15 | 15 |
|
16 |
| - <!-- Stuff we don’t need on /index gets conditionally loaded: --> |
17 |
| - $if(index)$ $else$ |
| 16 | + $if(index)$ <!-- Stuff we don’t need on /index gets conditionally loaded: --> $else$ |
18 | 17 |
|
19 | 18 | <!-- JS library for clickable/zoomable images, for images larger than can be displayed in -->
|
20 | 19 | <!-- the body: http://share.obormot.net/misc/gwern/image-focus.js http://share.obormot.net/misc/gwern/image-focus.css -->
|
21 | 20 | <!-- not lazy-loaded due to various bugs -->
|
22 | 21 | <script src="/static/js/image-focus.js" defer></script>
|
23 | 22 |
|
24 | 23 | <!-- sort tables: http://tablesorter.com/docs/ ; requires JQuery, which has been prepended to avoid multiple JS page loads & race conditions -->
|
25 |
| - <script> |
26 |
| - if (document.querySelector("table")) { |
27 |
| - var js = document.createElement("script"); |
28 |
| - js.type = "text/javascript"; |
29 |
| - js.src = "/static/js/tablesorter.js"; |
30 |
| - document.body.appendChild(js); |
31 |
| - } |
32 |
| - </script> |
| 24 | + <script> |
| 25 | + if (document.querySelector("table")) { |
| 26 | + var js = document.createElement("script"); |
| 27 | + js.type = "text/javascript"; |
| 28 | + js.src = "/static/js/tablesorter.js"; |
| 29 | + document.body.appendChild(js); |
| 30 | + } |
| 31 | + </script> |
33 | 32 |
|
34 | 33 | $endif$
|
35 | 34 |
|
|
0 commit comments