controller.js 551 B

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