summaryrefslogtreecommitdiff
path: root/svg.js
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-23 16:02:34 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-23 16:06:05 +0200
commitf9c9aef63c24188c87dbe4a351b2834e2fc0d282 (patch)
tree2557ec019bb4f2833b86481ccb36ede366946086 /svg.js
downloadmutti-web-f9c9aef63c24188c87dbe4a351b2834e2fc0d282.tar.gz
mutti-web-f9c9aef63c24188c87dbe4a351b2834e2fc0d282.tar.bz2
mutti-web-f9c9aef63c24188c87dbe4a351b2834e2fc0d282.zip
Add initial layout + pages
Diffstat (limited to 'svg.js')
-rw-r--r--svg.js70
1 files changed, 70 insertions, 0 deletions
diff --git a/svg.js b/svg.js
new file mode 100644
index 0000000..ba05bd7
--- /dev/null
+++ b/svg.js
@@ -0,0 +1,70 @@
+function checkBrowser(name) {
+ return navigator.userAgent.toLowerCase().indexOf(name.toLowerCase())>-1;
+}
+
+window.onload = function() {
+ if (!(checkBrowser("opera") || checkBrowser("webkit"))) {
+ var svgs = document.getElementsByClassName("svg");
+ for (var i = 0; i < svgs.length; ++i) {
+ if (svgs[i].localName == "img") {
+ svgs[i].style.display = "none";
+ } else if (svgs[i].localName == "object") {
+ svgs[i].style.display = "inline";
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+