Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexprut/gamification.js
A simple Gamification framework for the front-end
https://github.com/alexprut/gamification.js
gamification gamification-framework javascript
Last synced: about 2 months ago
JSON representation
A simple Gamification framework for the front-end
- Host: GitHub
- URL: https://github.com/alexprut/gamification.js
- Owner: alexprut
- License: mit
- Created: 2016-08-04T21:34:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-14T18:29:36.000Z (over 5 years ago)
- Last Synced: 2024-04-26T09:01:55.810Z (9 months ago)
- Topics: gamification, gamification-framework, javascript
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Gamification.js
===============
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![MIT](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/alexprut/Gamification.js/blob/master/LICENSE)A simple Gamification framework for the front-end
## Install
```
bower install gamification.js --save
```## Usage
```javascript
var gamification = new Gamification()
gamification.addBreakpoint(new gamification.Breakpoint(100, function () {
// callback function
}))gamification.addMission(new gamification.ScrollMission(15, '#example'))
gamification.addMission(new gamification.ClickMission(5, '#example button'))
gamification.addMission(new gamification.TimeMission(5, 10000))
gamification.addComponent(new gamification.ProgressBarComponent(100, function () {
// callback function
}))
```## License
Licensed under [MIT](https://github.com/alexprut/Gamification.js/blob/master/LICENSE).