2023-11-01 21:12:18 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>zettoIT ARS</title>
|
|
|
|
<meta charset="UTF-8">
|
2023-11-05 19:54:47 +01:00
|
|
|
<link rel="stylesheet" href="/static/zettoit-style/zettoit.css">
|
2023-11-01 21:12:18 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main class="container">
|
2023-11-05 19:54:47 +01:00
|
|
|
<p><b>zettoIT ARS</b> is a lightweight open source audience response system built with rust.</p>
|
2023-11-01 21:12:18 +01:00
|
|
|
<p>A quiz can be created by uploading a toml-encoded Quizfile. A basic example is listed below:</p>
|
2023-11-05 19:54:47 +01:00
|
|
|
<pre>
|
|
|
|
# number of seconds to wait before showing results
|
|
|
|
wait_for = 15
|
2023-11-01 21:12:18 +01:00
|
|
|
|
2023-11-05 19:54:47 +01:00
|
|
|
[[questions]]
|
|
|
|
# type of the question (currently only single_choice)
|
|
|
|
type = "single_choice"
|
|
|
|
# name of the question
|
|
|
|
name = "Who is there?"
|
|
|
|
# array of possible answers
|
|
|
|
answers = [ "A", "B", "C", "D"]
|
|
|
|
# index (starting at 0) of the correct answer
|
|
|
|
correct = 0
|
|
|
|
|
|
|
|
[[questions]]
|
|
|
|
type = "single_choice"
|
|
|
|
name = "What is there?"
|
|
|
|
answers = [ "A", "B", "C", "D"]
|
|
|
|
correct = 0
|
|
|
|
</pre>
|
2023-11-01 21:12:18 +01:00
|
|
|
|
|
|
|
<span id="error" style="color: red;"></span>
|
|
|
|
<form method="post" hx-post="" hx-target="#error" hx-swap="innerHTML" enctype="multipart/form-data">
|
|
|
|
<input type="file" name="quizfile"/>
|
2023-11-02 22:46:38 +01:00
|
|
|
<button type="submit">Create Quiz</button>
|
2023-11-01 21:12:18 +01:00
|
|
|
</form>
|
|
|
|
</main>
|
2023-11-05 19:54:47 +01:00
|
|
|
<a class="watermark" href="https://git2.zettoit.eu/zettoit"><img src="/static/zettoit-style/zettoit.svg" alt="zettoIT Logo"></a>
|
2023-11-01 21:12:18 +01:00
|
|
|
<script src="/static/htmx.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|