Commit 09a32355 authored by LoveEevee's avatar LoveEevee

Hide version link url from status bar

parent faff06bb
...@@ -236,11 +236,14 @@ kbd{ ...@@ -236,11 +236,14 @@ kbd{
opacity: 0.7; opacity: 0.7;
font-family: TnT, Meiryo, sans-serif; font-family: TnT, Meiryo, sans-serif;
} }
#version:hover{
opacity: 1;
}
#version a { #version-link{
color: #FFFFFF; color: #FFFFFF;
text-decoration: none; text-decoration: none;
cursor: default; pointer-events: none;
} }
.version-hide{ .version-hide{
......
...@@ -10,6 +10,11 @@ class Loader{ ...@@ -10,6 +10,11 @@ class Loader{
pageEvents.add(root, ["touchstart", "touchmove", "touchend"], event => { pageEvents.add(root, ["touchstart", "touchmove", "touchend"], event => {
event.preventDefault() event.preventDefault()
}) })
var versionDiv = document.getElementById("version")
var versionLink = document.getElementById("version-link")
pageEvents.add(versionDiv, ["click", "touchend"], () => {
versionLink.click()
})
} }
run(page){ run(page){
this.promises = [] this.promises = []
......
...@@ -59,9 +59,9 @@ ...@@ -59,9 +59,9 @@
<div id="screen"></div> <div id="screen"></div>
<div id="version"> <div id="version">
{% if version %} {% if version %}
<a href="https://github.com/bui/taiko-web/commit/{{version.commit}}" target="_blank" class="stroke-sub" alt="taiko-web ver.{{version.version}} ({{version.commit_short}})">taiko-web ver.{{version.version}} ({{version.commit_short}})</a> <a href="https://github.com/bui/taiko-web/commit/{{version.commit}}" target="_blank" id="version-link" class="stroke-sub" alt="taiko-web ver.{{version.version}} ({{version.commit_short}})">taiko-web ver.{{version.version}} ({{version.commit_short}})</a>
{% else %} {% else %}
<a href="https://github.com/bui/taiko-web" target="_blank" class="stroke-sub" alt="taiko-web (unknown version)">taiko-web (unknown version)</a> <a href="https://github.com/bui/taiko-web" target="_blank" id="version-link" class="stroke-sub" alt="taiko-web (unknown version)">taiko-web (unknown version)</a>
{% endif %} {% endif %}
</div> </div>
<script src="/src/js/main.js?{{version.commit_short}}"></script> <script src="/src/js/main.js?{{version.commit_short}}"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment