From a72aacb50494fb0ae7e2bf0ff7ebbe01d156ae52 Mon Sep 17 00:00:00 2001
From: Manuel Friedli <manuel@fritteli.ch>
Date: Sat, 28 Jun 2014 00:52:05 +0200
Subject: [PATCH] first playground parsing the CSS names

---
 detector.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 detector.js

diff --git a/detector.js b/detector.js
new file mode 100644
index 0000000..794668c
--- /dev/null
+++ b/detector.js
@@ -0,0 +1,13 @@
+(function($) {
+	'use strict';
+	$(document).ready(function() {
+		console.log('detector');
+		var uhrCSSs = $('link[rel=stylesheet][href^=uhr-]');
+		for (var i = 0; i < uhrCSSs.length; i++) {
+			var name = $(uhrCSSs[i]).attr('href');
+			var matcher = /^(.*)uhr-(.+).css$/;
+			var code = name.match(matcher)[2];
+			console.log(name+": "+code);
+		}
+	});
+})(jQuery);