| Timestamp | System | Status | Value | Message | Actions |
No alerts.
';
};
pAvioApp.renderConfigTable = function() {
const tbody = document.getElementById('p-avio-data-list'); tbody.innerHTML = '';
this.systemData.forEach(d => {
const row = tbody.insertRow(); row.dataset.id = d.id;
row.innerHTML = `
`;
});
};
pAvioApp.openTab = function(tabName) { this.currentTab = tabName; document.querySelectorAll('.p-avio-tab-content').forEach(c => c.classList.remove('active')); document.querySelectorAll('.p-avio-tab-button').forEach(b => b.classList.remove('active')); document.getElementById(`p-avio-${tabName}`).classList.add('active'); document.querySelector(`.p-avio-tab-button[data-tab='${tabName}']`).classList.add('active'); this.updateNavButtons(); };
pAvioApp.navigateTabs = function(direction) { const tabs = ['Dashboard', 'Config']; const nextIndex = tabs.indexOf(this.currentTab) + direction; if (nextIndex >= 0 && nextIndex < tabs.length) this.openTab(tabs[nextIndex]); };
pAvioApp.updateNavButtons = function() { const prevBtn = document.getElementById('p-avio-prevBtn'); const nextBtn = document.getElementById('p-avio-nextBtn'); prevBtn.style.visibility = (this.currentTab === 'Dashboard') ? 'hidden' : 'visible'; nextBtn.style.visibility = (this.currentTab === 'Config') ? 'hidden' : 'visible'; };
pAvioApp.generatePDF = function() { html2pdf().from(document.getElementById('p-avio-tool-content-for-pdf')).set({ margin: 0.5, filename: 'Avionics_Dashboard.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2, useCORS: true, backgroundColor: '#1a1c22' }, jsPDF: { unit: 'in', format: 'letter', orientation: 'landscape' } }).save(); };
pAvioApp.init();
});