Skip to content

Instantly share code, notes, and snippets.

@wildwest-service
Created March 26, 2013 02:47
Show Gist options
  • Save wildwest-service/5242731 to your computer and use it in GitHub Desktop.
Save wildwest-service/5242731 to your computer and use it in GitHub Desktop.
jQueryMobile1.3.0のページ遷移時の設定。jquery.mobile-1.3.0.min.jsと併せて読み込むだけでOK。
$(document).bind("mobileinit", function() {
//ページ遷移アニメーションの標準設定 face/pop/flip/turn/flow/slidefade/slide/slideup/slidedown/none
$.mobile.defaultPageTransition = "none";
//ページローディングメッセージの設定
$.mobile.loader.prototype.options.theme = "a"; //ローディング表示のテーマ a/b/c/d/e
$.mobile.loader.prototype.options.textonly = true; //スピナーを表示させるか、テキストだけ表示にするか true/false
$.mobile.loader.prototype.options.textVisible = true; //ローディング中にテキストを表示させるか true/false
$.mobile.loader.prototype.options.text = "読み込み中"; //ローディング中に表示させるテキスト
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment