display graphs for exchange rates

This commit is contained in:
2021-01-24 21:56:14 +01:00
parent d0f3c18eec
commit 6cfffd99c5
8 changed files with 215 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
/* https://github.com/nathancahill/skeleton-tabs */
(function() {
function main() {
var tabButtons = [].slice.call(document.querySelectorAll('ul.tab-nav li a.button'));
tabButtons.map(function(button) {
button.addEventListener('click', function() {
document.querySelector('li a.active.button').classList.remove('active');
button.classList.add('active');
document.querySelector('.tab-pane.active').classList.remove('active');
document.querySelector(button.getAttribute('href')).classList.add('active');
})
})
}
if (document.readyState !== 'loading') {
main();
} else {
document.addEventListener('DOMContentLoaded', main);
}
})();