Skip to content
Snippets Groups Projects
election.js 471 B
Newer Older
  • Learn to ignore specific revisions
  • // Imports
    import * as Auth from "/services/auth/auth.js";
    
    // DOM elements
    
    // local variables
    let current_user;
    
    export async function mount(where) {
      const roundComponent = new Election();
      await roundComponent.mount(where);
    }
    
    class Election {
      constructor() {}
    
      async mount(where) {
        const mountpoint = where;
        document.getElementById(mountpoint).innerHTML = /* HTML */ `
          Ceci est une élection
        `;
        current_user = await Auth.GetUser();
      }
    }