added config.xml

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-01-12 16:45:52 +04:00
parent d7f304fe68
commit afeaf02b25
3 changed files with 36 additions and 4 deletions

0
README.md Normal file → Executable file
View File

31
config.xml Executable file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:gap="http://phonegap.com/ns/1.0"
id="org.PortableMag"
versionCode="10"
version="0.0.1">
<name>PortableMag</name>
<description>
Portable Magazine demo.
</description>
<author href="https://github.com/flynx/PortableMag" email="alex.nanou@gmail.com">
Alex A. Naanou
</author>
<!--preference name="orientation" value="landscape" /-->
<preference name="fullscreen" value="true" />
<feature name="http://api.phonegap.com/1.0/file"/>
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/notification"/>
</widget>

View File

@ -43,13 +43,13 @@ function setPageTo(name){
function nextPage(){
var i = curPageIndex()
var PAGES = getPages()
var pages = getPages()
if(i+1 >= PAGES.length){
if(i+1 >= pages.length){
return
}
setPageTo(PAGES[i+1])
setPageTo(pages[i+1])
}
function prevPage(){
@ -100,7 +100,7 @@ function toggleIndex(){
</p>
</div>
<div class="view B">
<div style="height: 95%; width: 95%; margin: 2%; border: 5px dashed gray;">
<div style="height: 95%; width: 95%; margin: 2%; border: 5px dotted gray;">
<h2>Page B</h2>
</div>
@ -112,6 +112,7 @@ function toggleIndex(){
<h2>Page D</h2>
</div>
</div>
<!-- remove this... -->
<div class="previews">
<div class="article current" id="A">
<div class="preview"></div>