mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-05 03:24:41 +00:00
uwuzu v1.3.0 new_planet
This commit is contained in:
+3
-1
@@ -1,6 +1,8 @@
|
||||
|
||||
window.onload = function(){
|
||||
var url = new URL(window.location.href);
|
||||
|
||||
var ele = document.getElementsByTagName("body")[0];
|
||||
var n = Math.floor(Math.random() * 3); // 3枚の画像がある場合
|
||||
ele.style.backgroundImage = "url(/img/titleimg/"+n+".png)";
|
||||
ele.style.backgroundImage = "url("+url.protocol+"//"+url.hostname+"/img/titleimg/"+n+".png)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user