2 * jQuery Mobileメニュー初期化用スクリプト
\r
4 * LICENSE: This source file is licensed under the terms of the GNU General Public License.
\r
6 * @package Magic3 Framework
\r
7 * @author 平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
\r
8 * @copyright Copyright 2006-2011 Magic3 Project.
\r
9 * @license http://www.gnu.org/copyleft/gpl.html GPL License
\r
10 * @version SVN: $Id: add_head.tmpl.js 4559 2012-01-03 16:26:59Z fishbone $
\r
11 * @link http://www.magic3.org
\r
13 <patTemplate:tmpl name="_tmpl">
\r
14 $(document).bind("mobileinit", function(){
\r
15 $(':jqmData(role="page")').live('pagebeforecreate', function(event){
\r
16 //alert( 'This page was just hidden: '+ ui.prevPage);
\r
17 //var queryStr = window.location.href.split("?");
\r
18 var queryStr = $(this).jqmData('url').split("?");
\r
20 //$(':jqmData(role="header")').append('<a href="' + queryStr[0] + '" data-transition="slideup" data-role="button" data-icon="home" data-iconpos="notext" class="ui-btn-right">Home</a>');
\r
21 // $(':jqmData(role="header")').append('<a href="http://192.168.24.45/magic3/s" data-transition="slideup" data-role="button" data-icon="home" data-iconpos="notext" class="ui-btn-right">Home</a>');
\r