-
Notifications
You must be signed in to change notification settings - Fork 2
/
controlUnit.html
143 lines (129 loc) · 5.26 KB
/
controlUnit.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GreenTech|Controll Section</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="buttonStyle.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">
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="./plantSelection.js" type="text/javascript"></script>
</head>
<body onload="defaultFunc('plantSelect','choiceButton')">
<!-- 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" class="active">Control</a></li>
<li><a href="./service.html">Service</a></li>
<li><a href="./about.html">About</a></li>
</ul>
</nav>
<div class="clearfix"></div>
</header>
<script type="text/javascript">
$(document).ready(function () {
$('.menu-toggle').click(function(){
$('.menu-toggle').toggleClass('active')
$('nav').toggleClass('active')
})
})
</script>
<!-- Auto Or Manual checkBox-->
<div class="autoOrManual">
<section title=".slideThree">
<!-- .slideThree -->
<div class="slideThree">
<input type="checkbox" value="None" id="slideThree" name="check" onchange="func('plantSelect','choiceButton',this)" />
<label for="slideThree"></label>
</div>
<!-- end .slideThree -->
</section>
</div>
<script type="text/javascript" src="./autoOrManual.js"></script>
<!-- PLANT SELECTION -->
<div id="plantSelect" style="display: none">
Please Select the Plant
<div class="plantOption">
<select onchange="loadcrop(this.value);ShowHideDiv(this.value)" name="slct" id="slct">
<option id="not" selected>Choose an option</option>
<option value="Tomato">Tomato</option>
<option value="Brinjal">Brinjal</option>
<option value="Capsicum">Capsicum</option>
</select>
</div>
</div>
<script type="text/javascript" src="./plantSelection.js"></script>
<!-- BUTTONS -->
<div id="choiceButton" style="display: block;">
<script type="text/javascript" src="./buttonUpdate.js"></script>
<div class="lightLabel">LIGHT</div>
<label class='toggle-label'>
<input type='checkbox' id="light" onclick=lighttog() />
<span class='back'>
<span class='toggle'></span>
<span class='label on'>ON</span>
<span class='label off'>OFF</span>
</span>
</label>
<div class="lightLabel">WATER SUPPLY</div>
<label class='toggle-label'>
<input type='checkbox' id="pump" onclick=pumptog() />
<span class='back'>
<span class='toggle'></span>
<span class='label 1'>ON</span>
<span class='label off'>OFF</span>
</span>
</label>
<div class="lightLabel">COOLING FAN</div>
<label class='toggle-label'>
<input type='checkbox' id="fan" onchange=fantog() />
<span class='back'>
<span class='toggle'></span>
<span class='label 1'>ON</span>
<span class='label off'>OFF</span>
</span>
</label>
</div>
<!-- Description of the plant -->
<div class="descriptionList" id="descriptionList">
<div id="hideShowTomato" style="display: none;"> <!-- Tomato Description -->
<img id="pTomato" src="./images/tomato.png">
<h3>Description of the Plant </h3>
<p>Temperature : 10C - 35C</p>
<p>Humidity : 65% - 75%</p>
<ol style="font-style: bold">Normal Diseases</ol>
<li>Septoria leaf Spot</li>
<li>Bactirial Leaf Spot</li>
<li style="">Early Bright</li>
</div>
<div id="hideShowBrinjal" style="display: none;"> <!-- Brinjal Description -->
<img id="pBrinjal" src="./images/bringal.png">
<h3>Description of the Plant </h3>
<p>Temperature : 30C</p>
<p>Humidity :</p>
<ol>Normal Diseases</ol>
<li>--</li>
<li>--</li>
<li>--</li>
</div>
<div id="hideShowCapsicum" style="display: none;"> <!-- Capsicum Description -->
<img id="pCapsicum" src="./images/capsicum.png">
<h3>Description of the Plant </h3>
<p>Temperature : 40C</p>
<p>Humidity :</p>
<ol>Normal Diseases</ol>
<li>--</li>
<li>--</li>
<li>--</li>
</div>
</div>
</body>
</html>