From f15e26403ec7f06d4a9a8c5fa965841243d6aa9d Mon Sep 17 00:00:00 2001 From: pepinno Date: Thu, 18 Feb 2021 18:55:36 +0100 Subject: [PATCH] Test refactoring --- .../bakalarske/{test.md => test/_index.md} | 0 .../prijimaci_rizeni/bakalarske/test}/algoritmus.svg | 0 .../uchazeci/prijimaci_rizeni/bakalarske/test}/app.js | 4 ++-- .../uchazeci/prijimaci_rizeni/bakalarske/test}/data.json | 0 .../uchazeci/prijimaci_rizeni/bakalarske/test}/obvod.svg | 0 .../uchazeci/prijimaci_rizeni/bakalarske/test}/vzor.svg | 0 .../uchazeci/prijimaci_rizeni/bakalarske/test}/webit.css | 0 .../uchazeci/prijimaci_rizeni/bakalarske/test}/zamek.svg | 0 templates/bc_test.html | 8 ++++---- 9 files changed, 6 insertions(+), 6 deletions(-) rename content/uchazeci/prijimaci_rizeni/bakalarske/{test.md => test/_index.md} (100%) rename {static/bc_test/images => content/uchazeci/prijimaci_rizeni/bakalarske/test}/algoritmus.svg (100%) rename {static/bc_test => content/uchazeci/prijimaci_rizeni/bakalarske/test}/app.js (99%) rename {static/bc_test => content/uchazeci/prijimaci_rizeni/bakalarske/test}/data.json (100%) rename {static/bc_test/images => content/uchazeci/prijimaci_rizeni/bakalarske/test}/obvod.svg (100%) rename {static/bc_test/images => content/uchazeci/prijimaci_rizeni/bakalarske/test}/vzor.svg (100%) rename {static/bc_test => content/uchazeci/prijimaci_rizeni/bakalarske/test}/webit.css (100%) rename {static/bc_test/images => content/uchazeci/prijimaci_rizeni/bakalarske/test}/zamek.svg (100%) diff --git a/content/uchazeci/prijimaci_rizeni/bakalarske/test.md b/content/uchazeci/prijimaci_rizeni/bakalarske/test/_index.md similarity index 100% rename from content/uchazeci/prijimaci_rizeni/bakalarske/test.md rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/_index.md diff --git a/static/bc_test/images/algoritmus.svg b/content/uchazeci/prijimaci_rizeni/bakalarske/test/algoritmus.svg similarity index 100% rename from static/bc_test/images/algoritmus.svg rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/algoritmus.svg diff --git a/static/bc_test/app.js b/content/uchazeci/prijimaci_rizeni/bakalarske/test/app.js similarity index 99% rename from static/bc_test/app.js rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/app.js index f360258..ab82562 100644 --- a/static/bc_test/app.js +++ b/content/uchazeci/prijimaci_rizeni/bakalarske/test/app.js @@ -22,7 +22,7 @@ function createExam() { $.ajax({ async: false, global: false, - url: "/bc_test/data.json", + url: "data.json", dataType: "json", success: function (data) { exam = data; @@ -64,7 +64,7 @@ function createExamItem(item) { text.innerText = item.text; container.appendChild(text); - var path = "/bc_test/images/"; + var path = ""; if (item.image !== null) { var figure = document.createElement("FIGURE"); diff --git a/static/bc_test/data.json b/content/uchazeci/prijimaci_rizeni/bakalarske/test/data.json similarity index 100% rename from static/bc_test/data.json rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/data.json diff --git a/static/bc_test/images/obvod.svg b/content/uchazeci/prijimaci_rizeni/bakalarske/test/obvod.svg similarity index 100% rename from static/bc_test/images/obvod.svg rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/obvod.svg diff --git a/static/bc_test/images/vzor.svg b/content/uchazeci/prijimaci_rizeni/bakalarske/test/vzor.svg similarity index 100% rename from static/bc_test/images/vzor.svg rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/vzor.svg diff --git a/static/bc_test/webit.css b/content/uchazeci/prijimaci_rizeni/bakalarske/test/webit.css similarity index 100% rename from static/bc_test/webit.css rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/webit.css diff --git a/static/bc_test/images/zamek.svg b/content/uchazeci/prijimaci_rizeni/bakalarske/test/zamek.svg similarity index 100% rename from static/bc_test/images/zamek.svg rename to content/uchazeci/prijimaci_rizeni/bakalarske/test/zamek.svg diff --git a/templates/bc_test.html b/templates/bc_test.html index b81259f..27dd157 100644 --- a/templates/bc_test.html +++ b/templates/bc_test.html @@ -1,18 +1,18 @@ {% extends "base.html" %} {% block styles %} - + {% endblock styles %} {% block extra %} - {{ macro::breadcrumbs(page=page) }} + {{ macro::breadcrumbs(page=section) }} {% endblock extra %} {% block content %}
-

{{ page.title }}

+

{{ section.title }}

Test sestává z 10 testových otázek po dvou bodech a 4 úloh po pěti bodech. Po odeslání se zvýrazní správně a chybně zodpovězené otázky a vypíše procentuální úspěšnost řešení. @@ -28,5 +28,5 @@ {% block javascript %} - + {% endblock javascript %}