Skip to content

Commit

Permalink
Update numgen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakatai-0322 committed Mar 21, 2022
1 parent b7a26c8 commit b406b87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/numgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ This software used "bootstrap" and "chance.js".
and their software available under "MIT license".
*/
let boolofcons1 = false;
let HistoryMaster;
let HistoryNum;
let newhistory;

Expand All @@ -31,11 +30,14 @@ function RandomNumber() {
};

function exporttoHTML(Num) {
document.getElementById("footer-1").remove();
HistoryNum = document.getElementById("HistoryNum")
const new_element = document.createElement('code');
new_element.textContent = Num + " ";
HistoryNum.appendChild(new_element);
if (boolofcons1 === false){
document.getElementById("footer-1").remove();
boolofcons1 = true;
}
return null;
}

Expand Down

0 comments on commit b406b87

Please sign in to comment.