Replace document ready's

This commit is contained in:
Paul Laros
2020-08-28 19:05:05 +02:00
parent 7db16a3dd1
commit 3c231aade4
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -427,7 +427,7 @@
<script src="js/app.js"></script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Line chart
new Chart(document.getElementById("chartjs-line"), {
type: "line",
@@ -488,7 +488,7 @@
});
</script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Bar chart
new Chart(document.getElementById("chartjs-bar"), {
type: "bar",
@@ -541,7 +541,7 @@
});
</script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Doughnut chart
new Chart(document.getElementById("chartjs-doughnut"), {
type: "doughnut",
@@ -569,7 +569,7 @@
});
</script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Pie chart
new Chart(document.getElementById("chartjs-pie"), {
type: "pie",
@@ -596,7 +596,7 @@
});
</script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Radar chart
new Chart(document.getElementById("chartjs-radar"), {
type: "radar",
@@ -629,7 +629,7 @@
});
</script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Polar Area chart
new Chart(document.getElementById("chartjs-polar-area"), {
type: "polarArea",
+3 -3
View File
@@ -577,7 +577,7 @@
<script src="js/app.js"></script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
var ctx = document.getElementById('chartjs-dashboard-line').getContext("2d");
var gradient = ctx.createLinearGradient(0, 0, 0, 225);
gradient.addColorStop(0, 'rgba(215, 227, 244, 1)');
@@ -647,7 +647,7 @@
});
</script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Pie chart
new Chart(document.getElementById("chartjs-dashboard-pie"), {
type: 'pie',
@@ -675,7 +675,7 @@
});
</script>
<script>
$(function() {
document.addEventListener("DOMContentLoaded", function() {
// Bar chart
new Chart(document.getElementById("chartjs-dashboard-bar"), {
type: 'bar',