-
Notifications
You must be signed in to change notification settings - Fork 2
/
src.html
178 lines (171 loc) · 8.71 KB
/
src.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
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Hitchmap - Find hitchhiking spots on a map - Add new spots</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="manifest" href="/manifest.json">
$folium_head
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
$hitch_style
</style>
</head>
<body>
$folium_body
<div class="sidebar spot spot-form-container">
<h3>New Review</h3>
<p class=greyed></p>
<form id=spot-form action=experience method=post>
<input type="hidden" name="coords">
<label>How do you rate the spot?</label>
<div class="clear">
<div class="rate">
<input required type="radio" id="star5" name="rate" value="5" />
<label for="star5" title="5 stars">5 stars</label>
<input type="radio" id="star4" name="rate" value="4" />
<label for="star4" title="4 stars">4 stars</label>
<input type="radio" id="star3" name="rate" value="3" />
<label for="star3" title="3 stars">3 stars</label>
<input type="radio" id="star2" name="rate" value="2" />
<label for="star2" title="2 stars">2 stars</label>
<input type="radio" id="star1" name="rate" value="1" />
<label for="star1" title="1 star">1 star</label>
</div>
</div>
<label>How long did you wait? Leave blank if you don't remember.</label>
<input type="number" name="wait" min="0" max="9999" size="4"> minutes
<label>Optional comment</label>
<div><textarea name=comment></textarea></div>
<label for="username">Public nickname (alphanumeric)</label>
<input name="username" maxlength="32" pattern="[a-zA-Z0-9]*">
<label for="signal">Optionally, how you did you signal to drivers?</label>
<div>
<select name="signal" class="driver-signal">
<option selected value="null" title="null"></option>
<option value="sign" title="Sign">Sign</option>
<option value="thumb" title="thumb">Thumb</option>
<option value="ask" title="talk">Asked around</option>
<option value="ask-sign" title="talk">Asked around with a sign in hand</option>
</select>
</div>
<!-- <div class="driver-signal"> -->
<!-- <input required type="radio" id="comm-thumb" name="signal" value="thumb" /> -->
<!-- <label for="comm-thumb" title="thumb">Thumb</label> -->
<!-- <input required type="radio" id="comm-sign" name="signal" value="sign" /> -->
<!-- <label for="comm-sign" title="Sign">Sign</label> -->
<!-- <input required type="radio" id="comm-ask" name="signal" value="ask" /> -->
<!-- <label for="comm-ask" title="talk">Asked around</label> -->
<!-- <br/> -->
<!-- <input required type="radio" id="comm-ask-sign" name="signal" value="ask" /> -->
<!-- <label for="comm-ask-sign" title="talk">Asked around with a sign in hand</label> -->
<!-- <br/> -->
<!-- <input checked required type="radio" id="comm-null" name="signal" value="null" /> -->
<!-- <label for="comm-null" title="null">Prefer not to answer</label> -->
<!-- </div> -->
<!-- <label for="gender">Optionally, what genders were you and your co-hitchhikers?</label> -->
<!-- <input type="number" value="0" name="males" min="0" max="9" size="2"> males, -->
<!-- <input type="number" value="0" name="females" min="0" max="9" size="2"> females, -->
<!-- <input value="0" type="number" name="others" min="0" max="9" size="2"> others -->
<input type="submit" value="Submit">
</form>
</div>
<div class="sidebar show-spot spot">
<h3 id="spot-header"><a target="_blank"></a></h3>
<div id='hitchwiki'></div>
<div id='spot-summary'></div>
<h4>Comments</h4>
<div id='spot-text'></div>
<div><button>Review this spot</button></div>
<i id="extra-text"></i>
<hr>
<div class="report-dup"><a href="javascript:;"
title="Is there another spot close by that is a duplicate of this spot?"><i
class="fa-solid fa-left-right" style="color: red"></i> Merge
into nearby spot</a>
</div>
<div class="report-hitchwiki"><a href="javascript:;" title="Is this a spot mentioned on the Hitchwiki?"><i
class="fa-solid fa-thumbs-up" style="color: red"></i> Link to Hitchwiki</a>
</div>
</div>
<div class="sidebar success">
<h3>Success!</h3>
<p>Thank you for your contribution!</p>
<p>Your review will appear on the map within 10 minutes. Refreshing may be needed.</p>
</div>
<div class="sidebar success-duplicate">
<h3>Success!</h3>
<p>Thanks for your contribution!</p>
<p>Your duplicate report will be subject to a manual review, or it will be merged automatically within 10 minutes.</p>
</div>
<div class="sidebar success-hitchwiki">
<h3>Success!</h3>
<p>Thanks for your contribution!</p>
Your hitchwiki link has been recorded and will show up promptly.
</div>
<div class="sidebar menu">
<ul class="no-style">
<li><i class="fa fa-github"></i><a href="https://github.com/bopjesvla/hitch">Contribute</a></li>
<li><i class="fa fa-github"></i><a href="https://github.com/bopjesvla/hitch/issues/new">Report bugs</a></li>
<li><i class="fa fa-download"></i><a href="https://hitchmap.com/dump.sqlite">Download spots as SQLite</a>
</li>
<li><i class="fa fa-download"></i><a href="javascript:exportAsGPX()">Download spots as GPX</a></li>
<li><i class="fa fa-map-pin"></i><a href="https://hitchmap.com/recent.html">Recent reviews</a></li>
<li><i class="fa fa-chart-simple"></i><a href="https://hitchmap.com/dashboard.html">Charts & graphs</a></li>
</ul>
<h4>Credits</h4>
<p>
© <a href=https://github.com/bopjesvla>Bob de Ruiter</a> &
<a href=https://tillwenke.github.io/about />Till Wenke</a>
</p>
<p>
Maps and data by
<a href=https://openstreetmap.org>OpenStreetMap</a>,
<a href=https: //tinyworldmap.com>tinyworldmap</a> and
<a href=https://hitchwiki.org>HitchWiki</a>
</p>
</div>
<a href="javascript:void(0);" id="sb-close">
<svg width="14" height="14" version="1.1" xmlns="http://www.w3.org/2000/svg">
<line x1="1" y1="13" x2="13" y2="1" stroke="black" stroke-width="2" />
<line x1="1" y1="1" x2="13" y2="13" stroke="black" stroke-width="2" />
</svg>
</a>
<div class="topbar spot step1">
<span>Zoom the crosshairs into your hitchhiking spot. Be as precise as possible!</span>
<br><button>Done</button><button>Cancel</button>
</div>
<div class="topbar spot step2">
<span>
Where did your ride take you? Move the crosshairs near that location, then press done.<sup><a
href="javascript:void(0);"
title="If you were dropped off at multiple locations when using this spot, either choose something in the middle or leave multiple reviews."
class=step2-help>?</a></sup>
</span>
<br><button>Skip</button><button>Done</button><button>Cancel</button>
</div>
<div class="topbar route step1">
<span>Zoom the crosshairs into your starting point.</span>
<br>
<span>The route planner works best for long-distance travel. Coverage is best in Europe.</span>
<br><button>Done</button><button>Cancel</button>
</div>
<div class="topbar route step2">
<span>Move the crosshairs to your destination.</span>
<br><button>Done</button><button>Cancel</button>
</div>
<div class="topbar duplicate">
<span>Click on the duplicated marker.</span>
<br><button>Cancel</button>
</div>
<script>
var allMarkers = [], destinationMarkers = []
</script>
<script>
$folium_script
</script>
<script>
$hitch_script
</script>
</body>