mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 04:14:41 +00:00
1 parent
7722abcd66
commit
9c48341ee8
1 file changed
+6
-6
@@ -12,13 +12,13 @@
|
||||
{{ $id := delimit (shuffle (seq 1 9)) "" }}
|
||||
<div id="chart-{{$id}}" class="chart"></div>
|
||||
<script>
|
||||
async function fetchChartJSON() {
|
||||
console.debug('Hugo Blox fetching chart JSON...')
|
||||
const response = await fetch('{{$json}}');
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
(function() {
|
||||
async function fetchChartJSON() {
|
||||
console.debug('Hugo Blox fetching chart JSON...')
|
||||
const response = await fetch('{{$json}}');
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
let a = setInterval( function() {
|
||||
if ( typeof window.Plotly === 'undefined' ) {
|
||||
console.debug('Plotly not loaded yet...')
|
||||
|
||||
Reference in new issue
Block a user