Skip to content

Instantly share code, notes, and snippets.

@uahim
Created August 20, 2020 14:40
Show Gist options
  • Save uahim/5f598a7024ac4e90aca9361a37fe6845 to your computer and use it in GitHub Desktop.
Save uahim/5f598a7024ac4e90aca9361a37fe6845 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>remote control</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--
serve on the same machine that remotecontrol_firefox-netflix.sh runs on
-->
<style type="text/css">
body,html{height:100%; background:#000000}
input{font-size:1.8em;}
body{
font-family:sans-serif;
margin:0;
}
.bst{
width:100%;
height:100%;
font-weight:900;
color:white;
background:#000000
}
.bst2{
width: 100%;
height:100%;
font-weight:900;
color:white;
background:#000000
}
</style>
<script type="text/javascript">
var xmlHttp = new XMLHttpRequest();
function doit(action) {
xmlHttp.open("POST", "http://localhost:999", true);
xmlHttp.send(action);
}
</script>
</head>
<body>
<table align="center" cellpadding="4" cellspacing="4" style="height:100%;width:100%">
<tr>
<td style="height:25%">
<input type="button" value="info" class="bst" onclick='doit("info")'>
</td>
<td>
<input type="button" value="&lt;" class="bst" onclick='doit("prev")'>
</td>
<td>
<input type="button" value="&gt;" class="bst" onclick='doit("next")'>
</td>
</tr>
<tr>
<td style="height:25%">
<input type="button" value="full sc" class="bst" onclick='doit("fullscreen")'>
</td>
<td>
<input type="button" value="vol dn" class="bst" onclick='doit("voldown")'>
</td>
<td>
<input type="button" value="vol up" class="bst" onclick='doit("volup")'>
</td>
</tr>
<tr>
<td style="height:25%">
<input type="button" value=":-)" class="bst" onclick='doit("favchan")'>
</td>
<td>
<input type="button" value="min" class="bst" onclick='doit("minimize")'>
</td>
<td>
<input type="button" value="mute" class="bst" onclick='doit("mute")'>
</td>
</tr>
<tr>
<td style="height:25%">
<input type="button" value="pause" class="bst" onclick='doit("pause")'>
</td>
<td>
<input type="button" value="skip" class="bst" onclick='doit("skip")'>
</td>
<td>
<input type="button" value="(-)" class="bst" onclick='doit("nothing")'>
</td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment