Skip to content

Commit

Permalink
Update RAM used's display
Browse files Browse the repository at this point in the history
  • Loading branch information
gg64du02 committed May 30, 2018
1 parent 87f124f commit ecc3742
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions duckSpark.js_files/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@ jQuery(function() { // Wait for jQuery
var duckOutput = Duck.toArduino($(".duckyscript").val());
var numbers_of_character_lol = Duck.numbers_of_character;
//console.log("numbers_of_character_lol:"+numbers_of_character_lol);

//document.getElementById("dl-but").innerHTML = "Hello JavaScript!";
//document.getElementById("dl-but").innerHTML = "RAM used:" + numbers_of_character_lol + "bytes (about)";
document.getElementById("RAM-info").innerHTML = "RAM used:" + numbers_of_character_lol + "bytes (raw guess)";

if(numbers_of_character_lol>460){
document.getElementById("RAM-info").style.color = "#ff0000";
document.getElementById("RAM-info").innerHTML = "Warning, RAM used:" + numbers_of_character_lol + "bytes (raw guess)";
}
else{
document.getElementById("RAM-info").style.color = "#000000";

document.getElementById("RAM-info").innerHTML = "RAM used:" + numbers_of_character_lol + "bytes (raw guess)";
}


Expand Down

0 comments on commit ecc3742

Please sign in to comment.