Hide version link url from status bar

This commit is contained in:
LoveEevee
2018-10-13 02:52:21 +03:00
parent faff06bbbd
commit 09a3235574
3 changed files with 12 additions and 4 deletions

View File

@@ -236,11 +236,14 @@ kbd{
opacity: 0.7;
font-family: TnT, Meiryo, sans-serif;
}
#version:hover{
opacity: 1;
}
#version a {
#version-link{
color: #FFFFFF;
text-decoration: none;
cursor: default;
pointer-events: none;
}
.version-hide{

View File

@@ -10,6 +10,11 @@ class Loader{
pageEvents.add(root, ["touchstart", "touchmove", "touchend"], event => {
event.preventDefault()
})
var versionDiv = document.getElementById("version")
var versionLink = document.getElementById("version-link")
pageEvents.add(versionDiv, ["click", "touchend"], () => {
versionLink.click()
})
}
run(page){
this.promises = []