diff --git a/app.py b/app.py index 2170313..e7236b4 100644 --- a/app.py +++ b/app.py @@ -2,7 +2,6 @@ from flask import Flask, render_template, request from flask_assets import Bundle, Environment -import jyserver.Flask as jsf app = Flask(__name__) @@ -12,20 +11,10 @@ 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 App.render(render_template("index.html")) + return render_template("index.html") @app.route("/base.html", methods =["GET", "POST"]) def sendData(): diff --git a/templates/base.html b/templates/base.html index f8da03f..541ddb1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -29,7 +29,6 @@ /> <p class="measure">360</p> - <form action='{{ url_for("sendData")}}' class="enter-angle" @@ -61,14 +60,20 @@ class="img-part" /> <p class="measure">360</p> - <label for="fname">Input</label> - - <input - class="inputbox" - type="text" - id="fname" - name="fname" - /> + <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> <button class="button">Enter</button> <p class="units">Deg</p> <select name="input" id="unit"> @@ -86,14 +91,20 @@ class="img-part" /> <p class="measure">360</p> - <label for="fname">Input</label> - - <input - class="inputbox" - type="text" - id="fname" - name="fname" - /> + <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> <button class="button">Enter</button> <p class="units">Deg</p> <select name="input" id="unit">