Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery UI Theme Switcher Alternatives

I want to use the Jquery UI Theme Switcher Widget on my page. The problem is the Switcher is hosted via http and my page is a https page. So I get security errors including the switcher.

Does anyone know if I can get the source of the switcher so I can host it on my site? Or are there any third party switcher scripts that I could use?

Thanks!

like image 709
w.donahue Avatar asked Dec 20 '11 00:12

w.donahue


3 Answers

For anyone that lands here. Here is what I found.

A list of 10 of them is here: (update link is dead now - Apr 2016) http://www.net-kit.com/10-practical-jquery-style-switchers/

A replacement for the jquery theme switcher that you can run locally is here: https://github.com/harborhoffer/Super-Theme-Switcher

like image 175
w.donahue Avatar answered Jan 03 '23 16:01

w.donahue


I don't know about any other third party implementations, but it's easy to do yourself too. Just set an id on a link element and use jQuery to change the src attribute when a select box changes. Abstracting it into a plugin is pretty easy as well.

like image 41
Emil Lundberg Avatar answered Jan 03 '23 16:01

Emil Lundberg


I don't want to sound like I am promoting a project I did, but I wrote a jQuery-UI theme switcher based on the themeswitchertool, in order to create one that actually works as advertised. Mine does not link to all the themes by default, but enables you to add any theme you want. Adding all the themes from the jQuery-UI site is trivial.

There is also Super Theme Switcher, which everyone else seems to be using, but it is not as feature-rich as mine, due to it being a port of the old themeswitchertool. This one DOES link all the jQuery UI themes by default.

like image 27
Skaman Sam Avatar answered Jan 03 '23 16:01

Skaman Sam