Skip to content

Jiaming-Yang-20/js-library-lotteryBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

link to the landing page.

https://arcane-shelf-79647.herokuapp.com/main.html

'Getting Started' section.

Getting Started:

1. Load js/index.js and index.css

2. Initiate a Lottery Bridge game instance
e.g. const bridgeGame = new Game({data: [ { text: "$50 gift card", chance: 10 }, { text: "$100 gift card", chance: 5 }, { text: "$200 gift card", chance: 1 },],});

3. Call the method lottery_game() on the game instance to get a gameView
e.g. const gameview = bridgeGame.lottery_game();

4. Select the DOM element that you want to append the Lottery Bridge game to
e.g. const body = document.querySelector("body");

5. Append the gameView to the DOM element
e.g. body.appendChild(gameview);

link to documentation page.

https://arcane-shelf-79647.herokuapp.com/doc.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published