mirror of
https://github.com/PotentiaRobotics/robot-gui.git
synced 2025-04-09 14:20:16 -04:00
combined drops and made css better
This commit is contained in:
parent
efa0c7640a
commit
01bf537113
1
app.py
1
app.py
|
@ -16,6 +16,7 @@ css.build()
|
|||
def homepage():
|
||||
return render_template("index.html")
|
||||
|
||||
#Modify to get data
|
||||
@app.route('/api/datapoint')
|
||||
def api_datapoint():
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
.dropdown {
|
||||
position: relative;
|
||||
background-color: #223344;
|
||||
width: 70%;
|
||||
width: 87%;
|
||||
text-align: center;
|
||||
height: 7vh;
|
||||
display: flex;
|
||||
|
|
|
@ -28,8 +28,95 @@
|
|||
</div>
|
||||
<div class="main-element e2">
|
||||
<div class="dropdowns">
|
||||
{% include "drop1.html" %} {% include "drop2.html" %} {%
|
||||
include "drop3.html" %}
|
||||
<div class="dropdown d1">
|
||||
<img
|
||||
src="{{url_for('static', filename='images/img-knee.png')}}"
|
||||
class="img-part"
|
||||
/>
|
||||
<p class="measure load1" id="load1">NaN</p>
|
||||
|
||||
<form
|
||||
action='{{ url_for("sendData")}}'
|
||||
class="enter-angle"
|
||||
method="POST"
|
||||
>
|
||||
<label for="rot">Input</label>
|
||||
<input
|
||||
class="inputbox"
|
||||
type="text"
|
||||
id="rot"
|
||||
name="rot"
|
||||
/>
|
||||
<input type="submit" value="Enter" />
|
||||
</form>
|
||||
|
||||
<p class="units">Deg</p>
|
||||
<select name="input" id="unit">
|
||||
<option value="Position">Position</option>
|
||||
<option value="Percent">Percent</option>
|
||||
<option value="Velocity">Velocity</option>
|
||||
<option value="Voltage">Voltage</option>
|
||||
<option value="Force">Force</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="dropdown d2">
|
||||
<img
|
||||
src="{{url_for('static', filename='images/img-knee.png')}}"
|
||||
class="img-part"
|
||||
/>
|
||||
<p class="measure load2" id="load2">NaN</p>
|
||||
<form
|
||||
action='{{ url_for("sendData")}}'
|
||||
class="enter-angle"
|
||||
method="POST"
|
||||
>
|
||||
<label for="rot">Input</label>
|
||||
<input
|
||||
class="inputbox"
|
||||
type="text"
|
||||
id="rot"
|
||||
name="rot"
|
||||
/>
|
||||
<input type="submit" value="Enter" />
|
||||
</form>
|
||||
<p class="units">Deg</p>
|
||||
<select name="input" id="unit">
|
||||
<option value="Position">Position</option>
|
||||
<option value="Percent">Percent</option>
|
||||
<option value="Velocity">Velocity</option>
|
||||
<option value="Voltage">Voltage</option>
|
||||
<option value="Force">Force</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="dropdown d3">
|
||||
<img
|
||||
src="{{url_for('static', filename='images/img-knee.png')}}"
|
||||
class="img-part"
|
||||
/>
|
||||
<p class="measure load3" id="load3">NaN</p>
|
||||
<form
|
||||
action='{{ url_for("sendData")}}'
|
||||
class="enter-angle"
|
||||
method="POST"
|
||||
>
|
||||
<label for="rot">Input</label>
|
||||
<input
|
||||
class="inputbox"
|
||||
type="text"
|
||||
id="rot"
|
||||
name="rot"
|
||||
/>
|
||||
<input type="submit" value="Enter" />
|
||||
</form>
|
||||
<p class="units">Deg</p>
|
||||
<select name="input" id="unit">
|
||||
<option value="Position">Position</option>
|
||||
<option value="Percent">Percent</option>
|
||||
<option value="Velocity">Velocity</option>
|
||||
<option value="Voltage">Voltage</option>
|
||||
<option value="Force">Force</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel2-btns">
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<div class="dropdown d1">
|
||||
<img
|
||||
src="{{url_for('static', filename='images/img-knee.png')}}"
|
||||
class="img-part"
|
||||
/>
|
||||
<p class="measure load1" id="load1">NaN</p>
|
||||
|
||||
<form action='{{ url_for("sendData")}}' class="enter-angle" method="POST">
|
||||
<label for="rot">Input</label>
|
||||
<input class="inputbox" type="text" id="rot" name="rot" />
|
||||
<input type="submit" value="Enter" />
|
||||
</form>
|
||||
|
||||
<p class="units">Deg</p>
|
||||
<select name="input" id="unit">
|
||||
<option value="Position">Position</option>
|
||||
<option value="Percent">Percent</option>
|
||||
<option value="Velocity">Velocity</option>
|
||||
<option value="Voltage">Voltage</option>
|
||||
<option value="Force">Force</option>
|
||||
</select>
|
||||
</div>
|
|
@ -1,20 +0,0 @@
|
|||
<div class="dropdown d2">
|
||||
<img
|
||||
src="{{url_for('static', filename='images/img-knee.png')}}"
|
||||
class="img-part"
|
||||
/>
|
||||
<p class="measure load2" id="load2">NaN</p>
|
||||
<form action='{{ url_for("sendData")}}' class="enter-angle" method="POST">
|
||||
<label for="rot">Input</label>
|
||||
<input class="inputbox" type="text" id="rot" name="rot" />
|
||||
<input type="submit" value="Enter" />
|
||||
</form>
|
||||
<p class="units">Deg</p>
|
||||
<select name="input" id="unit">
|
||||
<option value="Position">Position</option>
|
||||
<option value="Percent">Percent</option>
|
||||
<option value="Velocity">Velocity</option>
|
||||
<option value="Voltage">Voltage</option>
|
||||
<option value="Force">Force</option>
|
||||
</select>
|
||||
</div>
|
|
@ -1,20 +0,0 @@
|
|||
<div class="dropdown d3">
|
||||
<img
|
||||
src="{{url_for('static', filename='images/img-knee.png')}}"
|
||||
class="img-part"
|
||||
/>
|
||||
<p class="measure load3" id="load3">NaN</p>
|
||||
<form action='{{ url_for("sendData")}}' class="enter-angle" method="POST">
|
||||
<label for="rot">Input</label>
|
||||
<input class="inputbox" type="text" id="rot" name="rot" />
|
||||
<input type="submit" value="Enter" />
|
||||
</form>
|
||||
<p class="units">Deg</p>
|
||||
<select name="input" id="unit">
|
||||
<option value="Position">Position</option>
|
||||
<option value="Percent">Percent</option>
|
||||
<option value="Velocity">Velocity</option>
|
||||
<option value="Voltage">Voltage</option>
|
||||
<option value="Force">Force</option>
|
||||
</select>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user