Update templates/teacher_paper_gen.html
Browse files
templates/teacher_paper_gen.html
CHANGED
|
@@ -238,7 +238,7 @@
|
|
| 238 |
</div>
|
| 239 |
<script>
|
| 240 |
document.addEventListener("DOMContentLoaded", function() {
|
| 241 |
-
const questionsText
|
| 242 |
const parts = questionsText.split("Part ");
|
| 243 |
const generatedPaper = document.getElementById("generated-paper");
|
| 244 |
parts.forEach((partText, index) => {
|
|
@@ -264,7 +264,7 @@
|
|
| 264 |
</div>
|
| 265 |
<script>
|
| 266 |
function openDriveLink() {
|
| 267 |
-
window.open('https://drive.google.com/drive/folders/
|
| 268 |
}
|
| 269 |
</script>
|
| 270 |
</body>
|
|
|
|
| 238 |
</div>
|
| 239 |
<script>
|
| 240 |
document.addEventListener("DOMContentLoaded", function() {
|
| 241 |
+
const questionsText = `{{ questions|tojson }}`;
|
| 242 |
const parts = questionsText.split("Part ");
|
| 243 |
const generatedPaper = document.getElementById("generated-paper");
|
| 244 |
parts.forEach((partText, index) => {
|
|
|
|
| 264 |
</div>
|
| 265 |
<script>
|
| 266 |
function openDriveLink() {
|
| 267 |
+
window.open('https://drive.google.com/drive/folders/example-link', '_blank');
|
| 268 |
}
|
| 269 |
</script>
|
| 270 |
</body>
|