Browse Source

unnecessary code from the original project

nettoyage_css_et_html
Shikiryu 7 years ago
parent
commit
98a51e779a
  1. 20
      src/js/script.js

20
src/js/script.js

@ -146,22 +146,6 @@
});
var nextStep = function nextStep() {
document.getElementById('answer-container').style.display = 'block';
document.getElementById('submit').addEventListener('click', answer, false);
document.getElementById('answer').addEventListener('keydown', answer, false);
// TODO calling callback
};
var answer = function answer(evt) {
if(evt.type === 'keydown' && evt.keyCode === 13){
document.getElementById('submit').click();
}
var userAnswer = document.getElementById('answer').value;
if(userAnswer.toUpperCase() === reponse.toUpperCase()) {
finalStep();
}
};
var finalStep = function finalStep() {
document.getElementById("playground").classList.toggle("flip");
};
})(fabric, document, SIZE, NUMCASE, GRID, reponse, words);
})(fabric, document, SIZE, NUMCASE, GRID, reponse, words);

Loading…
Cancel
Save