Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle unrated groups

  • Loading branch information...
commit a2be23ba1f2ddc79142577477ac9491bb7f708da 1 parent cb4e626
Jake Levine authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mug_stats.html
View
6 mug_stats.html
@@ -38,9 +38,11 @@
addStarRating = function(rating) {
var base_url = 'http://img1.meetupstatic.com/9260736631256287675/img/star_';
var starlink = '';
- if (rating < 1.25) {
+ if (rating == 0) {
+ return 'Not Yet Rated';
+ }else if (rating < 1.25) {
starlink = "100.png";
- } else if (rating < 1.75) {
+ }else if (rating < 1.75) {
starlink = "150.png";
}else if (rating < 2.25) {
starlink = "200.png";
Please sign in to comment.
Something went wrong with that request. Please try again.