読み書きプログラミング

日常のプログラミングで気づいたことを綴っています

2012-02-20から1日間の記事一覧

themeをユーザー設定可能にする

ウェブアプリとかですと、ユーザーがテーマを設定できるようにしたかったりします。そんなときのテクニック。 <html> <head> ... </head> <body style="display: none;"> ... <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script type="text/javascript"> // Theme should be determined before mobileinit is invoked. if (localStor…</body></html>