enhance latest.html

This commit is contained in:
James Feng Cao 2024-05-07 09:30:31 +08:00
parent a0f510ca9a
commit e16ae4bfd9
3 changed files with 9 additions and 6 deletions

View file

@ -1,9 +1,12 @@
<script>var verCode = %1%;</script>
<script>
let verCode = %1%;
let latestV = 1048;
if( verCode>=latestV) alert("Already up to date!");
else
(function(){
let latestV = 1048;
try {
if(verCode>=latestV) {alert("Already up to date!");return;}
}catch(e){}
location.href = "https://s1.asytech.cn/s/tQrgT5kBRg8Trry/download?path=%2F&files=uweb"+
latestV + ".apk&downloadStartSecret=aisiyi";
})();
</script>
<a href="en/changelog/index.html#" onclick="{let url=location.href;let l=url.length;if(url.charCodeAt(l-1)==35)return true;let iS=url.indexOf('/',14);if(l-iS<19)return true;location.href='i:0mi:5h:'+url+'/../en/changelog/index.html';return false;}">Release notes</a>