|
3 | 3 | pickerMap, |
4 | 4 | pickerMarker; |
5 | 5 |
|
6 | | - function initMap () { |
7 | | - pickerMap = new google.maps.Map(document.getElementById('picker_info_map_wrap'), { |
| 6 | + function initPickerMap () { |
| 7 | + pickerMap = new google.maps.Map(document.getElementById('ui_picker_map_wrap'), { |
8 | 8 | center: { |
9 | 9 | lat: 0, |
10 | 10 | lng: 0 |
|
21 | 21 | }; |
22 | 22 |
|
23 | 23 | if (typeof google != 'undefined') { |
24 | | - initMap(); |
| 24 | + initPickerMap(); |
25 | 25 | }; |
26 | 26 |
|
27 | 27 | if (typeof jQuery.ui != 'undefined') { |
|
74 | 74 | $('.ui-picker-info-desc-wrap').html($selectingParent.find('.ui-picker-info-desc').html()); |
75 | 75 | $('.ui-picker-info-title-wrap').html($selectingParent.find('.ui-picker-info-title').html()); |
76 | 76 |
|
77 | | - var pickerMapLatLng = new google.maps.LatLng($selectingParent.find('.ui-picker-info-map-lat').html(), $selectingParent.find('.ui-picker-info-map-lng').html()); |
| 77 | + var pickerMapLatLng = new google.maps.LatLng($selectingParent.find('.ui-picker-map-lat').html(), $selectingParent.find('.ui-picker-map-lng').html()); |
78 | 78 |
|
79 | 79 | pickerMap.setCenter(pickerMapLatLng); |
80 | 80 | pickerMarker.setMap(pickerMap); |
|
96 | 96 | $('.ui-picker-info-desc-wrap').html($first.find('.ui-picker-info-desc').html()); |
97 | 97 | $('.ui-picker-info-title-wrap').html($first.find('.ui-picker-info-title').html()); |
98 | 98 |
|
99 | | - var firstLatLng = new google.maps.LatLng($first.find('.ui-picker-info-map-lat').html(), $first.find('.ui-picker-info-map-lng').html()); |
| 99 | + var firstLatLng = new google.maps.LatLng($first.find('.ui-picker-map-lat').html(), $first.find('.ui-picker-map-lng').html()); |
100 | 100 |
|
101 | 101 | pickerMap.setCenter(firstLatLng); |
102 | 102 | pickerMarker.setMap(pickerMap); |
|
111 | 111 | }); |
112 | 112 |
|
113 | 113 | // ui-picker.html |
114 | | - $('#doc_datepicker_example_1').pickdate(); |
| 114 | + $('#ui_datepicker_example_1').pickdate(); |
115 | 115 |
|
116 | | - $('#doc_datepicker_example_2').pickdate({ |
| 116 | + $('#ui_datepicker_example_2').pickdate({ |
117 | 117 | cancel: 'Clear', |
118 | 118 | closeOnCancel: false, |
119 | 119 | closeOnSelect: true, |
|
137 | 137 | today: '' |
138 | 138 | }); |
139 | 139 |
|
140 | | - $('#doc_datepicker_example_3').pickdate({ |
| 140 | + $('#ui_datepicker_example_3').pickdate({ |
141 | 141 | disable: [ |
142 | 142 | [2016,0,12], |
143 | 143 | [2016,0,13], |
|
146 | 146 | today: '' |
147 | 147 | }); |
148 | 148 |
|
149 | | - $('#doc_datepicker_example_4').pickdate({ |
| 149 | + $('#ui_datepicker_example_4').pickdate({ |
150 | 150 | disable: [ |
151 | 151 | new Date(2016,0,12), |
152 | 152 | new Date(2016,0,13), |
|
155 | 155 | today: '' |
156 | 156 | }); |
157 | 157 |
|
158 | | - $('#doc_datepicker_example_5').pickdate({ |
| 158 | + $('#ui_datepicker_example_5').pickdate({ |
159 | 159 | disable: [ |
160 | 160 | 2, 4, 6 |
161 | 161 | ], |
162 | 162 | today: '' |
163 | 163 | }); |
164 | 164 |
|
165 | | - $('#doc_datepicker_example_6').pickdate({ |
| 165 | + $('#ui_datepicker_example_6').pickdate({ |
166 | 166 | disable: [ |
167 | 167 | { |
168 | 168 | from: [2016,0,12], |
|
172 | 172 | today: '' |
173 | 173 | }); |
174 | 174 |
|
175 | | - $('#doc_datepicker_example_7').pickdate({ |
| 175 | + $('#ui_datepicker_example_7').pickdate({ |
176 | 176 | disable: [ |
177 | 177 | true, |
178 | 178 | 3, |
|
182 | 182 | today: '' |
183 | 183 | }); |
184 | 184 |
|
185 | | - $('#doc_datepicker_example_8').pickdate({ |
| 185 | + $('#ui_datepicker_example_8').pickdate({ |
186 | 186 | disable: [ |
187 | 187 | { |
188 | 188 | from: [2016,0,10], |
|
198 | 198 | today: '' |
199 | 199 | }); |
200 | 200 |
|
201 | | - $('#doc_datepicker_example_9').pickdate({ |
| 201 | + $('#ui_datepicker_example_9').pickdate({ |
202 | 202 | max: [2016,0,30], |
203 | 203 | min: [2016,0,10], |
204 | 204 | today: '' |
205 | 205 | }); |
206 | 206 |
|
207 | | - $('#doc_datepicker_example_10').pickdate({ |
| 207 | + $('#ui_datepicker_example_10').pickdate({ |
208 | 208 | max: new Date(2016,0,30), |
209 | 209 | min: new Date(2016,0,10), |
210 | 210 | today: '' |
211 | 211 | }); |
212 | 212 |
|
213 | | - $('#doc_datepicker_example_11').pickdate({ |
| 213 | + $('#ui_datepicker_example_11').pickdate({ |
214 | 214 | max: true, |
215 | 215 | min: -10, |
216 | 216 | today: '' |
|
222 | 222 | $($(this).attr('data-target')).addClass('el-loading-done'); |
223 | 223 | }); |
224 | 224 |
|
225 | | - $('#doc_el_loading_example_wrap .tile-active-show').each(function (index) { |
| 225 | + $('#ui_el_loading_example_wrap .tile-active-show').each(function (index) { |
226 | 226 | var $this = $(this), |
227 | 227 | timer; |
228 | 228 |
|
|
243 | 243 | // ui-snackbar.html |
244 | 244 | var snackbarText = 1; |
245 | 245 |
|
246 | | - $('#doc_snackbar_toggle_1').on('click', function () { |
| 246 | + $('#ui_snackbar_toggle_1').on('click', function () { |
247 | 247 | $('body').snackbar({ |
248 | 248 | content: 'Simple snackbar ' + snackbarText + ' with some text', |
249 | 249 | show: function () { |
|
252 | 252 | }); |
253 | 253 | }); |
254 | 254 |
|
255 | | - $('#doc_snackbar_toggle_2').on('click', function () { |
| 255 | + $('#ui_snackbar_toggle_2').on('click', function () { |
256 | 256 | $('body').snackbar({ |
257 | 257 | content: '<a data-dismiss="snackbar">Dismiss</a><div class="snackbar-text">Simple snackbar ' + snackbarText + ' with some text and a simple <a href="javascript:void(0)">link</a>.</div>', |
258 | 258 | show: function () { |
|
0 commit comments