A simple Gamification framework for the front-end
bower install gamification.js --save
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
}))
Licensed under MIT.