summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAlexander Tsvyashchenko <ndl@ndl.kiev.ua>2010-03-26 22:33:50 (GMT)
committerAlexander Tsvyashchenko <ndl@ndl.kiev.ua>2010-03-26 22:33:50 (GMT)
commit5a6f81888fa0ab73fe539117650cc99eb459ad15 (patch)
tree976fabdfab830b6cc80b6191277c987e13f7ea56 /assets
parent8cfa874772765e14fa00be565d85c19c5183f00a (diff)
downloadwiki_external_filter-5a6f81888fa0ab73fe539117650cc99eb459ad15.zip
wiki_external_filter-5a6f81888fa0ab73fe539117650cc99eb459ad15.tar.gz
wiki_external_filter-5a6f81888fa0ab73fe539117650cc99eb459ad15.tar.bz2
- Unified block/inline rendering.
- Split views to separate files. - Added PNG fallback for SVG displaying. - Improved SVG compliance.
Diffstat (limited to 'assets')
-rw-r--r--assets/javascripts/css_browser_selector.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/assets/javascripts/css_browser_selector.js b/assets/javascripts/css_browser_selector.js
new file mode 100644
index 0000000..324b03b
--- /dev/null
+++ b/assets/javascripts/css_browser_selector.js
@@ -0,0 +1,8 @@
+/*
+CSS Browser Selector v0.3.5 (Feb 05, 2010)
+Rafael Lima (http://rafael.adm.br)
+http://rafael.adm.br/css_browser_selector
+License: http://creativecommons.org/licenses/by/2.5/
+Contributors: http://rafael.adm.br/css_browser_selector#contributors
+*/
+function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);