OSDN Git Service

make buttons under construction disabled
authorgn64_jp <gn64@rec10.org>
Fri, 3 May 2013 12:15:20 +0000 (21:15 +0900)
committergn64_jp <gn64@rec10.org>
Fri, 3 May 2013 12:15:20 +0000 (21:15 +0900)
template/desktop_top.tmpl
template/desktop_viewjpeg.tmpl
template/mobile_top.tmpl
template/mobile_viewjpeg.tmpl

index 6748196..222d326 100644 (file)
                                        <input type="submit" value="search"/><br><br>
                                        <div id="toolbar" class="ui-widget-header ui-corner-all">
                                                <button type="button" id="blink"></button>
-                                               <button type="button" id="settings"></button>
-                                               <button type="button" id="login"></button>
+                                               <button type="button" id="settings" disabled></button>
+                                               <button type="button" id="login" disabled></button>
                                                <button type="button" id="nlink"></button>
                                        </div>  
                                </div>
                <br>
                <TMPL_IF NAME="search_top">
                        <div align=center>
-                               <a href=pdfsearch.pl?mode=&width=1024&height=1280>for narrow band</a><br>
-                               <a href=pdfsearch.pl?mode=mobile&width=1600&height=2560>for Tablet</a><br>
-                               <a href=pdfsearch.pl?mode=mobile&width=1080&height=1920>for SmartPhone</a><br>
-                               <a href=pdfsearch.pl?mode=mobile&width=1600&height=2100>for Tablet retina</a><br>
-                               <a href=pdfsearch.pl?mode=mobile&width=1280&height=2400>for SmartPhone retina</a><br>
+                               <a href=pdfsearch.pl?mode=mobile>for mobile</a><br><br>
                                <a href=pdfsearch.pl?mode=''>for PC(default)</a><br>
                        </div>
                </TMPL_IF>
                <div align="center">
             <div id="toolbar" class="ui-corner-all">
                 <button id="blink_footer"></button>
-                <button id="settings_footer"></button>
-                <button id="login_footer"></button>
+                <button id="settings_footer" disabled></button>
+                <button id="login_footer" disabled></button>
                 <button id="nlink_footer"></button>
             </div>
         </div>
index 9667f3a..c9311d5 100644 (file)
                                <button type="button" id="blink"></button>
                                <button type="button" id="search"></button>
                                <button type="button" id="jump"></button>
-                               <button type="button" id="index"></button>
+                               <button type="button" id="index" disabled></button>
                                <button type="button" id="expand"></button>
                 <button type="button" id="reduce"></button>
-                               <button type="button" id="login"></button>
+                               <button type="button" id="login" disabled></button>
                                <button type="button" id="nlink"></button>
                                <button type="button" id="n10link"></button>
                        </div>  
                <div align="center" id="toolbar_footer" class="ui-widget-header">
                        <button type="button" id="b10link_f"></button>
                        <button type="button" id="blink_f"></button>
-                       <button type="button" id="pagediff"></button>
+                       <button type="button" id="pagediff" disabled></button>
                        <TMPL_VAR NAME="nowpage"> / <TMPL_VAR NAME="maxpage">
-                       <button type="button" id="settings"></button>
+                       <button type="button" id="settings" disabled></button>
                        <button type="button" id="nlink_f"></button>
                        <button type="button" id="n10link_f"></button>
                </div>
                        <div id="search_radio">
                                <input type="radio" id="search_all" checked="checked" name="radio"/>
                                <label for="search_all">全体から</label>
-                               <input type="radio" id="search_this" name="radio"/>
+                               <input type="radio" id="search_this" name="radio" disabled/>
                                <label for="search_this">本書から</label>
                        </div>
                        <br>
index 0d9d78a..288cb92 100644 (file)
     <script>
       $(document).on('pageinit',function(){
           $('#images').bind('swipeleft',function(){
-              $.mobile.changePage('<TMPL_VAR NAME="nlink">',{transition:'slide'});
+              //$.mobile.changePage('<TMPL_VAR NAME="nlink">',{transition:'slide'});
           });
           $('#images').bind('swiperight',function(){
-              $.mobile.changePage('<TMPL_VAR NAME="blink">',{transition:'slide'});
+              //$.mobile.changePage('<TMPL_VAR NAME="blink">',{transition:'slide'});
           });
+          $.mobile.loadPage("<TMPL_VAR NAME="nlink">",{showLoadMsg: false});
+          $.mobile.loadPage("<TMPL_VAR NAME="blink">",{showLoadMsg: false});
        });
     $(document).ready(function(){
       var retinaSwitch = window.devicePixelRatio;
@@ -27,7 +29,6 @@
       var window_width=$(window).width();
       //var window_height=$(window).height();
       if (($("#width").val().replace(' ','') == "") && ($('#height').val().replace(' ','') == "" )){
-         
          $("#width").val(retinaSwitch*window_width);
       }
     });
     <div data-role='header' data-position='fixed'>
         <h3>Libre10 pdf search -mobile-</h3>
         <div data-type='horizontal' data-role='controlgroup' class='ui-btn-left'>
-            <a href='<TMPL_VAR NAME="blink">' data-role='button' data-icon='arrow-l' data-iconpos='left' data-prefetch>前へ</a>
+            <a href='<TMPL_VAR NAME="blink">' data-role='button' data-icon='arrow-l' data-iconpos='left'>前へ</a>
             <a href='pdfsearch.pl?mode=mobile' data-role='button' data-icon='home' data-iconpos='left' >トップ</a>
     </div>
     <div data-type='horizontal' data-role='controlgroup' class='ui-btn-right'>
-        <a href='pdfsearch.pl' data-role='button' data-icon='home' data-iconpos='right' data-ajax="false">トップ(PC版)</a>
-        <a href='<TMPL_VAR NAME="nlink">' data-role='button' data-icon='arrow-r' data-iconpos='right' data-prefetch>次へ</a>
+        <a href='pdfsearch.pl' data-role='button' data-icon='home' data-iconpos='right' data-ajax="false">設定(未)</a>
+        <a href='<TMPL_VAR NAME="nlink">' data-role='button' data-icon='arrow-r' data-iconpos='right'>次へ</a>
     </div>
 </div> 
 <div data-role="content" id='top'>
@@ -74,7 +75,7 @@
     <input type='hidden' name='rows' id='rows' value="<TMPL_VAR NAME="rows">">
 </div>
 <div data-role='footer' data-position='fixed'>
-    <h3>Libre10 git '13Q2 Copyright yukikaze,long.inus,yussi</h3>
+    <h3>Libre10 '13Q2 Copyright yukikaze,long.inus,yussi</h3>
 </div>
 </div>
 </form>
index 2f04e7a..7b799f5 100644 (file)
@@ -3,8 +3,6 @@
 <html lang='ja'>
     <head>
     <meta charset='utf-8'>
-    <!--<meta name='viewport'>-->
-    <!--<link rel='stylesheet' href='./css/test.css' />-->
     <link rel='stylesheet' href='//ajax.aspnetcdn.com/ajax/jquery.mobile/1.3.0/jquery.mobile-1.3.0.min.css' />
     <script src='//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'></script>
     <script>window.jQuery || document.write('<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"><\/script>')</script>
             });
                        $('div.ui-input-search').bind('keypress',function(e){
                                if(e.keyCode == 13){
-                                       $.mobile.changePage("pdfsearch.pl?mode=&width=&height=&search_text=\"" + $('#search-text').val() + "\"",{transition:'slide'});
+                if ($('#search-text').val().length > 0){
+                    $.mobile.changePage("pdfsearch.pl?mode=&width=&height=&search_text=\"" + $('#search-text').val() + "\"",{transition:'slide'});
+                }
                                }
                        });
                        $('#jumpPage').bind("click",function(e,ui){
                                $.mobile.changePage("<TMPL_VAR NAME="jumplink">"+$('#jumpPagenum').val(),{transition:'slidedown'});
-                       
                        });
-                               $("#images").bind("taphold",function(){
-                                       $.mobile.changePage("<TMPL_VAR NAME="jpeglink">");      
-                               });
+            $.mobile.loadPage("<TMPL_VAR NAME="nlink">",{showLoadMsg: false});
+            $.mobile.loadPage("<TMPL_VAR NAME="blink">",{showLoadMsg: false});
               });
   </script>
   
  <div data-role='header' data-position='fixed'>
   <h3><TMPL_VAR NAME="nowpage"> / <TMPL_VAR NAME="maxpage"></h3>
   <div data-type='horizontal' data-role='controlgroup' class='ui-btn-left'>
-   <a href='<TMPL_VAR NAME="blink">' data-role='button' data-icon='arrow-l' data-iconpos='left' data-prefetch>前へ</a>
+   <a href='<TMPL_VAR NAME="blink">' data-role='button' data-icon='arrow-l' data-iconpos='left'>前へ</a>
    <a href='<TMPL_VAR NAME="homelink">' data-role='button' data-icon='home' data-iconpos='left' >トップ</a>
   </div>
   <div data-type='horizontal' data-role='controlgroup' class='ui-btn-right'>
    <a href='#movePageDialog' data-role='button' data-icon='forward' data-iconpos='left' >移動</a>
-   <a href='<TMPL_VAR NAME="nlink">' data-role='button' data-icon='arrow-r' data-iconpos='right' data-prefetch>次へ</a>
+   <a href='<TMPL_VAR NAME="nlink">' data-role='button' data-icon='arrow-r' data-iconpos='right'>次へ</a>
   </div>
   
  </div>
  </div>
 
  <div data-role='footer' data-position='fixed'>
-  <h3>Libre10 git '13Q2 Copyright yukikaze,long.inus,yussi</h3>
+  <h3>Libre10 '13Q2 Copyright yukikaze,long.inus,yussi</h3>
   <div data-type='horizontal' data-role='controlgroup' class='ui-btn-left'>
    <a href='<TMPL_VAR NAME="blink">' data-role='button' data-icon='arrow-l' data-iconpos='left'>前へ</a>
    <a href='<TMPL_VAR NAME="homelink">' data-role='button' data-icon='home' data-iconpos='left' >トップ</a>
   </div>
   <div data-type='horizontal' data-role='controlgroup' class='ui-btn-right'>
-   <a href='pdfmanager.pl' data-rel='popup' data-role='button' data-icon='gear' data-iconpos='left' >書籍設定</a>
+   <a href='pdfmanager.pl' data-rel='popup' data-role='button' data-icon='gear' data-iconpos='left'>書籍設定(未)</a>
    <a href='<TMPL_VAR NAME="nlink">' data-role='button' data-icon='arrow-r' data-iconpos='right'>次へ</a>
   </div>
  </div>