linkr/templates/assets/js/bs-init.js
Nathan Woodburn 79b210c8a7
All checks were successful
Build Docker / Build Main Image (push) Successful in 33s
feat: Initial code push
2023-11-17 00:06:02 +11:00

8 lines
234 B
JavaScript

document.addEventListener('DOMContentLoaded', function() {
var charts = document.querySelectorAll('[data-bss-chart]');
for (var chart of charts) {
chart.chart = new Chart(chart, JSON.parse(chart.dataset.bssChart));
}
}, false);