-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex1.html
154 lines (142 loc) · 6.51 KB
/
index1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<title>Android TV Remote</title>
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Expires" content="Tue, 01 Jan 1995 12:12:12 GMT">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate, post-check=0, pre-check=0">
<meta http-equiv="Cache-Control" content="max-age=0" />
<meta http-equiv="Pragma" content="no-cache">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Android TV Remote">
<meta name="theme-color" content="#0071bc" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'>
<slink rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css'>
<link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/font-awesome-line-awesome/css/all.min.css">
<slink rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">
<style>
body {
font-family: Tahoma, Arial, Helvetica, sans-serif;
text-decoration: none;
color: #ffffff;
background-color: #000000;
}
#center {
text-align: center;
}
.keycode {
display: inline-block !important;
border: 1px solid #2d63c8;
border-radius: 10px;
padding: 4px 8px;
}
.button1 {
color: #ffffff;
background-color: #000000;
border: 1px solid #2d63c8;
border-radius: 8px;
padding: 0px 0px;
width: 55px;
height: 55px;
margin: 0px;
cursor: pointer
}
.button1:hover {
color: #2d63c8;
background-color: #ffffff;
}
.button2 {
color: #ffffff;
background-color: #000000;
border: 1px solid #2d63c8;
border-radius: 8px;
padding: 0px 0px;
width: 55px;
height: 55px;
margin: 0px;
cursor: pointer
}
.button2:hover {
color: #2d63c8;
background-color: #ffffff;
}
</style>
</head>
<body>
<script>
function doCommand(cmd) {
fetch("/" + cmd)
.then(response => response.text())
.then((response) => {
//document.getElementById("spanId").innerText = response;
})
}
</script>
<div id=center>
<button class="button1 fas fa-power-off fa-lg" type=button onclick='doCommand("POWER")'></button>
<button class="button1 fas fa-home fa-lg" type=button onclick='doCommand("HOME")'></button>
<button class="button1 fas fa-sign-out-alt fa-lg" type=button onclick='doCommand("stop")'></button>
<button class="button1 fas fa-bars fa-lg" type=button onclick='window.location.assign("/index0");'></button>
<br>
<br>
<button class="button2 fas fa-3x" type=button onclick='doCommand("")'> </button>
<button class="button2 fas fa-caret-up fa-3x" type=button onclick='doCommand("DPAD_UP")'></button>
<button class="button2 fas fa-3x" type=button onclick='doCommand("")'> </button>
<br>
<button class="button2 fas fa-caret-left fa-3x" type=button onclick='doCommand("DPAD_LEFT")'></button>
<button class="button2 fas fa-genderless fa-3x" type=button onclick='doCommand("DPAD_CENTER")'></button>
<button class="button2 fas fa-caret-right fa-3x" type=button onclick='doCommand("DPAD_RIGHT")'></button>
<br>
<button class="button2 fas fa-3x" type=button onclick='doCommand("")'> </button>
<button class="button2 fas fa-caret-down fa-3x" type=button onclick='doCommand("DPAD_DOWN")'></button>
<button class="button2 fas fa-3x" type=button onclick='doCommand("")'> </button>
<br>
<br>
<button class="button1 fas fa-reply fa-lg" type=button onclick='doCommand("BACK")'></button>
<button class="button1 fas fa-lg" type=button onclick='doCommand("")'> </button>
<button class="button1 fas fa-lg" type=button onclick='doCommand("")'> </button>
<button class="button1 fas fa-cog fa-lg" type=button onclick='doCommand("")'></button>
<br>
<br>
<button class="button1 fas fa-2x" type=button onclick='doCommand("1")'>1</button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("2")'>2</button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("3")'>3</button>
<br>
<button class="button1 fas fa-2x" type=button onclick='doCommand("4")'>4</button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("5")'>5</button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("6")'>6</button>
<br>
<button class="button1 fas fa-2x" type=button onclick='doCommand("7")'>7</button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("8")'>8</button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("9")'>9</button>
<br>
<button class="button1 fas fa-step-backward fa-2x" type=button onclick='doCommand("media_skip_backward")'></button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("0")'>0</button>
<button class="button1 fas fa-step-forward fa-2x" type=button onclick='doCommand("media_skip_forward")'></button>
<br>
<button class="button1 fas fa-backward fa-2x" type=button onclick='doCommand("media_rewind")'></button>
<button class="button1 fas fa-play-circle fa-2x" type=button onclick='doCommand("media_play_pause")'></button>
<button class="button1 fas fa-forward fa-2x" type=button onclick='doCommand("media_fast_forward")'></button>
<br>
<button class="button1 fas fa-volume-up fa-2x" type=button onclick='doCommand("VOLUME_UP")'></button>
<button class="button1 fas fa-stop fa-2x" type=button onclick='doCommand("media_stop")'></button>
<button class="button1 fas fa-chevron-up fa-2x" type=button onclick='doCommand("CHANNEL_UP")'></button>
<br>
<button class="button1 fas fa-volume-down fa-2x" type=button onclick='doCommand("VOLUME_DOWN")'></button>
<button class="button1 fas fa-volume-mute fa-2x" type=button onclick='doCommand("MUTE")'></button>
<button class="button1 fas fa-chevron-down fa-2x" type=button onclick='doCommand("CHANNEL_DOWN")'></button>
<br>
<br>
<button class="button1 fas fa-2x" type=button onclick='doCommand("prog_red")'><font color=red>●</font></button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("prog_green")'><font color=green>●</font></button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("prog_yellow")'><font color=yellow>●</font></button>
<button class="button1 fas fa-2x" type=button onclick='doCommand("prog_blue")'><font color=blue>●</font></button>
</div>
</body>
</html>