Files
openlayers/master/examples/test_iPhone-SwapView.html
Éric Lemoine 5d14b9e2d4 Updated
2013-02-20 10:38:25 +01:00

84 lines
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>SwapView</title>
<link href="../themes/iphone/base.css" rel="stylesheet">
<link href="../themes/iphone/IconContainer.css" rel="stylesheet">
<style>
.lnk {
font-size: 14px;
color: #0B5199;
text-decoration: none;
}
html,body{
height: 100%;
overflow: hidden;
margin: 0px;
}
</style>
<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="parseOnLoad: true, mblAlwaysHideAddressBar: true"></script>
<script language="JavaScript" type="text/javascript">
dojo.require("dojox.mobile"); // This is a mobile app.
dojo.require("dojox.mobile.parser"); // This mobile app supports running on desktop browsers
dojo.require("dojox.mobile.compat"); // This mobile app uses declarative programming with fast mobile parser
dojo.require("dojox.mobile.IconContainer");
dojo.require("dojox.mobile.SwapView");
</script>
</head>
<body style="visibility:hidden;">
<div id="foo" dojoType="dojox.mobile.SwapView" selected="true">
<h2 dojoType="dojox.mobile.RoundRectCategory">Page flipping demo</h2>
<div dojoType="dojox.mobile.RoundRect">
Swipe the screen left or right to flip between the views.
There are 4 views in this demo.
Vertical scrolling and page indicator are not supported.
</div>
</div>
<div id="bar" dojoType="dojox.mobile.SwapView">
<h1 dojoType="dojox.mobile.Heading">Search Result</h1>
<ul dojoType="dojox.mobile.RoundRectList">
<li class="mblVariableHeight" dojoType="dojox.mobile.ListItem" style="font-size:10px">
1. <a href="#" class="lnk">Dojo: Traditional Karate-do Spirit</a><br>
Sarah Connor Hardcover<br>
Eligible for FREE Super Saver Shipping<br>
<font color="red">$14.50 (50%)</font> In Stock<br>
# (531)
</li>
<li class="mblVariableHeight" dojoType="dojox.mobile.ListItem" style="font-size:10px">
2. <a href="#" class="lnk">Japanese Martial Arts Dojo</a><br>
Martin Parker Hardcover<br>
<font color="red">$14.00 (60%)</font> In Stock<br>
# (173)
</li>
</ul>
</div>
<div id="icon1" dojoType="dojox.mobile.SwapView">
<h1 dojoType="dojox.mobile.Heading">Icon Container 1</h1>
<ul dojoType="dojox.mobile.IconContainer">
<li dojoType="dojox.mobile.IconItem" label="app1" icon="images/icon-1.png" lazy="true"><div class="box"></div></li>
<li dojoType="dojox.mobile.IconItem" label="app2" icon="images/icon-1.png" lazy="true"><div class="box"></div></li>
<li dojoType="dojox.mobile.IconItem" label="app3" icon="images/icon-1.png" lazy="true"><div class="box"></div></li>
<li dojoType="dojox.mobile.IconItem" label="moveTo" icon="images/icon-1.png" moveTo="about" transition="slide"></li>
<li dojoType="dojox.mobile.IconItem" label="href" icon="images/icon-1.png" href="test_iPhone-RoundRectList.html" transition="slide"></li>
<li dojoType="dojox.mobile.IconItem" label="url" icon="images/icon-1.png" url="view-sample.html" transition="slide"></li>
</ul>
</div>
<div id="icon2" dojoType="dojox.mobile.SwapView">
<h1 dojoType="dojox.mobile.Heading">Icon Container 2</h1>
<ul dojoType="dojox.mobile.IconContainer">
<li dojoType="dojox.mobile.IconItem" label="test1" icon="images/icon-1.png" lazy="true"><div class="box"></div></li>
<li dojoType="dojox.mobile.IconItem" label="test2" icon="images/icon-1.png" lazy="true"><div class="box"></div></li>
<li dojoType="dojox.mobile.IconItem" label="test3" icon="images/icon-1.png" lazy="true"><div class="box"></div></li>
</ul>
</div>
</body>
</html>