uhr/detector.js

11 lines
298 B
JavaScript
Raw Normal View History

2014-06-28 00:52:05 +02:00
(function($) {
'use strict';
var uhrCSSs = $('link[rel=stylesheet][href^=uhr-]');
var matcher = /^(.*)uhr-(.+).css$/;
2014-06-28 00:52:05 +02:00
for (var i = 0; i < uhrCSSs.length; i++) {
var name = $(uhrCSSs[i]).attr('href');
var code = name.match(matcher)[2];
window._uhr.themes.push(code);
2014-06-28 00:52:05 +02:00
}
})(jQuery);