Skip to content

Instantly share code, notes, and snippets.

@pineoc
Created March 29, 2016 07:21
Show Gist options
  • Save pineoc/b057c57a2e667c0558d3 to your computer and use it in GitHub Desktop.
Save pineoc/b057c57a2e667c0558d3 to your computer and use it in GitHub Desktop.
Cordova + jQuery mobile fixed navbar multi page
<div data-role="page" class="ui-page ui-body-c ui-page-header-fixed ui-page-footer-fixed" tabindex="0">
<div data-role="header" id="header" data-position="fixed">
<img id="head_title" src="img/head_title.png" />
</div>
<div data-role="content">
<!-- table for books (book case) -->
<table style="width:100%" id="bookcase"></table>
</div>
<!-- subscribe btn -->
<div data-role="footer" data-id="foo1" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="#" class="ui-btn-active ui-state-persist" data-prefetch="true" data-transition="none">서점</a></li>
<li><a href="index.html" data-prefetch="true" data-transition="none">내책장</a></li>
<li><a href="option.html" data-prefetch="true" data-transition="none">설정</a></li>
</ul>
</div>
<!-- /navbar -->
</div>
</div>
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'" />
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.5.min.css">
<title>KingKong Rocket56</title>
<!-- jquery -->
<script src="js/jquery-2.1.4.min.js"></script>
<!-- jquery mobile -->
<script src="js/jquery.mobile-1.4.5.min.js"></script>
<!-- image cache module -->
<script src="js/imgcache.js"></script>
<!-- file download, file delete functions -->
<script type="text/javascript" src="js/functions.js"></script>
</head>
<body>
<div data-role="page" id="case_page" class="ui-page ui-body-c ui-page-header-fixed ui-page-footer-fixed" tabindex="0">
<div data-role="header" id="header" data-position="fixed">
<img id="head_title" src="img/head_title.png" />
</div>
<div data-role="content">
<!-- table for books (book case) -->
<table style="width:100%" id="bookcase"></table>
</div>
<!-- subscribe btn -->
<div data-role="footer" data-id="foo1" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="bookstore.html" data-prefetch="true" data-transition="none">서점</a></li>
<li><a href="#" class="ui-btn-active ui-state-persist" data-prefetch="true" data-transition="none">내책장</a></li>
<li><a href="option.html" data-prefetch="true" data-transition="none">설정</a></li>
</ul>
</div><!-- /navbar -->
</div>
</div>
<div data-role="page" class="ui-page ui-body-c ui-page-header-fixed ui-page-footer-fixed" data-url="/bookstore.html" tabindex="0"></div>
<div data-role="page" class="ui-page ui-body-c ui-page-header-fixed ui-page-footer-fixed" data-url="/option.html" tabindex="0"></div>
<!-- cordova script -->
<script type="text/javascript" src="cordova.js"></script>
</body>
</html>
<div data-role="page" class="ui-page ui-body-c ui-page-header-fixed ui-page-footer-fixed" tabindex="0">
<div data-role="header" id="header" data-position="fixed">
<img id="head_title" src="img/head_title.png" />
</div>
<div data-role="content">
<!-- table for books (book case) -->
<table style="width:100%" id="bookcase"></table>
</div>
<!-- subscribe btn -->
<div data-role="footer" data-id="foo1" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="bookstore.html" data-prefetch="true" data-transition="none">서점</a></li>
<li><a href="index.html" data-prefetch="true" data-transition="none">내책장</a></li>
<li><a href="#" class="ui-btn-active ui-state-persist" data-prefetch="true" data-transition="none">설정</a></li>
</ul>
</div>
<!-- /navbar -->
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment