mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
test
This commit is contained in:
@@ -40,6 +40,13 @@ def goto(location):
|
|||||||
output = [location, flask.render_template(pagevars["template"], var=pagevars), pagevars['title']]
|
output = [location, flask.render_template(pagevars["template"], var=pagevars), pagevars['title']]
|
||||||
socketio.emit("goto", output, to=sid)
|
socketio.emit("goto", output, to=sid)
|
||||||
|
|
||||||
|
@socketio.on("socketio/goto")
|
||||||
|
def goto(location):
|
||||||
|
sid = flask.request.sid
|
||||||
|
pagevars = pages[location]
|
||||||
|
output = [location, flask.render_template(pagevars["template"], var=pagevars), pagevars['title']]
|
||||||
|
socketio.emit("goto", f"<h1>AAAAAAAAAAAAAA</h1>{output}", to=sid)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def home():
|
def home():
|
||||||
|
|||||||
Reference in New Issue
Block a user