diff options
Diffstat (limited to 'public/js/qcm.js')
-rw-r--r-- | public/js/qcm.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/public/js/qcm.js b/public/js/qcm.js index e6b8190..3ce5724 100644 --- a/public/js/qcm.js +++ b/public/js/qcm.js @@ -1,14 +1,14 @@ 'use strict'; +/* eslint-env browser */ +/* exported check */ + /* * Écrit par Hédy GIRAUDEAU * */ -/* eslint-env browser */ -/* exported check */ - -function check(id/* , tab */) { +const check = (id => { const fieldQCM = document.getElementById(id); Array.from(fieldQCM.getElementsByTagName('INPUT')).forEach(input => { @@ -36,7 +36,7 @@ function check(id/* , tab */) { // Empty } }); -} +}); function shuffle(array) { let currentIndex = array.length; @@ -76,3 +76,4 @@ document.addEventListener('DOMContentLoaded', () => { }); }, false); +document.check = check; |