diff options
author | ache <ache@ache.one> | 2018-02-02 07:31:38 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-02-02 07:31:38 +0100 |
commit | 1677cb245356a762649185ee48e3befaba16c512 (patch) | |
tree | 59b4c17de670664fc4603067bdb4748ed8eee1bb /public/js/qcm.js | |
parent | Removing unnecessary libraries (diff) |
XO fix
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; |