Created
August 20, 2020 14:40
-
-
Save uahim/5f598a7024ac4e90aca9361a37fe6845 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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="<" class="bst" onclick='doit("prev")'> | |
</td> | |
<td> | |
<input type="button" value=">" 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