cityssm/attendance-tracking

View on GitHub
public-typescript/attendance.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Attend as AttendGlobal } from '../types/globalTypes.js'
;(() => {
  // eslint-disable-next-line unicorn/prefer-module
  const Attend = exports.Attend as AttendGlobal

  const menuTabElements: NodeListOf<HTMLAnchorElement> =
    document.querySelectorAll('#menu--attendance a')

  const tabContainerElements: NodeListOf<HTMLElement> =
    document.querySelectorAll('#tabs-container--attendance > article')

  Attend.initializeMenuTabs(menuTabElements, tabContainerElements)
})()