Commit 889cda548723fd3680e01e93e515c892a944e3df

Golmote 2015-09-07T09:03:13

Add language counter on homepage

diff --git a/index.html b/index.html
index 407ede6..700065c 100644
--- a/index.html
+++ b/index.html
@@ -156,7 +156,7 @@
 
 <section id="languages-list" class="language-markup">
 	<h1>Supported languages</h1>
-	<p>This is the list of all languages currently supported by Prism, with their corresponding alias, to use in place of <code>xxxx</code> in the <code>language-xxxx</code> class:</p>
+	<p>This is the list of all <span id="languages-list-count"></span> languages currently supported by Prism, with their corresponding alias, to use in place of <code>xxxx</code> in the <code>language-xxxx</code> class:</p>
 </section>
 
 <section id="plugins">
@@ -222,10 +222,12 @@
 (function() {
 	var languageItems = [];
 	var languages = components.languages;
+	var count = 0;
 	for (var id in languages) {
 		if (id == 'meta') {
 			continue;
 		}
+		count++;
 		var name = languages[id].title || languages[id];
 
 		languageItems.push({
@@ -247,6 +249,7 @@
 		contents: languageItems,
 		inside: '#languages-list'
 	});
+	$u.element.contents($('#languages-list-count'), count);
 }());
 </script>