aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/www/around.html
blob: f3a6bee0653ae7126f7be9524edad6e0c6c0cb2d (plain)
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!doctype html>
<html class="no-js" lang="en-gb">
    <head>
        <meta name="viewport" content="initial-scale=1.0">

        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
        <meta name="HandHeldFriendly" content="true">
        <meta name="mobileoptimized" content="0">

        <link rel="stylesheet" href="css/base.css">
        <link rel="stylesheet" href="css/layout.css" media="(min-width:48em)">
        <link rel="stylesheet" href="css/mobile.css">

        <script type="text/javascript" src="js/config.js"></script>
        <script type="text/javascript" src="js/json2.js"></script>

        <script type="text/javascript" charset="utf-8" src="cordova-1.8.0.js"></script>

        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <script type="text/javascript" src="js/jquery-1.7.0.min.js"></script>

        <script src="js/jquery.validate.min.js" type="text/javascript" charset="utf-8"></script>

        <script type="text/javascript" src="js/geo.min.js"></script>
        <script type="text/javascript" src="js/fixmystreet.js"></script>
        <script type="text/javascript" src="js/mobile.js"></script>
        <script type="text/javascript" src="js/OpenLayers.fixmystreet.js"></script>
        <script type="text/javascript" src="js/map-OpenLayers.js"></script>
        <script type="text/javascript" src="js/map-bing-ol.js"></script>
        <script type="text/javascript" src="js/jquery.ba-hashchange.min.js"></script>

        <script type="text/javascript">
            validation_strings = {
                update: 'Please enter a message',
                title: 'Please enter a subject',
                detail: 'Please enter some details',
                name: {
                    required: 'Please enter your name',
                    validName: 'Please enter your full name, councils need this information – if you do not wish your name to be shown on the site, untick the box below'
                },
                category: 'Please choose a category',
                rznvy: {
                    required: 'Please enter your email',
                    email: 'Please enter a valid email'
                },
                email: {
                    required: 'Please enter your email',
                    email: 'Please enter a valid email'
                }
            };
        </script>
        <title> Viewing a location :: FixMyStreet</title>
    </head>

    <body class="mappage">

    <div class="wrapper">
        <div class="table-cell">
            <header id="site-header" role="banner">
                <div class="container">
                    <span id="site-logo"></span>
                </div>
            </header>

            <div id="user-meta">

            </div>

            <div class="container">
                <div class="content" role="main">

                    <form action="" method="post" name="mapForm" id="mapForm" enctype="multipart/form-data" class="validate">

                    <input type="hidden" name="pc" id="pc" value="">
                    <input type="hidden" name="latitude" id="fixmystreet.latitude" value="">
                    <input type="hidden" name="longitude" id="fixmystreet.longitude" value="">

                    <input type="hidden" name="zoom" value="2">
                    <script type="text/javascript">
                        var fixmystreet = {
                            'page': 'around',
                            'area': '',
                            'all_pins': '',
                            'latitude': localStorage.latitude,
                            'longitude': localStorage.longitude,

                            'zoom': 2,
                            'numZoomLevels': 5,
                            'zoomOffset': 13,
                            'map_type': "",
                            'pins': [  ]

                        };

                        $('#fixmystreet\\.latitude').val( localStorage.latitude );
                        $('#fixmystreet\\.longitude').val( localStorage.longitude );
                        $('#pc').val( localStorage.pc );
                    </script>
                    <div id="map_box">
                        <div id="map"></div>
                            <p id="sub_map_links">
                                <a id="hide_pins_link" rel="nofollow" href="">Hide pins</a>
                                <a id="all_pins_link" rel="nofollow" href="">Show old</a>
                            </p>
                        </div>

                        <div id="side">

                            <h1 class="big-green-banner">Click map to report a problem</h1>

                            <section class="full-width">
                                <menu id="problems-nav" class="tab-nav">
                                    <ul>
                                        <li><a href="#current">Problems on the map</a></li>
                                        <li><a href="#current_near">Problems nearby</a></li>
                                    </ul>
                                </menu>
                                <ul id="current" class="issue-list-a tab">
                                    <li><p>No problems have been reported yet.</p></li>
                                </ul>

                                <ul id="current_near" class="issue-list-a tab">
                                    <li><p>No problems found.</p></li>
                                </ul>
                            </section>
                        </div>

                        <div style="display:none" id="side-form">
                            <div id="report-a-problem-main">
                            <h1>Reporting a problem</h1>

                            <p id="councils_text">
                            All the information you provide here will be sent to <strong>the local council</strong>.
                            The subject and details of the problem will be public, plus your name if you give us permission.
                            </p>

                            <div id="report-a-problem-sidebar">

                                <div class="sidebar-tips">
                                    <p>You have located the problem at the point marked with a green pin on the map. If this is not the correct location, simply click on the map again. </p>
                                    <p>
                                        Please fill in details of the problem below. The council won't be able
                            to help unless you leave as much detail as you can, so please describe the exact location of
                            the problem (e.g. on a wall), what it is, how long it has been there, a description (and a
                            photo of the problem if you have one), etc.
                                    </p>
                                </div>

                                <div class="sidebar-notes">
                                    <p>Please note:</p>

                                    <ul class="plain-list">
                                        <li>We will only use your personal information in accordance with our <a href="/faq#privacy">privacy policy.</a></li>
                                        <li>Please be polite, concise and to the point.</li>
                                        <li>Please do not be abusive &mdash; abusing your council devalues the service for all users.</li>
                                        <li>Writing your message entirely in block capitals makes it hard to read, as does a lack of punctuation.</li>
                                        <li>Remember that FixMyStreet is primarily for reporting physical problems that can be fixed. If your problem is not appropriate for submission via this site remember that you can contact your council directly using their own website.</li>
                                    </ul>
                                </div>
                            </div>

                            <fieldset>
                                <div id="problem_form">
                                    <label for="form_title">Subject</label>
                                    <input type="text" value="" name="title" id="form_title" placeholder="Provide a title" required>

                                    <label for="form_detail">Details</label>
                                    <textarea rows="7" cols="26" name="detail" id="form_detail" placeholder="Please fill in details of the problem." required></textarea>

                                    <div id="form_category_row">
                                        <label class="inline" for="form_category">Category</label>
                                        <select name="category" id="form_category" required><option>Loading...</option></select>
                                    </div>

                                    <div id="add_photo">
                                        <label>Add a Photo</label>
                                        <input value="Take Photo" type="button" name="photo_button" id="id_photo_button" onclick="takePhoto(navigator.camera.PictureSourceType.CAMERA);" class="green-btn"> Or 
                                        <input value="Choose" type="button" name="existing" id="id_existing" onclick="takePhoto(navigator.camera.PictureSourceType.SAVEDPHOTOALBUM);" class="green-btn">
                                    </div>

                                    <div id="display_photo" style="display: none">
                                        <label>Your Photo</label>
                                        <img id="photo" src="" width="200" />
                                        <input value="Remove Photo" type="button" name="del_photo_button" id="id_del_photo_button" onclick="delPhoto();" class="green-btn">
                                    </div>

                                    <input type="hidden" name="photo" id="form_photo" value="">
                                    <label for="form_email" id="email_label">Your email</label>
                                    <input type="email" value="" name="email" id="form_email" placeholder="Please enter your email address" required>

                                        <div id="form_sign_in">
                                            <h3 id="now_submit">Now to submit your report&hellip;</h3>
                                            <h2 id="have_password">Do you have a FixMyStreet password?</h2>

                                            <div id="form_sign_in_yes" class="form-box">

                                                <h5><strong>Yes</strong> I have a password</h5>

                                                <label class="hidden-js n" for="password_sign_in">Yes I have a password</label>
                                                <div class="form-txt-submit-box">
                                                    <input type="password" name="password_sign_in" id="password_sign_in" placeholder="Your password" value="">
                                                    <input class="green-btn" type="submit" id="submit_sign_in" name="submit_sign_in" value="Report">
                                                </div>
                                            </div>

                                            <div id="form_sign_in_no" class="form-box">
                                                <h5 id="let_me_confirm"><strong>No</strong> Let me confirm my report by email</h5>

                                                <label for="form_may_show_nameme">Name</label>
                                                <input type="text" class="form-focus-trigger validName" value="" name="name" id="form_name" placeholder="Your name">

                                                <div class="checkbox-group">
                                                    <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
                                                    <label class="inline" for="form_may_show_name">Show my name publicly</label>
                                                </div>

                                                <div class="general-sidebar-notes form-focus-hidden">
                                                    <p class="dark">We never show your email address or phone number.</p>
                                                    <p id="providing_password">Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.</p>
                                                </div>

                                                <label class="form-focus-hidden" for="form_phone">Phone number</label>
                                                <input class="form-focus-hidden" type="text" value="" name="phone" id="form_phone" placeholder="Your phone number (optional)">

                                                <div id="password_surround">
                                                    <label class="form-focus-hidden" for="password_register" id="password_label">Password</label>
                                                </div>

                                                <div class="form-txt-submit-box form-focus-hidden">
                                                    <input type="password" name="password_register" id="password_register" value="" placeholder="Enter a password (optional)">
                                                    <input class="green-btn" type="submit" id="submit_register" name="submit_register" value="Report">
                                                </div>
                                            </div>
                                        </div>
                                </div>
                            </fieldset>

                            <input type="hidden" name="submit_problem" value="1">
                        </div>

                    </div>
                    </form>
                </div><!-- .content role=main -->
            </div><!-- .container -->
        </div><!-- .table-cell -->
    </div> <!-- .wrapper -->
     <div class="spinner" id="loadingSpinner">
        <div class="bar1"></div>
        <div class="bar2"></div>
        <div class="bar3"></div>
        <div class="bar4"></div>
        <div class="bar5"></div>
        <div class="bar6"></div>
        <div class="bar7"></div>
        <div class="bar8"></div>
        <div class="bar9"></div>
        <div class="bar10"></div>
        <div class="bar11"></div>
        <div class="bar12"></div>
      </div>
</body>
</html>