Browse Source

adding comments to js file

Garrick van Buren 12 years ago
parent
commit
047ecd799a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      assets/scripts/foreground.js

+ 5 - 0
assets/scripts/foreground.js

@@ -1,6 +1,11 @@
 jQuery(document).ready(function() {
   jQuery(document).foundation();
   var $title = jQuery('h3:contains(":")').text().split(":");
+
+  // Split the namespace title into a title and a label
   jQuery('h3:contains(":")').html('<small class="label">' + $title[0] + '</small>' + $title[1]);
+
+  // Turn categories into labels
   jQuery('#mw-normal-catlinks ul li a').addClass('label');
+
 });