We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7722abc commit 9c48341Copy full SHA for 9c48341
modules/blox-tailwind/layouts/_shortcodes/chart.html
@@ -12,13 +12,13 @@
12
{{ $id := delimit (shuffle (seq 1 9)) "" }}
13
<div id="chart-{{$id}}" class="chart"></div>
14
<script>
15
- async function fetchChartJSON() {
16
- console.debug('Hugo Blox fetching chart JSON...')
17
- const response = await fetch('{{$json}}');
18
- return await response.json();
19
- }
20
-
21
(function() {
+ async function fetchChartJSON() {
+ console.debug('Hugo Blox fetching chart JSON...')
+ const response = await fetch('{{$json}}');
+ return await response.json();
+ }
+
22
let a = setInterval( function() {
23
if ( typeof window.Plotly === 'undefined' ) {
24
console.debug('Plotly not loaded yet...')
0 commit comments