dependency chart.js
This commit is contained in:
parent
d866e4faaa
commit
4bf6afaf4e
4 changed files with 23 additions and 4 deletions
20
static/chart.js
Normal file
20
static/chart.js
Normal file
File diff suppressed because one or more lines are too long
1
static/charts.min.css
vendored
1
static/charts.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -32,13 +32,13 @@
|
|||
<% } else if let PlayerState::Result((field, selected)) = state{ %>
|
||||
<% if Some(field.correct) == selected { %>
|
||||
<article>
|
||||
<center><img src="./static/check.svg" width="50%"/></center>
|
||||
<center><img src="/static/check.svg" width="50%"/></center>
|
||||
<center><h1>Correct</h1></center>
|
||||
<center><p>Your answer is correct. The correct answer is <b><%= field.answers[field.correct as usize] %></b>.</p></center>
|
||||
</article>
|
||||
<% } else { %>
|
||||
<article>
|
||||
<center><img src="./static/xmark.svg" width="50%"/></center>
|
||||
<center><img src="/static/xmark.svg" width="50%"/></center>
|
||||
<center><h1>Wrong</h1></center>
|
||||
<center><p>
|
||||
Your answer is incorrect. The correct answer is <b><%= field.answers[field.correct as usize] %></b>.
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script src="/static/chart.js"></script>
|
||||
<main class="container" hx-sse="connect:/<%= id %>/view/events swap:message">
|
||||
<% } %>
|
||||
<h1>zettoIT ARS</h1>
|
||||
|
|
Loading…
Reference in a new issue