mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Missing semicolons
This commit is contained in:
@@ -133,7 +133,7 @@
|
|||||||
.duration(1000)
|
.duration(1000)
|
||||||
.attr('y', d => y(d[1]))
|
.attr('y', d => y(d[1]))
|
||||||
.attr('height', d => y(d[0]) - y(d[1]));
|
.attr('height', d => y(d[0]) - y(d[1]));
|
||||||
}
|
};
|
||||||
|
|
||||||
// Function to create an accessible table
|
// Function to create an accessible table
|
||||||
const createTable = function(tableId, chartType, labels, deliveredData, failedData) {
|
const createTable = function(tableId, chartType, labels, deliveredData, failedData) {
|
||||||
@@ -177,7 +177,7 @@
|
|||||||
table.appendChild(caption);
|
table.appendChild(caption);
|
||||||
table.appendChild(thead);
|
table.appendChild(thead);
|
||||||
table.append(tbody);
|
table.append(tbody);
|
||||||
}
|
};
|
||||||
|
|
||||||
const fetchData = function(type) {
|
const fetchData = function(type) {
|
||||||
var ctx = document.getElementById('weeklyChart');
|
var ctx = document.getElementById('weeklyChart');
|
||||||
@@ -218,7 +218,7 @@
|
|||||||
socket.on('error', function(data) {
|
socket.on('error', function(data) {
|
||||||
console.log('Error:', data);
|
console.log('Error:', data);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
const handleDropdownChange = function(event) {
|
const handleDropdownChange = function(event) {
|
||||||
const selectedValue = event.target.value;
|
const selectedValue = event.target.value;
|
||||||
@@ -235,9 +235,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update ARIA live region
|
// Update ARIA live region
|
||||||
const liveRegion = document.getElementById('aria-live-account');
|
const liveRegion = document.getElementById('aria-live-account');
|
||||||
liveRegion.textContent = `Data updated for ${selectedText} - Last 7 Days`;
|
liveRegion.textContent = `Data updated for ${selectedText} - Last 7 Days`;
|
||||||
}
|
};
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
// Initialize activityChart chart and table with service data by default
|
// Initialize activityChart chart and table with service data by default
|
||||||
|
|||||||
Reference in New Issue
Block a user