Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. setCategoryOverview: function () {
  2. results.comp.cats = {};
  3.  
  4. $e.find('.wpProQuiz_catOverview li').each(function () {
  5. var $this = $(this);
  6. var catId = $this.data('category_id');
  7.  
  8. if (config.catPoints[catId] === undefined) {
  9. $this.hide();
  10. return true;
  11. }
  12.  
  13. var r = Math.round(catResults[catId] / config.catPoints[catId] * 100 * 100) / 100;
  14.  
  15. results.comp.cats[catId] = r;
  16.  
  17. $this.find('.wpProQuiz_catPercent').text(r + '%');
  18.  
  19. $this.show();
  20. });
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement