carry over chanegs to other boxes

This commit is contained in:
FluffyCube9343 2022-11-12 15:45:52 -05:00
parent 4ae5626846
commit 6843737016
2 changed files with 29 additions and 29 deletions

13
app.py
View File

@ -2,7 +2,6 @@
from flask import Flask, render_template, request from flask import Flask, render_template, request
from flask_assets import Bundle, Environment from flask_assets import Bundle, Environment
import jyserver.Flask as jsf
app = Flask(__name__) app = Flask(__name__)
@ -12,20 +11,10 @@ css = Bundle("src/main.css", output="dist/main.css")
assets.register("css", css) assets.register("css", css)
css.build() 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("/") @app.route("/")
def homepage(): def homepage():
return render_template("index.html")
return App.render(render_template("index.html"))
@app.route("/base.html", methods =["GET", "POST"]) @app.route("/base.html", methods =["GET", "POST"])
def sendData(): def sendData():

View File

@ -29,7 +29,6 @@
/> />
<p class="measure">360</p> <p class="measure">360</p>
<form <form
action='{{ url_for("sendData")}}' action='{{ url_for("sendData")}}'
class="enter-angle" class="enter-angle"
@ -61,14 +60,20 @@
class="img-part" class="img-part"
/> />
<p class="measure">360</p> <p class="measure">360</p>
<label for="fname">Input</label> <form
action='{{ url_for("sendData")}}'
class="enter-angle"
method="POST"
>
<label for="rot">Input</label>
<input <input
class="inputbox" class="inputbox"
type="text" type="text"
id="fname" id="rot"
name="fname" name="rot"
/> />
<input type="submit" value="Enter" />
</form>
<button class="button">Enter</button> <button class="button">Enter</button>
<p class="units">Deg</p> <p class="units">Deg</p>
<select name="input" id="unit"> <select name="input" id="unit">
@ -86,14 +91,20 @@
class="img-part" class="img-part"
/> />
<p class="measure">360</p> <p class="measure">360</p>
<label for="fname">Input</label> <form
action='{{ url_for("sendData")}}'
class="enter-angle"
method="POST"
>
<label for="rot">Input</label>
<input <input
class="inputbox" class="inputbox"
type="text" type="text"
id="fname" id="rot"
name="fname" name="rot"
/> />
<input type="submit" value="Enter" />
</form>
<button class="button">Enter</button> <button class="button">Enter</button>
<p class="units">Deg</p> <p class="units">Deg</p>
<select name="input" id="unit"> <select name="input" id="unit">