From bd3fb48b0d1e39871658bd5142cb8235acb6579d Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sat, 28 Jun 2014 23:12:20 +0200 Subject: [PATCH] find all stylesheets, not only those defined in the head. --- test.html | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ uhr.js | 2 +- 2 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 test.html diff --git a/test.html b/test.html new file mode 100644 index 0000000..f6cf045 --- /dev/null +++ b/test.html @@ -0,0 +1,90 @@ + + + + + Bärneruhr - TEST + + + + + + + + + + + + + + + + + + + + + +
+

Created by fritteli, inspired by QLOCKTWO. Read more! - View full showcase!

+ + + + + + + + + diff --git a/uhr.js b/uhr.js index a1a58a6..af451aa 100644 --- a/uhr.js +++ b/uhr.js @@ -35,7 +35,7 @@ along with this program. If not, see . } }; // auto-detect themes - var styleSheets = $('head link[rel=stylesheet]'); + var styleSheets = $('link[rel=stylesheet]'); for (var i = 0; i < styleSheets.length; i++) { var styleSheet = $(styleSheets[i]); var styleClass = styleSheet.attr('data-class');