controller.js 658 B

1234567891011121314151617181920212223
  1. let controller = {
  2. publicStrand: document.querySelector("#publicStrand"),
  3. loginStrand: document.querySelector("#loginStrand"),
  4. posChoiceStrand: document.querySelector("#posChoiceStrand"),
  5. registerStrand: document.querySelector("#registerStrand"),
  6. onStart: function(){
  7. if(error){
  8. banner.createError(error);
  9. }
  10. publicObj.display();
  11. },
  12. clearScreen: function(){
  13. this.publicStrand.style.display = "none";
  14. this.loginStrand.style.display = "none";
  15. this.posChoiceStrand.style.display = "none";
  16. this.registerStrand.style.display = "none";
  17. }
  18. }
  19. controller.onStart();