-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (84 loc) · 3.14 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
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
<head>
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.css" />
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="./src/macros.js"></script>
<script src="./src/macros2.js"></script>
<script src="./src/db_writer2.js"></script>
<script src="./src/tickets.js"></script>
<link rel="stylesheet" type="text/css" href="./src/custom.css">
</head>
<body class="body">
<br />
<div class=container>
<div class="row no-gutters">
<div class="col-12 col-sm-6 col-md-8">
<h2>Dynamic macro</h2>
<input type="text" placeholder="Eks: LightsOff" id="macro" />
<button id="add" class="btn btn-warning" onclick="runMacro2()">
Run custom macro
</button>
</div>
<div class="col-10 col-md-10">
<h2>Buttons:</h2>
<button class="btn btn-danger" mry-10 onclick="runMacro()">Lights Off</button>
<button class="btn btn-danger" mry-10 onclick="runMacro()">Lights Off</button>
<button class="btn btn-danger" mry-2 onclick="runMacro()">Lights Off</button>
<button class="btn btn-danger" mry-2 onclick="runMacro()">Lights Off</button>
</div>
<h3>Locked macro</h3>
<button class="btn btn-success" onclick="runMacro()">Lights Off</button>
<br />
<br />
<br />
<br />
<h3>"Dynamic macro, run macroName"</h3>
<input type="text" placeholder="Eks: LightsOff" id="macro" />
<button id="add" class="btn btn-warning" onclick="runMacro2()">
Run custom macro
</button>
<br />
<p id="connectedTo" type="text" class="font-weight-bold"></p>
<p id="macroSent" type="text"></p>
<br />
<br />
<br />
<h3>"Add macro to database"</h3>
<input type="text" placeholder="Eks: LightsOff" id="macroName1" />
<input type="text" placeholder="Eks: LightsOff" id="macroName2" />
<button id="add" class="btn btn-warning" onclick="writeMacro()">
Add Macro To DB
</button>
<br />
<br />
<br />
<br />
<button class="btn btn-success">
<a style="color:white" href="pages/dash.html">DASHBOARD</a>
</button>
<button class="btn btn-danger">
<a style="color:rgb(248, 245, 245)" href="pages/sql.html">SQL DATABASE</a>
</button>
<button class="btn btn-warning">
<a style="color:rgb(248, 245, 245)" href="pages/ButtonGen.html">BUTTON DB</a>
</button>
<button class="btn btn-danger">
<a style="color:rgb(248, 245, 245)" href="pages/FireBase.html">FIREBASE</a>
</button>
<br />
<br />
<br />
<button class="btn btn-danger">
<a style="color:rgb(248, 245, 245)" href="index2.html">INDEX 2</a>
</button>
<br />
<h3>Test triggers</h3>
<button class="btn btn-danger" onclick="runMacro()">Lights Off</button>
<button class="btn btn-danger" onclick="runMacro()">Lights Off</button>
<button class="btn btn-danger" onclick="runMacro()">Lights Off</button>
<button class="btn btn-danger" onclick="runMacro()">Lights Off</button>
</div>
</div>
<br />
<br />
<body></body>
</body>