Organization html
Jump to navigation
Jump to search
| Line 333: | Line 333: | ||
</div> | </div> | ||
| − | |||
| − | |||
| + | <!--------------------------Coordinates--------------------------> | ||
| + | <!-- | ||
<label for="latInput">Latitude</label> | <label for="latInput">Latitude</label> | ||
<input id="latInput"/> | <input id="latInput"/> | ||
<label for="lngInput">Longitude</label> | <label for="lngInput">Longitude</label> | ||
<input id="lngInput"/> | <input id="lngInput"/> | ||
| − | + | --> | |
| − | |||
| − | |||
<div class="ci_form_section"> | <div class="ci_form_section"> | ||
| Line 352: | Line 350: | ||
Coordinates | Coordinates | ||
</span> | </span> | ||
| + | |||
| + | |||
| + | <div id="map" style="height : 300px"></div> | ||
<input class="cultura_italiana_form_input" type="text" placeholder="Coordinates" name="Form organization[Coordinates]" value=""> | <input class="cultura_italiana_form_input" type="text" placeholder="Coordinates" name="Form organization[Coordinates]" value=""> | ||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
| − | + | Zoom and move the map to the precise location of your organization to pick its coordinates. | |
</span> | </span> | ||
| − | <!-------------------------- | + | |
| + | <!--------------------------FOUNDATION YEAR--------------------------> | ||
<div class="ci_form_section"> | <div class="ci_form_section"> | ||
<span class="ci_form_section_label"> | <span class="ci_form_section_label"> | ||
| − | + | Foundation year | |
</span> | </span> | ||
| − | + | <select class="ci_form_input" name="Form organization[Foundation year]"> | |
| − | <select class=" | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<option></option> | <option></option> | ||
<option>2020</option> | <option>2020</option> | ||
| Line 495: | Line 442: | ||
<option>1950</option> | <option>1950</option> | ||
</select> | </select> | ||
| − | |||
| Line 502: | Line 448: | ||
</div> | </div> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<!--------------------------OFFICIAL WEBSITE--------------------------> | <!--------------------------OFFICIAL WEBSITE--------------------------> | ||
<div class="ci_form_section"> | <div class="ci_form_section"> | ||
| Line 546: | Line 484: | ||
$('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); | $('#select_countries option:contains("</html>{{#ci_visitorCountry:}}<html>")').prop('selected',true); | ||
| + | $('#select_countries').on('change',function() { | ||
| + | |||
| + | |||
| + | }) | ||
$('.ci_form textarea').autosize(); | $('.ci_form textarea').autosize(); | ||
| Line 571: | Line 513: | ||
var marker = L.marker(mapCenter).addTo(map); | var marker = L.marker(mapCenter).addTo(map); | ||
| + | |||
var updateMarker = function(lat, lng) { | var updateMarker = function(lat, lng) { | ||
marker | marker | ||
| Line 582: | Line 525: | ||
map.on('click', function(e) { | map.on('click', function(e) { | ||
| + | /* | ||
$('#latInput').val(e.latlng.lat); | $('#latInput').val(e.latlng.lat); | ||
$('#lngInput').val(e.latlng.lng); | $('#lngInput').val(e.latlng.lng); | ||
| + | */ | ||
| + | $('#coordinates').val(e.latlng.lat + ', ' + e.latlng.lng); | ||
updateMarker(e.latlng.lat, e.latlng.lng); | updateMarker(e.latlng.lat, e.latlng.lng); | ||
}); | }); | ||
| − | + | /* | |
var updateMarkerByInputs = function() { | var updateMarkerByInputs = function() { | ||
return updateMarker( $('#latInput').val() , $('#lngInput').val()); | return updateMarker( $('#latInput').val() , $('#lngInput').val()); | ||
| Line 594: | Line 540: | ||
$('#latInput').on('input', updateMarkerByInputs); | $('#latInput').on('input', updateMarkerByInputs); | ||
$('#lngInput').on('input', updateMarkerByInputs); | $('#lngInput').on('input', updateMarkerByInputs); | ||
| + | */ | ||
}); | }); | ||
Revision as of 09:18, 7 March 2020