mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 14:13:05 +02:00
Add href element to image.
This commit is contained in:
parent
84a67641a8
commit
e03e78cc8c
1 changed files with 15 additions and 1 deletions
|
@ -54,6 +54,14 @@
|
||||||
top: 0; left: 0; bottom: 0; right: 0;
|
top: 0; left: 0; bottom: 0; right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#image_button {
|
||||||
|
width: 480;
|
||||||
|
height: 720;
|
||||||
|
margin: auto;
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0; bottom: 0; right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#report_problem {
|
#report_problem {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 10;
|
top: 10;
|
||||||
|
@ -67,17 +75,23 @@
|
||||||
var handControllerImageURL = null;
|
var handControllerImageURL = null;
|
||||||
var index = 0;
|
var index = 0;
|
||||||
var count = 3;
|
var count = 3;
|
||||||
|
var handControllerRefURL = https://docs.highfidelity.com/en/rc81/explore/get-started/vr-controls.html#vr-controls;
|
||||||
|
var keyboardRefURL = https://docs.highfidelity.com/en/rc81/explore/get-started/desktop.html#movement-controls;
|
||||||
|
var gamepadRefURL = https://docs.highfidelity.com/en/rc81/explore/get-started/vr-controls.html#gamepad;
|
||||||
|
|
||||||
function showKbm() {
|
function showKbm() {
|
||||||
document.getElementById("main_image").setAttribute("src", "img/tablet-help-keyboard.jpg");
|
document.getElementById("main_image").setAttribute("src", "img/tablet-help-keyboard.jpg");
|
||||||
|
document.getElementById("main_image").setAttribute("href", keyboardRefURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showHandControllers() {
|
function showHandControllers() {
|
||||||
document.getElementById("main_image").setAttribute("src", handControllerImageURL);
|
document.getElementById("main_image").setAttribute("src", handControllerImageURL);
|
||||||
|
document.getElementById("main_image").setAttribute("href", handControllerRefURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showGamepad() {
|
function showGamepad() {
|
||||||
document.getElementById("main_image").setAttribute("src", "img/tablet-help-gamepad.jpg");
|
document.getElementById("main_image").setAttribute("src", "img/tablet-help-gamepad.jpg");
|
||||||
|
document.getElementById("main_image").setAttribute("href", gamepadRefURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function cycleRight() {
|
function cycleRight() {
|
||||||
|
|
Loading…
Reference in a new issue