Spaces:
Runtime error
Runtime error
Commit
·
bf79e80
1
Parent(s):
640004c
update
Browse files- templates/experiment.html +2 -2
- templates/index.html +0 -4
templates/experiment.html
CHANGED
|
@@ -145,11 +145,11 @@
|
|
| 145 |
</div>
|
| 146 |
<div class="buttons">
|
| 147 |
<form action="{{ url_for('feedback') }}" method="post" style="width: 48%;" onsubmit="showLoader()">
|
| 148 |
-
<input type="hidden" name="
|
| 149 |
<button type="submit" name="feedback" value="{{ method_a }}">{{ method_a }}</button>
|
| 150 |
</form>
|
| 151 |
<form action="{{ url_for('feedback') }}" method="post" style="width: 48%;" onsubmit="showLoader()">
|
| 152 |
-
<input type="hidden" name="
|
| 153 |
<button type="submit" name="feedback" value="{{ method_b }}">{{ method_b }}</button>
|
| 154 |
</form>
|
| 155 |
</div>
|
|
|
|
| 145 |
</div>
|
| 146 |
<div class="buttons">
|
| 147 |
<form action="{{ url_for('feedback') }}" method="post" style="width: 48%;" onsubmit="showLoader()">
|
| 148 |
+
<input type="hidden" name="username" value="{{ username }}">
|
| 149 |
<button type="submit" name="feedback" value="{{ method_a }}">{{ method_a }}</button>
|
| 150 |
</form>
|
| 151 |
<form action="{{ url_for('feedback') }}" method="post" style="width: 48%;" onsubmit="showLoader()">
|
| 152 |
+
<input type="hidden" name="username" value="{{ username }}">
|
| 153 |
<button type="submit" name="feedback" value="{{ method_b }}">{{ method_b }}</button>
|
| 154 |
</form>
|
| 155 |
</div>
|
templates/index.html
CHANGED
|
@@ -114,7 +114,6 @@
|
|
| 114 |
</style>
|
| 115 |
<script>
|
| 116 |
let selectedMethods = [];
|
| 117 |
-
|
| 118 |
function selectMethod(method) {
|
| 119 |
const index = selectedMethods.indexOf(method);
|
| 120 |
if (index > -1) {
|
|
@@ -124,9 +123,7 @@
|
|
| 124 |
} else {
|
| 125 |
return;
|
| 126 |
}
|
| 127 |
-
|
| 128 |
document.getElementById('method').value = selectedMethods.join(',');
|
| 129 |
-
|
| 130 |
const buttons = document.getElementsByClassName('method-button');
|
| 131 |
for (let button of buttons) {
|
| 132 |
if (selectedMethods.includes(button.getAttribute('data-method'))) {
|
|
@@ -136,7 +133,6 @@
|
|
| 136 |
}
|
| 137 |
}
|
| 138 |
}
|
| 139 |
-
|
| 140 |
function validateForm() {
|
| 141 |
const username = document.getElementById('username').value;
|
| 142 |
const seed = document.getElementById('seed').value;
|
|
|
|
| 114 |
</style>
|
| 115 |
<script>
|
| 116 |
let selectedMethods = [];
|
|
|
|
| 117 |
function selectMethod(method) {
|
| 118 |
const index = selectedMethods.indexOf(method);
|
| 119 |
if (index > -1) {
|
|
|
|
| 123 |
} else {
|
| 124 |
return;
|
| 125 |
}
|
|
|
|
| 126 |
document.getElementById('method').value = selectedMethods.join(',');
|
|
|
|
| 127 |
const buttons = document.getElementsByClassName('method-button');
|
| 128 |
for (let button of buttons) {
|
| 129 |
if (selectedMethods.includes(button.getAttribute('data-method'))) {
|
|
|
|
| 133 |
}
|
| 134 |
}
|
| 135 |
}
|
|
|
|
| 136 |
function validateForm() {
|
| 137 |
const username = document.getElementById('username').value;
|
| 138 |
const seed = document.getElementById('seed').value;
|