From 1677cb245356a762649185ee48e3befaba16c512 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 2 Feb 2018 07:31:38 +0100 Subject: XO fix --- public/js/qcm.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'public/js/qcm.js') 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; -- cgit v1.2.3