Skip to content

Commit 91def99

Browse files
committed
HTML: pass tidy
1 parent fcdd092 commit 91def99

File tree

13 files changed

+116
-99
lines changed

13 files changed

+116
-99
lines changed

css/extras.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/* From mop.md */
2+
3+
a img.tshirt {
4+
width: 150px;
5+
border: 2px grey solid;
6+
border-radius: 5px;
7+
margin: 7px 7px;
8+
}
9+
a img:hover {
10+
box-shadow: 0px 0px 35px #dddd33;
11+
background-color: #eeee88;
12+
}
13+
div.hidden {
14+
display: none;
15+
border: 2px solid #660000;
16+
border-radius: 8px;
17+
padding: 5px 5px;
18+
background-color: #e4fbf9;
19+
padding: 6px;
20+
}
21+
22+
.chooser {
23+
text-align: center;
24+
}
25+
div.chooser {
26+
margin-top: -5px;
27+
margin-bottom: 5px;
28+
}
29+
.chooser ul {
30+
list-style: none;
31+
padding: 0 10px 0 10px;
32+
margin-bottom: 0px;
33+
border-radius: 4px;
34+
}
35+
.list-chooser ul {
36+
border: 2px dotted #0033dd;
37+
}
38+
.empty-chooser ul {
39+
border: 2px dotted #990099;
40+
}
41+
.empty-chooser a:link {
42+
color: #af2f2f;
43+
}
44+
.chooser ul > li {
45+
display: inline;
46+
}
47+
.chooser ul > li:not(:last-child)::after {
48+
content: " • ";
49+
}
50+
51+
/* From photos.md */
52+
53+
@keyframes glow-yellow {
54+
from {
55+
box-shadow: 0px 0px 35px #bbbb33;
56+
}
57+
to {
58+
box-shadow: 0px 0px 45px #eeeecc;
59+
}
60+
}
61+
62+
div.photo-gallery a > img {
63+
height: 96px;
64+
width: 96px;
65+
object-fit: cover;
66+
margin: 6px 6px 6px 6px;
67+
box-shadow: 0px 0px 15px #6666dd;
68+
}
69+
div.photo-gallery a:hover > img {
70+
animation-name: glow-yellow;
71+
animation-duration: 2s;
72+
}

input/discord.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,24 @@ menu-position: 52
88

99
By using the link
1010

11-
<center><a href="https://discord.gg/KzFXYwqRFX">https://discord.gg/KzFXYwqRFX</a></center>
11+
<p style="text-align:center">
12+
<a href="https://discord.gg/KzFXYwqRFX">https://discord.gg/KzFXYwqRFX</a>
13+
</p>
1214

1315
you can join vEnhance's Discord server.
1416
This Discord server is centered around my
1517
[_Twitch Solves ISL_ stream](videos.html),
1618
so it is usually most active while the stream is live, or around that time.
1719
However, you should feel welcome to post math questions or discussion at any time.
1820

19-
<center><iframe src="https://discord.com/widget?id=780468665019269191&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe></center>
21+
<iframe src="https://discord.com/widget?id=780468665019269191&amp;theme=dark"
22+
width="350"
23+
height="500"
24+
allowtransparency="true"
25+
frameborder="0"
26+
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
27+
style="margin: 0 auto;">
28+
</iframe>
2029

2130
## {{ hl("rules", "Server rules") }}
2231

input/excerpts.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ description: OTIS Excerpts, a mini-book based on OTIS lecture notes.
66
---
77

88
<span style="float:right;padding:10px;">
9-
<img src="https://storage.googleapis.com/otisweb-static/static/img/otis-logo-v2018.svg"
10-
width="250px" />
9+
<img src="https://storage.googleapis.com/otisweb-static/static/img/otis-logo-v2022.svg"
10+
alt="OTIS logo, v2022"
11+
width="250" />
1112
</span>
1213

1314
## {{ hl("download", "Download") }}

input/games.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can find my page on
1212
[Board Game Geek profile](https://boardgamegeek.com/user/vEnhance/);
1313
here are some of the games I like.
1414

15-
<script language="javascript" src="https://boardgamegeek.com/jswidget.php?username=vEnhance&numitems=5&text=title&images=small-fixed&show=random&imagesonly=1&imagepos=left&domains%5B%5D=boardgame"></script>
15+
<script language="javascript" src="https://boardgamegeek.com/jswidget.php?username=vEnhance&amp;numitems=5&amp;text=title&amp;images=small-fixed&amp;show=random&amp;imagesonly=1&amp;imagepos=left&amp;domains%5B%5D=boardgame"></script>
1616

1717
## {{ hl("steam", "Steam") }}
1818

input/mop.md

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ indent: 1
66

77
---
88

9-
[![Not an official logo, but comedic](static/mop/abcde.png){width=150px}](static/mop/abcde.png)
9+
[![Not an official logo, but comedic](static/mop/abcde.png){width=150}](static/mop/abcde.png)
1010
{style="float:right;"}
1111

1212
## {{ hl("about", "About MOP") }}
@@ -382,56 +382,6 @@ Here are recent songs we performed:
382382
- William Yue: "That's just true by combo."
383383
</div>
384384

385-
<style type="text/css">
386-
a img.tshirt {
387-
width: 150px;
388-
border: 2px grey solid;
389-
border-radius: 5px;
390-
margin: 7px 7px;
391-
}
392-
a img:hover {
393-
box-shadow: 0px 0px 35px #dddd33;
394-
background-color: #eeee88;
395-
}
396-
div.hidden {
397-
display: none;
398-
border: 2px solid #660000;
399-
border-radius: 8px;
400-
padding: 5px 5px;
401-
background-color: #e4fbf9;
402-
padding: 6px;
403-
}
404-
405-
.chooser {
406-
text-align: center;
407-
}
408-
div.chooser {
409-
margin-top: -5px;
410-
margin-bottom: 5px;
411-
}
412-
.chooser ul {
413-
list-style: none;
414-
padding: 0 10px 0 10px;
415-
margin-bottom: 0px;
416-
border-radius: 4px;
417-
}
418-
.list-chooser ul {
419-
border: 2px dotted #0033dd;
420-
}
421-
.empty-chooser ul {
422-
border: 2px dotted #990099;
423-
}
424-
.empty-chooser a:link {
425-
color: #af2f2f;
426-
}
427-
.chooser ul > li {
428-
display: inline;
429-
}
430-
.chooser ul > li:not(:last-child)::after {
431-
content: "";
432-
}
433-
</style>
434-
435385
<script type="text/javascript">
436386
$(() => {
437387
$('.list-chooser a').attr('target', '_blank');

input/otis.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ OTIS is a proof-based olympiad training program.
2020

2121
Updated for 2023-2024:
2222

23-
<center markdown="1">
23+
<div markdown="1" style="text-align: center;">
2424
[🗎 <b>DOWNLOAD SYLLABUS</b>](upload/otis-syllabus.pdf)
25-
</center>
25+
</div>
2626

2727
## {{ hl("docs", "Other documents") }}
2828

@@ -56,9 +56,11 @@ This mini-book was named _The OTIS Excerpts_.
5656
It is designed to mostly be beginner-friendly
5757
though some of the chapters are more challenging.
5858

59-
<center>
60-
<img src="static/otis-logo-v2022.svg" width="50%" alt="OTIS logo, v2022" />
61-
</center>
59+
<div style="margin: 0 auto;">
60+
<img src="static/otis-logo-v2022.svg"
61+
width="50%"
62+
alt="OTIS logo, v2022" />
63+
</div>
6264

6365
---
6466

input/photos.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,6 @@ indent: 1
88
I guess here are some pictures of myself.
99
Click to enlarge any of them.
1010

11-
<style type="text/css">
12-
@keyframes glow-yellow {
13-
from { box-shadow: 0px 0px 35px #bbbb33 }
14-
to { box-shadow: 0px 0px 45px #eeeecc }
15-
}
16-
17-
div.photo-gallery a > img {
18-
height: 96px;
19-
width: 96px;
20-
object-fit: cover;
21-
margin: 6px 6px 6px 6px;
22-
box-shadow: 0px 0px 15px #6666dd;
23-
}
24-
div.photo-gallery a:hover > img {
25-
animation-name: glow-yellow;
26-
animation-duration: 2s;
27-
}
28-
</style>
29-
3011
These images are licensed under
3112
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
3213
essentially meaning you may use them freely provided attribution is given.

input/puzzlehunt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See also [my devjoe page](http://devjoe.appspot.com/huntindex/author/chenevan).
1616
- [Nutrition Facts](https://web.mit.edu/puzzle/www/2021/puzzle/nutrition-facts/)
1717
- [Blind Calculation](https://web.mit.edu/puzzle/www/2021/puzzle/blind-calculation/)
1818
- [A Bit of Light](https://web.mit.edu/puzzle/www/2021/puzzle/a-bit-of-light/)
19-
- [Le chiffre indéchiffrable](https://web.mit.edu/puzzle/www/2021/puzzle/le-chiffre-indéchiffrable/)
19+
- [Le chiffre indéchiffrable](https://web.mit.edu/puzzle/www/2021/puzzle/le-chiffre-ind%E9chiffrable/)
2020
- [Clueless](https://web.mit.edu/puzzle/www/2021/puzzle/clueless/)
2121
- [Divided Is Us](https://web.mit.edu/puzzle/www/2021/puzzle/divided-is-us/), with Jakob Weisblat
2222
- [Escape From Life](https://web.mit.edu/puzzle/www/2021/puzzle/escape-from-life/)

input/quotes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ Alphabetical, does not include song lyrics.
7878
[^lander]: From the USAMO 2021 awards ceremony.
7979

8080
![I suppose if we couldn't laugh at things that don't make sense,
81-
we couldn't react to a lot of life.](static/calvin-hobbes-life.jpg){width=327px}
81+
we couldn't react to a lot of life.](static/calvin-hobbes-life.jpg){width=327}
8282
{style="text-align:center;"}

input/videos.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ menu-position: 50
55

66
---
77

8-
<p>
8+
<div>
99
<table cellpadding="5">
1010
<tr>
11-
<td align="center">
11+
<td style="text-align: center;">
1212
<a href="https://youtube.com/c/vEnhance">
1313
<img src="static/logo-youtube.png" width="120" alt="YouTube logo" />
1414
</a>
@@ -22,7 +22,7 @@ menu-position: 50
2222
</td>
2323
</tr>
2424
<tr>
25-
<td align="center">
25+
<td style="text-align:center;">
2626
<a href="https://twitch.tv/vEnhance/">
2727
<img src="static/logo-twitch.png" width="70" alt="Twitch logo" />
2828
</a>
@@ -33,7 +33,7 @@ menu-position: 50
3333
</td>
3434
</tr>
3535
</table>
36-
</p>
36+
</div>
3737

3838
Some Fridays I run a [Twitch stream](https://www.twitch.tv/vEnhance)
3939
which is informally titled **Twitch Solves ISL** (here ISL is IMO Shortlists).
@@ -67,11 +67,11 @@ Here is a picture of my physical setup (click to enlarge).
6767
Xiberia V22 headset, Havit HV-KB395L keyboard,
6868
Inateck MS 1001 mouse, MSI Codex XE Plus computer.
6969

70-
<center>
71-
<a href="/static/twitch-setup.jpg">
72-
<img src="/static/twitch-setup-sm.jpg" width="250" alt="Evan's multi-monitor setup for Twitch." />
73-
</a>
74-
</center>
70+
<div style="margin: 0 auto;">
71+
<a href="/static/twitch-setup.jpg">
72+
<img src="/static/twitch-setup-sm.jpg" width="250" alt="Evan's multi-monitor setup for Twitch." />
73+
</a>
74+
</div>
7575

7676
## {{ hl("archive", "Archive of past problems") }}
7777

0 commit comments

Comments
 (0)