-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample1.html
77 lines (67 loc) · 1.94 KB
/
sample1.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
<!DOCTYPE html>
<!--[if lt IE 7 ]><html lang="en" class="ie ie6"><![endif]-->
<!--[if IE 7 ]><html lang="en" class="ie ie7"><![endif]-->
<!--[if IE 8 ]><html lang="en" class="ie ie8"><![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"><!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css" media="screen">
* {
margin: 0;
padding: 0;
}
body {
padding: 20px;
font-family: helvetica;
background-color: #eee;
color: #666;
}
label {
display: block;
line-height: 1.5;
font-weight: bold;
}
h1 {
padding-bottom: 10px;
}
p {
font-size: 12px;
line-height: 1.5;
padding-bottom: 10px;
}
#sample_form_wrapper {
padding: 20px 0;
}
a:link, a:visited {
color: #6D8BCD;
}
a:hover {
text-decoration: none;
}
img { border: 0; }
</style>
<title>jQuery Coordinate Picker - Sample 1</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="coordinate_picker/jquery.coordinate_picker.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="coordinate_picker/styles/smodal/shadow.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
$('#coordinate_picker').coordinate_picker({
'lat': '#lat',
'long': '#long'
});
});
</script>
</head>
<body>
<h1>jQuery Coordinate Picker - Sample 1</h1>
<p>This sample uses the lat and long selectors parameters in the plugin to set the form fields to the coordinates selected.</p>
<div id="sample_form_wrapper">
<form method="post">
<p><a href="" id="coordinate_picker">Coordinate Picker</a></p>
<p><label for="long">Long:</label><input type="text" name="long" value="" id="long" /></p>
<p><label for="lat">Lat:</label><input type="text" name="lat" value="" id="lat" /></p>
</form>
</div>
</body>
</html>