controller.js 540 B

123456789101112131415161718192021
  1. let controller = {
  2. publicStrand: document.getElementById("publicStrand"),
  3. loginStrand: document.getElementById("loginStrand"),
  4. registerStrand: document.getElementById("registerStrand"),
  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.registerStrand.style.display = "none";
  15. }
  16. }
  17. controller.onStart();