Permalink
Browse files

Whitespace.

  • Loading branch information...
1 parent 6f8b308 commit eba3ccd060b56d83e0ced20fade187b375c01d8e @tseaver tseaver committed Nov 2, 2011
@@ -23,13 +23,13 @@
<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>
@@ -44,13 +44,13 @@ <h1>pyramid_jqm</h1>
</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"/>
@@ -67,16 +67,16 @@ <h1>About</h1>
<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>
@@ -90,21 +90,21 @@ <h1>Map Demo</h1>
<a href="#home">Home</a>
<h1>Form Demo</h1>
</div>
-
+
<div data-role="content">
-
- <form id="personalinfo-form" method="post"
+
+ <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"
+ <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"
+ <input type="text" name="lastname" id="personalinfo-lastname"
class="required"/>
<label for="personalinfo-country">Country:</label>
<select name="country" id="personalinfo-country">
@@ -119,16 +119,16 @@ <h1>Form Demo</h1>
<option value="choose" data-placeholder="true">Choose...</option>
</select>
<label for="personalinfo-newsletter">Receive newsletter</label>
- <input type="checkbox" name="newsletter"
+ <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">
@@ -143,7 +143,7 @@ <h1>Form Demo</h1>
$('#about').bind('pageshow', function () {
pyramid.about_pageshow($(this));
});
-
+
$('#map').bind('pagecreate', function () {
pyramid.map_pagecreate($(this));
});
@@ -159,7 +159,7 @@ <h1>Form Demo</h1>
$('#form').bind('pageshow', function (event, ui) {
pyramid.form_pageshow($(this), ui);
});
-
+
});
</script>
@@ -17,7 +17,7 @@
var pyramid = function () {
- var
+ var
//--------------------------------------------------------------------
// Deferred: resolved when google maps initialize callback invoked
//--------------------------------------------------------------------
@@ -85,7 +85,7 @@ var pyramid = function () {
callback();
}
- }
+ }
return handler;
}
@@ -196,7 +196,7 @@ var pyramid = function () {
function set_device_location(loc) {
device_location_ready.resolve(loc);
}
-
+
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(set_device_location,
fail_device_location,
@@ -213,7 +213,7 @@ var pyramid = function () {
$('#about-pyramid-jqm-version').text(data.pjqm_version);
$('#about-pyramid-version').text(data.pyramid_version);
}).error(jqxhr_error);
-
+
}
//------------------------------------------------------------------------
@@ -232,8 +232,8 @@ var pyramid = function () {
function map_pagecreate(div) {
$.when(google_maps_ready, device_location_ready).done(
function (map_options, loc) {
- var
- point = new google.maps.LatLng(loc.coords.latitude,
+ var
+ point = new google.maps.LatLng(loc.coords.latitude,
loc.coords.longitude),
local_map_options = {'center': point},
canvas = $('#map-canvas')[0],
@@ -305,7 +305,7 @@ var pyramid = function () {
var url = api_prefix + '/get_personalinfo.json',
jqXHR = $.get(url);
-
+
jqXHR.success(function (data, st, xhr) {
var country = data['country'],
email = data['email'],
@@ -341,4 +341,3 @@ webframework_list = [
],
},
]
-

0 comments on commit eba3ccd

Please sign in to comment.