Skip to content
Raul edited this page Nov 26, 2024 · 2 revisions

Project Documentation

File: app.js

JavaScript Functions

Directory: db

File: database.js

JavaScript Functions

  • function createGame
  • function updateScore
  • function getGameById
  • function getAllGames
  • function getAllSports

Directory: public

Directory: pages

Directory: css

File: control.css

CSS Classes

  • css
  • container
  • 2
  • team
  • time
  • 2em
  • 1em
  • toast
  • show
  • 5s

File: game-setup.css

CSS Classes

  • css
  • container
  • 2
  • column
  • 8em

File: overlay.css

CSS Classes

  • css
  • scoreboard
  • row
  • team
  • 5em
  • score
  • spacer
  • space
  • timer
  • period
  • 2em

Directory: html

File: control.html

HTML Tags

  • html
  • head
  • meta
  • title
  • link
  • body
  • div
  • h1
  • h2
  • label
  • input
  • button
  • script

File: game-setup.html

HTML Tags

  • html
  • head
  • meta
  • title
  • link
  • body
  • div
  • h1
  • form
  • label
  • input
  • small
  • select
  • button
  • script

File: overlay.html

HTML Tags

  • html
  • head
  • meta
  • title
  • link
  • body
  • div
  • img
  • script

Directory: js

File: control.js

JavaScript Functions

  • function setupPeriods
  • function generatePeriods
  • function nextPeriod
  • function previousPeriod
  • function showBreak
  • function incrementScore
  • function decrementScore
  • function updateScore
  • function startTimer
  • function stopTimer
  • function resetTimer
  • function manualTimeChange
  • function goToGameSetupPage
  • function copyOverlayUrl
  • function showToast

File: game-setup.js

JavaScript Functions

  • function submitForm
  • function loadPastGames
  • function loadSports

File: overlay.js

JavaScript Functions

  • function setupInitialPeriod

Directory: server

File: routes.js

JavaScript Functions

File: server.js

JavaScript Functions

File: socket.js

JavaScript Functions

Directory: uploads

Clone this wiki locally