aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-07-12 13:38:40 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-07-12 13:38:40 -0700
commitca8a4a50a44e6e63052cc898f5f376af2e533001 (patch)
tree10a4c83cd781537f0a31aedde745d88d909404da
parentdownloads: jQuery take 2 (diff)
downloadwww-ca8a4a50a44e6e63052cc898f5f376af2e533001.tar.gz
www-ca8a4a50a44e6e63052cc898f5f376af2e533001.tar.bz2
www-ca8a4a50a44e6e63052cc898f5f376af2e533001.zip
downloads: fix JS inside yaml
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--downloads/index.html23
1 files changed, 12 insertions, 11 deletions
diff --git a/downloads/index.html b/downloads/index.html
index 1692891..f8ab833 100644
--- a/downloads/index.html
+++ b/downloads/index.html
@@ -6,17 +6,18 @@ nav1-weight: 9
title: 'Downloads'
# Select the correct tab based on the anchor hash in the URL.
# TODO: better validation, use explicit arch list.
-inlinejs: "$(
- function() {
- var h = window.location.hash;
- var hb = '#other-arches a';
- var h2 = hb + '[href="' + h + '"]';
- if(h == '' || $(h2).length == 0) {
- h2 = hb + ':first';
- };
- $(h2).tab('show');
- }
-);"
+inlinejs: |
+ $(
+ function() {
+ var h = window.location.hash;
+ var hb = '#other-arches a';
+ var h2 = hb + '[href="' + h + '"]';
+ if(h == '' || $(h2).length == 0) {
+ h2 = hb + ':first';
+ };
+ $(h2).tab('show');
+ }
+ );
---
<div class="row">