display graphs for exchange rates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user