forked from marva/sumorobot-web
add youtube stream
This commit is contained in:
parent
41a599ad5e
commit
1c56bf56ec
@ -14,6 +14,9 @@
|
||||
<script src="sumorobot.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="stream">
|
||||
<iframe id="youtube" width="100%" height="100%" src="https://www.youtube.com/embed/A6ygjaTbNRM?autoplay=1" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
<div id="panel">
|
||||
<object type="image/svg+xml" data="logo.svg">
|
||||
RoboKoding logo
|
||||
|
@ -79,6 +79,15 @@ input.has-error {
|
||||
text-align: center;
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
#stream {
|
||||
z-index: 35;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: none;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
@media screen and (max-width: 1000px) {
|
||||
td#blocklyArea {
|
||||
width: 99%;
|
||||
|
@ -339,6 +339,8 @@ window.onload = function() {
|
||||
updateControlPanel();
|
||||
$("#panel").toggle();
|
||||
break;
|
||||
case 76: // l
|
||||
$("#stream").toggle();
|
||||
case 82: // r
|
||||
$("#remote-control").click();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user