Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setCategoryOverview: function () {
- results.comp.cats = {};
- $e.find('.wpProQuiz_catOverview li').each(function () {
- var $this = $(this);
- var catId = $this.data('category_id');
- if (config.catPoints[catId] === undefined) {
- $this.hide();
- return true;
- }
- var r = Math.round(catResults[catId] / config.catPoints[catId] * 100 * 100) / 100;
- results.comp.cats[catId] = r;
- $this.find('.wpProQuiz_catPercent').text(r + '%');
- $this.show();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement