fix: clearing attepted addresses on beginRound()

This commit is contained in:
Joshua Shoemaker 2017-09-09 14:52:27 -05:00
parent 7f40a47a57
commit 2542e41b93

2
app.js
View File

@ -154,6 +154,7 @@ function compareIpAddress(value){
function beginRound(){
document.getElementById('entry_table').innerHTML = "";
ipAttempts = [];
let entryArray = createEntryArray();
let htmlArray = createEntryHTMLArray(entryArray);
let entryHTMLString = concatEntryHTMLArray(htmlArray);
@ -163,6 +164,7 @@ function beginRound(){
renderEntries(entryHTMLString);
assignClickEvent(entryElements);
renderSuccessPrecentage(score * 100/winScore);
renderAttempts();
console.log(targetIpAddress);