Sfoglia il codice sorgente

adding comments to js file

Garrick van Buren 12 anni fa
parent
commit
047ecd799a
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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');
+
 });