Skip to content

shrikumarinfotech/rolling-dice

Repository files navigation

Rolling Dice

A rolling dice app built with JavaScript

Usage

npm

Define and import rollingDice plugin

const rollingDice = require('./rolling-dice-v1.0.0');

Define dices

const dice1 = rollingDice.dice1();
const dice2 = rollingDice.dice2();

HTML prototype

Insert the following into your HTML <head></head> element:

<link rel="stylesheet" href="./inludes/stylesheets/rolling-dice-v1.0.0.css">

Include the script before </body> tag of your HTML file:

<script src="./rolling-dice-html-prototype-v1.0.0.js"></script>