-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
169 lines (131 loc) · 5.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE HTML>
<html lang="en" class="no-js">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta charset="utf-8" />
<title>pyramid_jqm</title>
<link rel="stylesheet" type="text/css" href="jquery.mobile-20110719.min.css" />
<link rel="stylesheet" type="text/css" href="jquery.toastmessage-0.3-20110510.css" />
<link rel="stylesheet" type="text/css" href="pyramid.css" />
<script type="text/javascript" src="jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="mobileinit.js"></script>
<script type="text/javascript" src="jquery.mobile-20110719.min.js"></script>
<script type="text/javascript" src="jquery.validate-1.8.0.js"></script>
<script type="text/javascript" src="modernizr.min.js"></script>
<script type="text/javascript" src="jquery.toastmessage-0.3-20110510.js"></script>
<script type="text/javascript" src="pyramid.js"></script>
</head>
<body>
<div data-role="page" id="home">
<div data-role="header">
<h1>pyramid_jqm</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider">Demos</li>
<li>
<a href="#about">About</a>
</li>
<li>
<a href="#map">Map Demo</a>
</li>
<li>
<a href="#form">Form Demo</a>
</li>
</ul>
</div>
</div>
<div data-role="page" id="about">
<div data-role="header" >
<a href="#home">Home</a>
<h1>About</h1>
</div>
<div data-role="content">
<img src="images/pyramid-small.png"/>
<p>
<a href="http://pylonsproject.org">Pyramid</a> is a small, fast,
down-to-earth web framework written in Python.</p>
<p>
<a href="http://github.com/Pylons/pyramid_jqm">pyramid_jqm</a> is
a scaffolding package which gets you started on a
simple <a href="http://jquerymobile.org">jQuery Mobile</a>
application.
</p>
<p>This application is using <i>pyramid_jqm</i> version
<span id="about-pyramid-jqm-version"></span> and Pyramid version
<span id="about-pyramid-version"></span>.</p>
</div>
</div>
<div data-role="page" id="map">
<div data-role="header" data-position="fixed">
<a href="#home">Home</a>
<h1>Map Demo</h1>
</div>
<div data-role="content" id="map-content">
<div id="map-canvas"></div>
</div>
</div>
<div data-role="page" id="form">
<div data-role="header" >
<a href="#home">Home</a>
<h1>Form Demo</h1>
</div>
<div data-role="content">
<form id="personalinfo-form" method="post"
action="/change_personalinfo">
<fieldset data-role="fieldcontain">
<label for="personalinfo-email">Email:</label>
<input type="email" name= "email" id="personalinfo-email"
class="required"/>
<label for="personalinfo-firstname">First Name:</label>
<input type="text" name="firstname" id="personalinfo-firstname"
class="required"/>
<label for="personalinfo-lastname">Last Name:</label>
<input type="text" name="lastname" id="personalinfo-lastname"
class="required"/>
<label for="personalinfo-country">Country:</label>
<select name="country" id="personalinfo-country">
<option value="choose" data-placeholder="true">Choose...</option>
</select>
<label for="personalinfo-frameworks">Your Web Frameworks</label>
<select id="personalinfo-frameworks"
name="frameworks"
data-native-menu="false"
multiple="multiple"
required="true">
<option value="choose" data-placeholder="true">Choose...</option>
</select>
<label for="personalinfo-newsletter">Receive newsletter</label>
<input type="checkbox" name="newsletter"
id="personalinfo-newsletter"/>
<a href="#" id="personalinfo-submit" rel="external"
data-role="button">Submit</a>
</fieldset>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=pyramid.init_google_maps";
document.body.appendChild(script);
$('#about').bind('pageshow', function () {
pyramid.about_pageshow($(this));
});
$('#map').bind('pagecreate', function () {
pyramid.map_pagecreate($(this));
});
$('#map').bind('pageshow', function () {
pyramid.map_pageshow($(this));
});
$('#form').bind('pagecreate', function () {
pyramid.form_pagecreate($(this));
});
$('#form').bind('pageshow', function (event, ui) {
pyramid.form_pageshow($(this), ui);
});
});
</script>
</body>
</html>