1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-07-06 23:54:17 +02:00
Lexiconga/src/js/displayToggles.js

29 lines
737 B
JavaScript
Raw Normal View History

import { renderDescription, renderDetails, renderStats } from './render';
2019-05-02 15:45:10 -06:00
export function showSection(sectionName) {
switch (sectionName) {
case 'description': showDescription(); break;
case 'details': showDetails(); break;
case 'stats': showStats(); break;
}
}
function showDescription() {
const detailsPanel = document.getElementById('detailsPanel');
detailsPanel.style.display = 'block';
renderDescription();
2019-05-02 15:45:10 -06:00
}
function showDetails() {
const detailsPanel = document.getElementById('detailsPanel');
detailsPanel.style.display = 'block';
renderDetails();
2019-05-02 15:45:10 -06:00
}
function showStats() {
const detailsPanel = document.getElementById('detailsPanel');
detailsPanel.style.display = 'block';
renderStats();
2019-05-02 15:45:10 -06:00
}