Browse Source

debug info button

main
Hendrik Langer 4 years ago
parent
commit
f2bc6db505
  1. 13
      raspberry/roberto/views/frontend/templates/index.html

13
raspberry/roberto/views/frontend/templates/index.html

@ -48,6 +48,7 @@
right: 50px right: 50px
} }
.stats-box { .stats-box {
display: none;
position: absolute; position: absolute;
right: 20px; right: 20px;
top: 100px; top: 100px;
@ -71,7 +72,8 @@
<div id="controls_r"></div> <div id="controls_r"></div>
</div> </div>
<div id="controls2"> <div id="controls2">
<button id="goFS">&#x26f6</button> <button id="goFS">&#x26f6;</button>
<button id="goDebug">&#x2618;</button>
<form id="message" method="POST" action='#'> <form id="message" method="POST" action='#'>
<input type="text" name="message_data" id="message_data" placeholder="Message"> <input type="text" name="message_data" id="message_data" placeholder="Message">
<input type="submit" value="Send"> <input type="submit" value="Send">
@ -266,6 +268,15 @@ function toggleFullScreen() {
document.getElementById("goFS").style.display = "none"; document.getElementById("goFS").style.display = "none";
}, false); }, false);
var goDebug = document.getElementById("goDebug");
goDebug.addEventListener("click", function() {
var stats_box = document.querySelector(".stats-box");
if (stats_box.style.display == "none") {
stats_box.style.display = "inherit";
} else {
stats_box.style.display = "none";
}
}, false);
function getConnectionStats() { function getConnectionStats() {
if (webrtcPeerConnection) { if (webrtcPeerConnection) {

Loading…
Cancel
Save