diff --git a/app.py b/app.py index e7236b4..2170313 100644 --- a/app.py +++ b/app.py @@ -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(): diff --git a/templates/base.html b/templates/base.html index 1c7fc0b..f8da03f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -29,6 +29,7 @@ />
360
+ +Deg