From 1b4dc1b3191e3623a0eeb7cacef80be1ab71d0a2 Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Mon, 25 Jul 2016 18:06:00 -0400 Subject: reproducible debian: show the "show all" button when summary tag supported The "summary" tag is presentally not supported in firefox... but will be with the release of firefox version 48 in August 2016! In the meantime, this commit hides the "see all package sets in suite/arch" button on the package set pages used to expand all the summary tags for firefox. Once Firefox 48 is released, this commit should be reverted. Signed-off-by: Holger Levsen --- userContent/reproducible/static/pkgset.js | 9 +++++++++ userContent/reproducible/static/style.css | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 userContent/reproducible/static/pkgset.js (limited to 'userContent') diff --git a/userContent/reproducible/static/pkgset.js b/userContent/reproducible/static/pkgset.js new file mode 100644 index 00000000..530679a3 --- /dev/null +++ b/userContent/reproducible/static/pkgset.js @@ -0,0 +1,9 @@ +window.onload = function () { + var userAgent = navigator.userAgent.toLowerCase(); + var version = /firefox\/(\d+)/.exec(userAgent); + if (!version || (version.length === 2 && version[1] > 48)) { + // Reveal the "expand-all-pkgset" button when not in firefox (where + // summary tags are not supported) + document.getElementById("expand-all-pkgsets").style.display='inline'; + } +} diff --git a/userContent/reproducible/static/style.css b/userContent/reproducible/static/style.css index bdc0e755..5ffd490f 100644 --- a/userContent/reproducible/static/style.css +++ b/userContent/reproducible/static/style.css @@ -181,6 +181,10 @@ ul li { font-weight: bold; } +#expand-all-pkgsets { + display: none; +} + h1 { font-size : 250%; padding: 0; -- cgit v1.2.3-54-g00ecf