-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasee.php
More file actions
146 lines (111 loc) · 4.44 KB
/
basee.php
File metadata and controls
146 lines (111 loc) · 4.44 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
<!DOCTYPE html>
<html>
<head>
<title>Base and Arm</title>
<link rel="stylesheet" href="s.css">
</head>
<body>
<div class="header">
<h1> The Arm</h1> <hr>
</div>
<form action="insertDB.php" method="post">
<div class="slidecontainer">
<input type="range" min="0" max="180" value="90" class="slider" name="one" id="myRange"> <!-- السلايدر الاول-->
<p>Value Motor 1 : <span id="demo"></span></p> <!-- قيمة تحريك السلايدر-->
</div>
<script> //Activate the value based on the ID for each input
var slider = document.getElementById("myRange");
var output = document.getElementById("demo");
output.innerHTML = slider.value;
slider.oninput = function() {
output.innerHTML = this.value;
}
</script>
<!-- ........................ -->
<div class="slidecontainer">
<input type="range" min="0" max="180" value="90" class="slider" name="two" id="myRange1"> <!-- السلايدر الثاني-->
<p>Value Motor 2 : <span id="demo1"></span></p> <!-- قيمة تحريك السلايدر-->
</div>
<script> //Activate the value based on the ID for each input
var slider1 = document.getElementById("myRange1");
var output1 = document.getElementById("demo1");
output1.innerHTML = slider1.value;
slider1.oninput = function() {
output1.innerHTML = this.value;
}
</script>
<!-- ........................ -->
<div class="slidecontainer">
<input type="range" min="0" max="180" value="90" class="slider" name="three" id="myRange2"> <!--السلايدر الثالث-->
<p>Value Motor 3 : <span id="demo2"></span></p> <!-- قيمة تحريك السلايدر-->
</div>
<script> //Activate the value based on the ID for each input
var slider2 = document.getElementById("myRange2");
var output2 = document.getElementById("demo2");
output2.innerHTML = slider2.value;
slider2.oninput = function() {
output2.innerHTML = this.value;
}
</script>
<!-- ........................ -->
<div class="slidecontainer">
<input type="range" min="0" max="180" value="90" class="slider" name="four" id="myRange3"> <!--السلايدر الرابع-->
<p>Value Motor 4 : <span id="demo3"></span></p> <!-- قيمة تحريك السلايدر-->
</div>
<script> //Activate the value based on the ID for each input
var slider3 = document.getElementById("myRange3");
var output3 = document.getElementById("demo3");
output3.innerHTML = slider3.value;
slider3.oninput = function() {
output3.innerHTML = this.value;
}
</script>
<!-- ........................ -->
<div class="slidecontainer">
<input type="range" min="0" max="180" value="90" class="slider" name="five" id="myRange4"> <!-- السلايدر الخامس -->
<p>Value Motor 5: <span id="demo4"></span></p>
</div>
<script>
var slider4 = document.getElementById("myRange4");
var output4 = document.getElementById("demo4");
output4.innerHTML = slider4.value;
slider4.oninput = function() {
output4.innerHTML = this.value;
}
</script>
<div class="slidecontainer">
<input type="range" min="0" max="180" value="90" class="slider" name="six" id="myRange5"> <!-- السلايدر السادس -->
<p>Value Motor 6 : <span id="demo5"></span></p>
</div>
<script>
var slider5 = document.getElementById("myRange5");
var output5 = document.getElementById("demo5");
output5.innerHTML = slider5.value;
slider5.oninput = function() {
output5.innerHTML = this.value;
}
</script>
<br><br> <br><br> <br> <br>
<input type="submit" name="submit" class="btn10" value="save"> <!-- زر حفظ القيم وارسالها لقاعدة البيانات-->
<input type="submit" name="run" class="btn10" value="run"> <!--زر التشغيل-->
</form>
<br>
<div class="base">
<h1> The Base</h1> <hr>
</div>
<div class="wrapper">
<br> <!--فورم الاتجاهات-->
<form action="insertDB.php" method="post">
<input type="submit" name="r" class="btn10" value="right">
<div class="transition"></div>
<input type="submit" name="l" class="btn10" value="left">
<div class="transition"></div>
<input type="submit" name="s" class="btn10" value="stop">
<div class="transition"></div>
<input type="submit" name="u" class="btn10" value="forward">
<div class="transition"></div>
<input type="submit" name="d" class="btn10" value="backward">
<div class="transition"></div>
</div>
</body>
</html>