Merge branch 'master' into rpicommdev

This commit is contained in:
Vrishak Vemuri 2022-11-12 15:41:23 -05:00 committed by GitHub
commit 04daf588e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

13
app.py
View File

@ -2,6 +2,7 @@
from flask import Flask, render_template, request
from flask_assets import Bundle, Environment
import jyserver.Flask as jsf
app = Flask(__name__)
@ -11,10 +12,20 @@ css = Bundle("src/main.css", output="dist/main.css")
assets.register("css", css)
css.build()
@jsf.use(app)
class App:
def __init__(self) -> None:
pass
def printinput(self):
x = self.js.document.getElementById('userInput').value
print(x)
@app.route("/")
def homepage():
return render_template("index.html")
return App.render(render_template("index.html"))
@app.route("/base.html", methods =["GET", "POST"])
def sendData():

View File

@ -28,6 +28,7 @@
/>
<p class="measure">360</p>
<form
action='{{ url_for("sendData")}}'
class="enter-angle"
@ -42,6 +43,7 @@
/>
<input type="submit" value="Enter" />
</form>
<p class="units">Deg</p>
<select name="input" id="unit">
<option value="Position">Position</option>