浏览代码

adding comments to js file

Garrick van Buren 12 年之前
父节点
当前提交
047ecd799a
共有 1 个文件被更改,包括 5 次插入0 次删除
  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');
+
 });