1
0
mirror of https://github.com/Chouchen/motsmeles.git synced 2018-06-07 06:04:38 +02:00

unnecessary code from the original project

This commit is contained in:
Shikiryu 2015-01-26 11:50:35 +01:00
parent 0973f4b95b
commit 98a51e779a

View File

@ -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);
};
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");
// TODO calling callback
};
})(fabric, document, SIZE, NUMCASE, GRID, reponse, words);