Commit ·
e690fd1
1
Parent(s): 14404ae
click
Browse files
app.py
CHANGED
|
@@ -28,6 +28,12 @@ def greet_json():
|
|
| 28 |
src="https://code.jquery.com/jquery-3.7.1.min.js"
|
| 29 |
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
|
| 30 |
crossorigin="anonymous"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</head>
|
| 32 |
<body>"""
|
| 33 |
|
|
@@ -40,7 +46,7 @@ def greet_json():
|
|
| 40 |
char = '0'
|
| 41 |
if i in [0,3,6]:
|
| 42 |
html_content += '<br><br><br><br>'
|
| 43 |
-
html_content += '<span class="char"><span onclick="
|
| 44 |
|
| 45 |
html_content += '<br><br><br><br><br><a href="/reset">reset</a>'
|
| 46 |
|
|
|
|
| 28 |
src="https://code.jquery.com/jquery-3.7.1.min.js"
|
| 29 |
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
|
| 30 |
crossorigin="anonymous"></script>
|
| 31 |
+
<script>
|
| 32 |
+
function go(i){
|
| 33 |
+
$.get('/turn/'+i);
|
| 34 |
+
document.location.reload();
|
| 35 |
+
}
|
| 36 |
+
</script>
|
| 37 |
</head>
|
| 38 |
<body>"""
|
| 39 |
|
|
|
|
| 46 |
char = '0'
|
| 47 |
if i in [0,3,6]:
|
| 48 |
html_content += '<br><br><br><br>'
|
| 49 |
+
html_content += '<span class="char"><span onclick="go('+str(i)+')">' + char + '</span>'
|
| 50 |
|
| 51 |
html_content += '<br><br><br><br><br><a href="/reset">reset</a>'
|
| 52 |
|