> If one uses a theme which works perfectly nice in Firefox - but which
> would be completely messed up in IE and Opera - is there a way to
> change the theme to a browser specific one at startup, be detecting
> the browser of a visitor to such a online TiddlyWiki?
You could use write a simple plugin using browser sniffing* - TiddlyWiki
provides a config.browser object for this:
if(config.browser.isIE) {
config.options.txtTheme = "legacyBrowsersTheme";
} else {
config.options.txtTheme = "modernBrowsersTheme";
}
However, that's not necessarily 100% reliable.
-- F.
* http://en.wikipedia.org/wiki/Browser_sniffing#Client-side_sniffing
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---