ars/templates/index.stpl

47 lines
1.6 KiB
Text
Raw Permalink Normal View History

2023-11-01 21:12:18 +01:00
<!DOCTYPE html>
<html>
<head>
<title>zettoIT ARS</title>
<meta charset="UTF-8">
2023-11-10 15:51:53 +01:00
<link rel="stylesheet" href="/static/zettoit.css">
<link rel="icon" type="image/svg" href="/static/zettoit.svg"/>
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
<form method="post" hx-post="" hx-target="#error" hx-swap="innerHTML" enctype="multipart/form-data">
<input type="file" name="quizfile"/>
2023-11-05 23:01:47 +01:00
<button type="submit">
Create Quiz
<small id="error" style="color: red;"></small>
</button>
2023-11-01 21:12:18 +01:00
</form>
</main>
2023-11-10 15:51:53 +01:00
<a class="watermark" href="https://git2.zettoit.eu/zettoit"><img src="/static/zettoit.svg" alt="zettoIT Logo"></a>
2023-11-01 21:12:18 +01:00
<script src="/static/htmx.min.js"></script>
</body>
</html>