Adding Interactive Tutorial files - incomplete

This commit is contained in:
Daniel Xie
2017-05-05 16:27:35 -05:00
parent 9f7d6d7bba
commit e2cbc38920
13 changed files with 492 additions and 127 deletions
+4 -3
View File
@@ -47,9 +47,10 @@ purchaseRamForHomeBoxCreate = function() {
purchaseRamForHomeBoxOpen();
//Clear old event listeners from Confirm button
var confirmButton = document.getElementById("purchase-ram-for-home-box-confirm");
var newConfirmButton = confirmButton.cloneNode(true);
confirmButton.parentNode.replaceChild(newConfirmButton, confirmButton);
var newConfirmButton = clearEventListeners("purchase-ram-for-home-box-confirm");
//var confirmButton = document.getElementById("purchase-ram-for-home-box-confirm");
//var newConfirmButton = confirmButton.cloneNode(true);
//confirmButton.parentNode.replaceChild(newConfirmButton, confirmButton);
newConfirmButton.addEventListener("click", function() {
purchaseRamForHomeBoxClose();
purchaseRamForHomeComputer(cost);