/* * Thickbox 3.1 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2007 cody lindley * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ /* * ownersstore.js * * オーナーズストア通信用ライブラリ. * CSSやjavascriptのオーバーレイ処理はThickboxのものを使っています. * */ (function() { // オーナーズストア通信スクリプトのパス var upgrade_url = '[%URL_DIR%]upgrade/index.php'; // ロード中メッセージ(配信サーバと通信中です…) var loading_message = '\u30B5\u30FC\u30D0\u3068\u901A\u4FE1\u4E2D\u3067\u3059'; // ロード中画像の先読み var loading_img = new Image(); loading_img.src = '[%URL_DIR%]user_data/packages/default/img/ajax/loading.gif'; var OwnersStore = function() {} OwnersStore.prototype = { // detect Mac and Firefox use. detectMacFF: function() { var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf('mac') != -1 && ua.indexOf('firefox') != -1) { return true; } }, // remove ajax window remove: function() { $("#TB_window").fadeOut( "fast", function(){ $('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove(); } ); $("#TB_load").remove(); //if IE 6 if (typeof document.body.style.maxHeight == "undefined") { $("body", "html").css({height: "auto", width: "auto"}); $("html").css("overflow", ""); } return false; }, // show loading page show_loading: function() { //if IE 6 if (typeof document.body.style.maxHeight === "undefined") { $("body","html").css({height: "100%", width: "100%"}); $("html").css("overflow","hidden"); //iframe to hide select elements in ie6 if (document.getElementById("TB_HideSelect") === null) { $("body").append("
"); $("#TB_overlay").click(this.remove); } //all others } else { if(document.getElementById("TB_overlay") === null){ $("body").append(""); $("#TB_overlay").click(this.remove); } } if(this.detectMacFF()){ //use png overlay so hide flash $("#TB_overlay").addClass("TB_overlayMacFFBGHack"); } else { //use background and opacity $("#TB_overlay").addClass("TB_overlayBG"); } //add and show loader to the page $("body").append( "" + loading_message + "
" + " " + "