diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2023-07-12 13:38:40 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2023-07-12 13:38:40 -0700 |
commit | ca8a4a50a44e6e63052cc898f5f376af2e533001 (patch) | |
tree | 10a4c83cd781537f0a31aedde745d88d909404da /downloads | |
parent | downloads: jQuery take 2 (diff) | |
download | www-ca8a4a50a44e6e63052cc898f5f376af2e533001.tar.gz www-ca8a4a50a44e6e63052cc898f5f376af2e533001.tar.bz2 www-ca8a4a50a44e6e63052cc898f5f376af2e533001.zip |
downloads: fix JS inside yaml
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'downloads')
-rw-r--r-- | downloads/index.html | 23 |
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"> |