Skip to content
Snippets Groups Projects
round.js 472 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 Round();
      await roundComponent.mount(where);
    }
    
    class Round {
      constructor() {}
    
      async mount(where) {
        const mountpoint = where;
        document.getElementById(mountpoint).innerHTML = /* HTML */ `
          Ceci est un tour d'élection.
        `;
        current_user = await Auth.GetUser();
      }
    }