mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
change version text style
This commit is contained in:
parent
62343b2f68
commit
b5e4e3fb2e
@ -237,7 +237,7 @@ kbd{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#version a {
|
#version a {
|
||||||
color: inherit;
|
color: #FFFFFF;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
@ -18,15 +18,18 @@ class Loader{
|
|||||||
this.ajax("/version.json").then(function(resp){
|
this.ajax("/version.json").then(function(resp){
|
||||||
var versionLink = document.createElement("a")
|
var versionLink = document.createElement("a")
|
||||||
versionLink.setAttribute("target", "_blank")
|
versionLink.setAttribute("target", "_blank")
|
||||||
|
versionLink.setAttribute("class", "stroke-sub")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var parsed = JSON.parse(resp)
|
var parsed = JSON.parse(resp)
|
||||||
versionLink.setAttribute("href", "https://github.com/bui/taiko-web/commit/" + parsed.commit)
|
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) {
|
} catch(e) {
|
||||||
versionLink.setAttribute("href", "https://github.com/bui/taiko-web")
|
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 {
|
} finally {
|
||||||
|
versionLink.appendChild(document.createTextNode(ver_string))
|
||||||
|
versionLink.setAttribute("alt", ver_string)
|
||||||
versionTag.appendChild(versionLink)
|
versionTag.appendChild(versionLink)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user