This commit is contained in:
Baptiste 2023-12-28 15:56:01 +01:00
parent e70e9a09af
commit a6c0948f72
5 changed files with 70 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lester</title>
<style type="text/css">
body {
margin:0;
padding:0;
text-align:center;
}
.button {
display:block;
padding:3px;
width:90%;
text-align:center;
margin:4px;
cursor:pointer;
}
.yellow {
background-color: yellow;
}
.red {
background-color: red;
}
.blue {
background-color: blue;
}
.green {
background-color: green;
}
</style>
</head>
<body>
<a onclick="window.parent.Lester(2,null)" class="button yellow">FULL LIFE</a>
<a onclick="window.parent.Lester(1,[363,282,5])" class="button green">SAFE ZONE</a>
<a onclick="window.parent.Lester(1,[200,100,0])" class="button green">MAP 0</a>
<a onclick="window.parent.Lester(1,[516,789,1])" class="button green">MAP 1</a>
<a onclick="window.parent.Lester(1,[484,898,2])" class="button green">MAP 2</a>
<a onclick="window.parent.Lester(1,[583,810,3])" class="button green">MAP 3</a>
<a onclick="window.parent.Lester(1,[50,852,4])" class="button green">MAP 4</a>
<a onclick="window.parent.Lester(1,[200,147,5])" class="button green">MAP 5</a>
<a onclick="window.parent.Lester(1,[131,313,6])" class="button green">MAP 6</a>
<a onclick="window.parent.Lester(1,[917,547,7])" class="button green">MAP 7</a>
<a onclick="window.parent.Lester(1,[1056,449,8])" class="button green">MAP 8</a>
<a onclick="window.parent.Lester(1,[871,856,9])" class="button green">MAP 9</a>
<a onclick="window.parent.Lester(1,[58,269,10])" class="button green">MAP 10</a>
<a onclick="window.parent.Lester(1,[276,860,11])" class="button green">MAP 11</a>
</body>
</html>

View file

@ -43,6 +43,7 @@
<img src="./assets/phone/facebook.png" class="icon" id="appli-fb">
<img src="./assets/phone/utube.png" class="icon" id="appli-utube">
<img src="./assets/phone/gogole.png" class="icon" id="appli-goo">
<img src="./assets/phone/lester.jpg" class="icon" id="appli-lest">
</div>
<iframe id="webview" style="overflow: hidden;"></iframe>
<div id="chatInputDiv">

View file

@ -197,4 +197,18 @@ function Donjon() {
}
}
}
}
function Lester(type, array) {
switch(type) {
case 1:
player.x=array[0]
player.y=array[1]
player.z=array[2]
net.update(player);
break;
case 2:
player.health=defaulthealth
break;
}
}

View file

@ -38,6 +38,10 @@ class Phone{
document.getElementById("appli-goo").addEventListener("click", (e) => {
this.webviewName = "Gogole"
this.changeWindow("https://mrdoob.com/projects/chromeexperiments/google-space/")
});
document.getElementById("appli-lest").addEventListener("click", (e) => {
this.webviewName = "Lester"
this.changeWindow("assets/phone/webview/lester.html")
});
}