-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
87 lines (78 loc) · 2.47 KB
/
main.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
<!--
*
* Project Name: Forest Conservation Robot(e-Yantra Project)
* Author List: Mehta Raj Vinodbhai
Purohit Mahima
* Filename: main.html(python file)
* Functions: <head>,<body>
* Global Variables: none
-->
<!DOCTYPE html>
<!--
* Function Name: <head>
* Input: none
* Output: style of the page and title Robo_Control
* Logic: button,page style with attributes like backgraoundcolor,color,etc
* Example Call:
-->
<head>
<title>Robo_Control</title>
<style>
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 25px;
text-align: center;
font-size: 16px;
cursor: pointer;
}
.button:hover {
background-color:lightblue;
}
</style>
</head>
<!--
* Function Name: <bodt>
* Input: click event
* Output: fire the url to the webserver using href tag
* Logic: main execution of the web control page to the event to call the webserver action
* Example Call:
-->
<body>
<div style="text-align:center">
<span style="display:inline-block;padding:5px;border:1px solid #fc0; font-size: 140%;font-weight: bold;">
<h2> Forest Conservation Robot </h2>
<iframe width="560" height="250" src="https://www.youtube.com/embed/JRSTAyes50c" autoplay;></iframe>
<h3>Fire != {{button}} aleart</h3>
<a href="/ledRed/on" class="button">TURN ON LED</a>
<img hspace="20" style="padding-left: 100px">
<a href="/ledRed/off"class="button">TURN OFF LED</a>
<br><br>
<a href="/forward/forward" class="button">Forward</a>
<br><br><br>
<img hspace="10" style="padding-left: 5px">
<a href="/left/left" class="button">Left</a>
<img hspace="20" style="padding-left: 10px">
<a href="/stop/stop" class="button">Stop</a>
<img hspace="20" style="padding-left: 10px">
<a href="/right/right" class="button">Right</a>
<img hspace="10" style="padding-left: 5px">
<br><br><br>
<a href="/backward/backward" class="button">Backward</a>
<br>
<p>Motor speed control</p>
<img hspace="5" style="padding-left: 20px">
<a href="/decrease/decrease" class="button">--</a>
<img hspace="10" style="padding-left: 20px">
<a href="/enablei2c/on" class="button">Automation</a>
<img hspace="10" style="padding-left: 20px">
<a href="/enablei2c/off" class="button">Mannual</a>
<img hspace="10" style="padding-left: 20px">
<a href="/increase/increase" class="button">++</a>
<img hspace="5" style="padding-left: 5px">
<br><br>
</span>
</div>
</body>
</html>