Some checks failed
Blowfish Docs Deploy / build (push) Has been cancelled
Blowfish Docs Deploy / deploy (push) Has been cancelled
Test Build / Build Example Site (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Update Hugo version / updateBlowfish (push) Has been cancelled
Delete exampleSite Add initial content, images & docker-compose.yml Use extend-head.html for analytics Set remote url to gitea.novicelab.io Remove original .git due to "shallow update not allowed" error
13 lines
384 B
HTML
13 lines
384 B
HTML
{{ $id := delimit (slice "chart" (partial "functions/uid.html" .)) "-" }}
|
|
<div class="chart">
|
|
<canvas id="{{ $id }}"></canvas>
|
|
<script type="text/javascript">
|
|
window.addEventListener("DOMContentLoaded", (event) => {
|
|
const ctx = document.getElementById("{{ $id }}");
|
|
const chart = new Chart(ctx, {
|
|
{{ .Inner | safeJS }}
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|