mirror of
https://github.com/overte-org/overte.git
synced 2025-04-27 04:16:28 +02:00
83 lines
2.6 KiB
HTML
83 lines
2.6 KiB
HTML
<!-- Copyright 2016 High Fidelity, Inc. -->
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<input type="hidden" id="version" value="1"/>
|
|
<title>Welcome to Interface</title>
|
|
|
|
<style>
|
|
body {
|
|
background: black;
|
|
width: 100%;
|
|
overflow-x: hidden;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#kbm_button {
|
|
position: absolute;
|
|
left: 70;
|
|
top: 118;
|
|
width: 297;
|
|
height: 80;
|
|
}
|
|
|
|
#hand_controllers_button {
|
|
position: absolute;
|
|
left: 367;
|
|
top: 118;
|
|
width: 267;
|
|
height: 80;
|
|
}
|
|
|
|
#game_controller_button {
|
|
position: absolute;
|
|
left: 634;
|
|
top: 118;
|
|
width: 297;
|
|
height: 80;
|
|
}
|
|
|
|
#image_area {
|
|
width: 1024;
|
|
height: 720;
|
|
margin: auto;
|
|
position: absolute;
|
|
top: 0; left: 0; bottom: 0; right: 0;
|
|
}
|
|
</style>
|
|
<script>
|
|
function showKbm() {
|
|
document.getElementById("main_image").setAttribute("src", "img/controls-help-keyboard.png");
|
|
}
|
|
function showViveControllers() {
|
|
document.getElementById("main_image").setAttribute("src", "img/controls-help-vive.png");
|
|
}
|
|
function showXboxController() {
|
|
document.getElementById("main_image").setAttribute("src", "img/controls-help-gamepad.png");
|
|
}
|
|
function load() {
|
|
console.log("In help.html: ", window.location.href);
|
|
parts = window.location.href.split("?");
|
|
if (parts.length > 0) {
|
|
var defaultTab = parts[1];
|
|
if (defaultTab == "xbox") {
|
|
showXboxController();
|
|
} else if (defaultTab == "vive") {
|
|
showViveControllers();
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="load()">
|
|
<div id="image_area">
|
|
<img id="main_image" src="img/controls-help-keyboard.png" width="1024px" height="720px"></img>
|
|
<a href="#" id="kbm_button" onmousedown="showKbm()"></a>
|
|
<a href="#" id="hand_controllers_button" onmousedown="showViveControllers()"></a>
|
|
<a href="#" id="game_controller_button" onmousedown="showXboxController()"></a>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|