uhr/detector.js

14 lines
361 B
JavaScript
Raw Normal View History

2014-06-28 00:52:05 +02:00
(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);