43 lines
1.5 KiB
Text
43 lines
1.5 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>zettoIT ARS</title>
|
|
<meta charset="UTF-8">
|
|
<link rel="stylesheet" href="/static/zettoit-style/zettoit.css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
</head>
|
|
<body>
|
|
<main class="container">
|
|
<p><b>zettoIT ARS</b> is a lightweight open source audience response system built with rust.</p>
|
|
<p>A quiz can be created by uploading a toml-encoded Quizfile. A basic example is listed below:</p>
|
|
<pre>
|
|
# number of seconds to wait before showing results
|
|
wait_for = 15
|
|
|
|
[[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>
|
|
|
|
<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"/>
|
|
<button type="submit">Create Quiz</button>
|
|
</form>
|
|
</main>
|
|
<a class="watermark" href="https://git2.zettoit.eu/zettoit"><img src="/static/zettoit-style/zettoit.svg" alt="zettoIT Logo"></a>
|
|
<script src="/static/htmx.min.js"></script>
|
|
</body>
|
|
</html>
|