-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.html
103 lines (75 loc) · 3.56 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DEMO</title>
<link rel="shortcut icon" href="./images/GreenTech.png" />
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="demoStyle.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
</head>
<body>
<!-- HEADER AND NAVIGATION OPTION -->
<header>
<a href="./index.html" class="logo">GreenTech</a>
<div class="menu-toggle"></div>
<nav>
<ul>
<li><a href="./index.html">Home</a></li>
<li><a href="./monitor.html">Monitor</a></li>
<li><a href="./controlUnit.html">Control</a></li>
<li><a href="./service.html">Service</a></li>
<li><a href="./about.html" class="active">About</a></li>
</ul>
</nav>
<div class="clearfix"></div>
</header>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.menu-toggle').click(function(){
$('.menu-toggle').toggleClass('active')
$('nav').toggleClass('active')
})
})
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<p>Greenhouse demo settings</p>
<p>Enter values</p>
<div class="demoDiv">
<div><input type="number" id="auto" onchange="auto(value)" > auto</input></div>
<div><input type="number" id="maxtemp" onchange="maxtemp(value)" > maxtemp</input></div>
<div><input type="number" id="mintemp" onchange="mintemp(value)" > mintemp</input></div>
<div><input type="number" id="maxinten" onchange="maxinten(value)"> maxinten</input></div>
<div><input type="number" id="mininten" onchange="mininten(value)"> mininten</input></div>
<div><input type="number" id="maxmoist" onchange="maxmoist(value)"> maxmoist</input></div>
<div><input type="number" id="minmoist" onchange="minmoist(value)"> minmoist</input></div>
</div>
<p id="demo"></p>
<iframe width="100%" height="500px" frameborder="0" src="https://app.ubidots.com/ubi/public/getdashboard/zk-#################" style="padding-top: 300px;"></iframe>
<script type="text/javascript">
function auto(value){
$.post("https://api.thingspeak.com/apps/thinghttp/send_request?api_key=##############&auto="+value);
}
function maxtemp(value) {
$.post("https://api.thingspeak.com/apps/thinghttp/send_request?api_key=##############&maxtemp="+value);
}
function mintemp(value){
$.post("https://api.thingspeak.com/apps/thinghttp/send_request?api_key=##############&mintemp="+value);
}
function minmoist(value){
$.post("https://api.thingspeak.com/apps/thinghttp/send_request?api_key=##############&minmoist="+value);
}
function maxmoist(value){
$.post("https://api.thingspeak.com/apps/thinghttp/send_request?api_key=##############&maxmoist="+value);
}
function maxinten(value){
$.post("https://api.thingspeak.com/apps/thinghttp/send_request?api_key=##############&maxinten="+value);
}
function mininten(value){
$.post("https://api.thingspeak.com/apps/thinghttp/send_request?api_key=##############&mininten="+value);
}
</script>
</body>
</html>