레이블이 navbar인 게시물을 표시합니다. 모든 게시물 표시
레이블이 navbar인 게시물을 표시합니다. 모든 게시물 표시

2016년 3월 29일 화요일

Cordova + jQuery Mobile fixed Navbar

Cordova + jQuery Mobile
Fixed Navbar in multi page.


I want UI like this.


In my project has directory tree like this.


This directory tree is project root tree.
We focus on www directory.

1. www/index.html
2. www/bookstore.html
3. www/option.html

These files are used for making fixed nav UI.











Codes here.

<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>
view raw bookstore.html hosted with ❤ by GitHub
<!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>
view raw index.html hosted with ❤ by GitHub
<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>
view raw option.html hosted with ❤ by GitHub

index.html is first page and center btn page on navbar.
bookstore.html is left btn page on navbar
option.html is right btn page on navbar

<Core Code>
The point code is footer, navbar.
<div data-role="footer" data-id="foo1" data-position="fixed">
Should use data-id same id on multi pages.

Result

Some issue on this project.
- data-transition has some problem, transition has low performance


JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...