2023-12-27 23:31:00 -08:00
|
|
|
<div class="bergamot-exercise">
|
2023-12-28 00:12:51 -08:00
|
|
|
<details open>
|
|
|
|
<summary>
|
|
|
|
<span class="bergamot-exercise-label">
|
|
|
|
<span class="bergamot-exercise-number"></span>
|
|
|
|
{{ if or (eq (.Get "label") "") (eq (.Get "label") nil) }}{{ else }}({{ .Get "label" }}){{ end }}:
|
|
|
|
</span>
|
|
|
|
</summary>
|
2023-12-28 16:05:15 -08:00
|
|
|
{{ transform.Markdownify .Inner }}
|
2023-12-27 23:31:00 -08:00
|
|
|
|
2023-12-28 00:12:51 -08:00
|
|
|
<div class="bergamot-button-group">
|
|
|
|
{{ if or (eq (.Get "preset") "") (eq (.Get "preset") nil) }}
|
|
|
|
{{ else }}
|
|
|
|
<button class="bergamot-button bergamot-play" onclick='window.Bergamot.runPreset(this.parentElement, "bergamot-widget-container-{{ .Get "id" }}", "{{ .Get "preset" }}")'>{{ partial "icon.html" "play" }}Start Bergamot</button>
|
|
|
|
<button class="bergamot-button bergamot-close bergamot-hidden" onclick='window.Bergamot.close(this.parentElement, "bergamot-widget-container-{{ .Get "id" }}")'>{{ partial "icon.html" "x" }}Close Bergamot</button>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2023-12-27 23:31:00 -08:00
|
|
|
|
2023-12-28 00:12:51 -08:00
|
|
|
<div id="bergamot-widget-container-{{ .Get "id" }}"></div>
|
|
|
|
</details>
|
2023-12-27 23:31:00 -08:00
|
|
|
</div>
|