NxTIC/view/js/settings.js

19 lines
630 B
JavaScript
Raw Normal View History

2016-04-10 16:27:38 +00:00
/* [1] Gestion des tokens
=========================================================*/
/* (1) Gestion de la creation de token */
var add_token_button = document.getElementById('add-token');
var add_panel = document.querySelector('div[data-add]');
/* (1.1) Gestion du toggle pour le panel de creation */
var add_panel_state = true;
add_token_button.addEventListener('click', function(e){
add_panel.className = (add_panel_state) ? 'active' : '';
add_panel_state = !add_panel_state;
}, false);
/* (n) Gestion de la suppression de token */
var remove_token_buttons = document.querySelectorAll('.remove-token');