-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.html
More file actions
165 lines (134 loc) · 4.26 KB
/
interface.html
File metadata and controls
165 lines (134 loc) · 4.26 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html>
<head>
<title>Smart Methods</title>
<style>
p{color: #8AB5DD;
font-style: italic;
font-weight: bolder ;
font-size: larger;
}
body{background-image: url(https://i.pinimg.com/originals/10/96/b9/1096b9af1e75a5b7714793866d1e2cd7.jpg);
background-size: cover;
text-align: center;
}
.slidecontainer {
width:300px;
text-align: center;
width: 100%;
}
.slider {
text-align: center;
-webkit-appearance: none;
width: 60%;
height: 15px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
border-radius: 50px;
}
.slider:hover {
opacity: 5;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
background: #d61e27;
cursor: pointer;
border-radius: 50px;
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
background: #4CAF50;
cursor: pointer;
}
.button {
margin: 25px 8px ;
width: 140px ;
height: 15px ;
padding-bottom: 25px;
font-size: 20px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: #2a6099;
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
}
.button:hover {background-color: #3d4b8c}
.button:active {
background-color: #3d4b8c;
box-shadow: 0 5px #666;
transform: translateY(4px);
</style>
</head>
<body>
<p>ARM CONTROLLER</p>
<br/>
<form action="save.php" method="post">
<div style="text-align: center; class="slidecontainer">
<p style="text-align: center; padding-right:20px;">1st motor</p>
<input type="range" name="Motor1" min="1" max="100" value="50" class="slider" id="myRange1" onchange="updateTextInput1(this.value);">
<input type="text" id="textInput1" value="">
</div>
<div style="text-align: center; class="slidecontainer">
<p style="text-align: center; padding-right:20px;">2nd motor</p>
<input type="range" name="Motor2" min="1" max="100" value="50" class="slider" id="myRange2" onchange="updateTextInput2(this.value);">
<input type="text" id="textInput2" value="">
</div>
<div style="text-align: center; class="slidecontainer">
<p style="text-align: center; padding-right:20px;">3rd motor</p>
<input type="range" name="Motor3" min="1" max="100" value="50" class="slider" id="myRange3" onchange="updateTextInput3(this.value);">
<input type="text" id="textInput3" value="">
</div>
<div style="text-align: center; class="slidecontainer">
<p style="text-align: center; padding-right:20px;">4th motor</p>
<input type="range" name="Motor4" min="1" max="100" value="50" class="slider" id="myRange4" onchange="updateTextInput4(this.value);">
<input type="text" id="textInput4" value="">
</div>
<div style="text-align: center; class="slidecontainer">
<p style="text-align: center; padding-right:20px;">5th motor</p>
<input type="range" name="Motor5" min="1" max="100" value="50" class="slider" id="myRange5" onchange="updateTextInput5(this.value);">
<input type="text" id="textInput5" value="">
</div>
<div style="text-align: center; class="slidecontainer">
<p style="text-align: center; padding-right:20px;">6th motor</p>
<input type="range" name="Motor6" min="1" max="100" value="50" class="slider" id="myRange6" onchange="updateTextInput6(this.value);">
<input type="text" id="textInput6" value="">
</div>
<br/>
<button class="button" type="submit" >SAVE</button>
</form>
<form action="view.php" method="get">
<button class="button" type="submit">SEND</button>
</form>
</body>
</html>
<script>
function updateTextInput1(val) {
document.getElementById('textInput1').value=val;
}
function updateTextInput2(val) {
document.getElementById('textInput2').value=val;
}
function updateTextInput3(val) {
document.getElementById('textInput3').value=val;
}
function updateTextInput4(val) {
document.getElementById('textInput4').value=val;
}
function updateTextInput5(val) {
document.getElementById('textInput5').value=val;
}
function updateTextInput6(val) {
document.getElementById('textInput6').value=val;
}
</script>