1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 15:41:17 -04:00

commit all random stuff to repo

This commit is contained in:
2018-05-17 14:47:47 -05:00
parent f38f231cae
commit 809962e1ed
62 changed files with 9187 additions and 26 deletions

View File

@@ -0,0 +1,16 @@
var chocolateBars = {
// Variables
nbrOwned : 0,
setNbrOwned : function(value){
this.nbrOwned = value;
if(this.nbrOwned == 0) htmlInteraction.setInnerHtml("chocolate_bars", "You have 0 chocolate bars :(");
else if(this.nbrOwned != 1) htmlInteraction.setInnerHtml("chocolate_bars", "You have " + this.nbrOwned + " chocolate bars \\o/ (a bug? Oo)");
else htmlInteraction.setInnerHtml("chocolate_bars", "You have 1 chocolate bar! \\o/");
htmlInteraction.setElementVisibility("chocolate_bars", true);
buttons.checkChocolateBars();
}
};