|
@@ -2,5 +2,16 @@ let agreementObj = {
|
|
|
display: function(){
|
|
display: function(){
|
|
|
controller.clearScreen();
|
|
controller.clearScreen();
|
|
|
controller.agreementStrand.style.display = "flex";
|
|
controller.agreementStrand.style.display = "flex";
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ agree: function(){
|
|
|
|
|
+ let checkbox = document.querySelector("#agreementStrand input");
|
|
|
|
|
+ let button = document.querySelector("#agreementStrand button");
|
|
|
|
|
+
|
|
|
|
|
+ if(checkbox.checked){
|
|
|
|
|
+ button.disabled = false;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ button.disabled = true;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|