jqt
Version:
Create powerful mobile apps with just HTML, CSS, and Zepto.js (or jQuery).
1 lines • 488 B
JavaScript
(function(){$.jQT&&$.jQT.addExtension(function(){var a;return $("[data-switch-stylesheet]").live("tap",function(){return a($(this).attr("data-stylesheet-title"),$(this).attr("data-switch-stylesheet")),$("[data-switch-stylesheet]").removeClass("selected"),$(this).addClass("selected"),!1}),a=function(a,b){var c,d;return c=$('link[title="'+a+'"]'),d=c.length?c.attr("href"):b,$("link[data-jqt-theme]").attr("href",d),$("#jqt").attr("data-jqt-theme",a)},{switchStyleSheet:a}})}).call(this);