refactor asciinema

This commit is contained in:
2025-05-26 17:48:23 -04:00
parent 55ab032dbf
commit 595325b5ad
4 changed files with 15 additions and 11 deletions

View File

@ -1,7 +1,4 @@
<div id='{{ .Get "key" }}'></div>
{{ with resources.Get "vendor/asciinema/asciinema-player.min.js" | fingerprint }}
<script src="{{ .RelPermalink }}"></script>
{{ end }}
<script>
AsciinemaPlayer.create('casts/{{ .Get "key" }}.cast', document.getElementById('{{ .Get "key" }}'), {
{{ if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }}