Summary
In this chapter, we learned how gamification can be used to encourage learners to participate in a course, specifically by creating a learner dashboard. We saw how a completion progress block can be developed using Chart.js
such that learner progress is displayed in an immediate, as well as engaging, way. Along the way, we explored how jQuery can be employed in a Moodle plugin (in an AMD JavaScript module), as well as encountering the Activity Completion API, JSON encoding, and more.
Having spent this chapter developing the learner dashboard, it is time to explore how the look and feel of Moodle can be tailored to suit our learner (and network) requirements, which is the subject of the next chapter.