sol-vote/templates/assets/js/bs-init.js
Nathan Woodburn f8c98214bf
All checks were successful
Build Docker / Build Image (push) Successful in 39s
feat: Add initial code
2024-02-19 15:18:49 +11:00

10 lines
278 B
JavaScript

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