diff options
| Commit | 70ec859dee61a77ac813c1bf1e6f8d928fd1c2b2 (patch) | |
|---|---|---|
| Author | 2025-10-05 20:55:26 +0300 | |
| Committer | 2025-10-05 20:55:26 +0300 | |
| Files | caab85ac5fc69b488f2213b946583a09f41fbd59 /meta/header.html | |
| syndamia.com-70ec859dee61a77ac813c1bf1e6f8d928fd1c2b2.tar syndamia.com-70ec859dee61a77ac813c1bf1e6f8d928fd1c2b2.tar.gz syndamia.com-70ec859dee61a77ac813c1bf1e6f8d928fd1c2b2.zip | ||
| Parent | 7e77973c9d8594ee2f36a18b53f5d78d797a6686 (diff) | |
fix(teachihng/upp-2025/w02): Load styles like any normal stylesheet
The old approach using JS would cause CORS policy errors. Since the
stylesheet is disabled by default, it won't ever be downloaded, unless
you're on a machine_table page. But even if you try, it will fail
because of the relative path, making sure you almost never download it.
1 files changed, 1 insertions, 0 deletions
| -rw-r--r-- | meta/header.html | 1 |
diff --git a/meta/header.html b/meta/header.html index 4c190d1..6e0963d 100644 --- a/meta/header.html +++ b/meta/header.html @@ -13,6 +13,7 @@ <link rel="stylesheet" href="/darkmode.css"> <link rel="stylesheet" href="/hide-js-styling.css"> <link rel="stylesheet" href="/presentation.css"> + <link rel="stylesheet" href="./machine_table.css" id="upp2025_w02" disabled> <script type="text/javascript" src="/scripts/styling-preload.js" crossorigin="anonymous"></script> <meta name="description" content="[$DESCRIPTION]"> <!-- Thanks https://stackoverflow.com/a/25093272/12036073 --> |