From b5e4e3fb2eaa65b7b0c72fef8523812b2fe491aa Mon Sep 17 00:00:00 2001 From: Bui Date: Wed, 10 Oct 2018 21:30:10 +0100 Subject: [PATCH] change version text style --- public/src/css/main.css | 2 +- public/src/js/loader.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/src/css/main.css b/public/src/css/main.css index f2c6be7..f283965 100644 --- a/public/src/css/main.css +++ b/public/src/css/main.css @@ -237,7 +237,7 @@ kbd{ } #version a { - color: inherit; + color: #FFFFFF; text-decoration: none; cursor: default; } \ No newline at end of file diff --git a/public/src/js/loader.js b/public/src/js/loader.js index 68362e5..275b704 100644 --- a/public/src/js/loader.js +++ b/public/src/js/loader.js @@ -18,15 +18,18 @@ class Loader{ this.ajax("/version.json").then(function(resp){ var versionLink = document.createElement("a") versionLink.setAttribute("target", "_blank") + versionLink.setAttribute("class", "stroke-sub") try { var parsed = JSON.parse(resp) versionLink.setAttribute("href", "https://github.com/bui/taiko-web/commit/" + parsed.commit) - versionLink.appendChild(document.createTextNode("taiko-web ver." + parsed.version + " (" + parsed.commit_short + ")")) + var ver_string = "taiko-web ver." + parsed.version + " (" + parsed.commit_short + ")" } catch(e) { versionLink.setAttribute("href", "https://github.com/bui/taiko-web") - versionLink.appendChild(document.createTextNode("taiko-web (unknown version)")) + var ver_string = "taiko-web (unknown version)" } finally { + versionLink.appendChild(document.createTextNode(ver_string)) + versionLink.setAttribute("alt", ver_string) versionTag.appendChild(versionLink) } })