-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
52 lines (45 loc) · 1.69 KB
/
index.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
<!DOCTYPE html>
<!-- SPDX-License-Identifier: MPL-2.0 -->
<!--
Copyright 2018-present Samsung Electronics France SAS, and other contributors
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.*
-->
<html lang="en">
<head>
<meta name="theme-color" content="#305067"/>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
<meta name="description" content="WebThings" />
<title>WebThings</title>
<link rel="icon"
type="image/png"
href="images/favicon-16x16.png">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!-- TODO add manifest here -->
<link rel="manifest" href="manifest.json">
</head>
<body>
<div id="main" class="page">
<div class="contents">
<h1><span>Web</span>Things</h1>
<form name="form">
<!--<input type="button" onclick="main()" value="Run" /> -->
<input type="button" id="run" value="Run" />
<input type="button" id="clear" value="Clear" />
<input type="button" id="forget" value="Forget" />
<label for="url">Base URL <span>e.g. https://$name.mozilla-iot.org</span></label>
<input type="text" id="url" name="url" value="http://localhost:8080" onchange="localStorage['url'] = this.value" /></label>
<label for="endpoint">Endpoint <span>e.g. /things/0/properties/on</span></label>
<input type="text" id="endpoint" name="endpoint" value="/things" />
<div class="textarea">
<label for="textarea">Console</label>
<textarea id="textarea" rows="8" cols="40" name=console></textarea>
</div>
</form>
</div>
</div>
<script src="js/index.js"></script>
</body>
</html>