Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 1.32 KB

File metadata and controls

76 lines (56 loc) · 1.32 KB

Slot machine

Unveil pre-made teams with a slot machine effect, mimicking randomness.

Slot machine

install

npm install and jspm install

running

You need to create a teams.json in the root folder with the following structure:

{
  "teams": [
    {
      "name": "Team 1",
      "members": [
        {
          "firstName": "Member",
          "surname": "One"
        },
        {
          "firstName": "Member",
          "surname": "Two"
        }
      ]
    },
    {
      "name": "Team 2",
      "members": [
        {
          "firstName": "Member",
          "surname": "One"
        },
        {
          "firstName": "Member",
          "surname": "Two"
        }
      ]
    }    
  ]
}

Depending on the width of your screen, team members up to a count of 6 should still be doable.

Then:

npm run dev and visit localhost:8080

controls

You can use the left and right arrows to click through teams. An ENTER should start the slot machine. You can also just click the shown < > buttons and slot machine's one arm.

deployment

npm run build and visit localhost:8080/build.html

Deploy the following:


build.html (which you can rename to index.html of course)
teams.json

build/
css/
img/
sounds/