Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save klondaiker/b5965c81c3329154c857aac082e7a1b2 to your computer and use it in GitHub Desktop.
Save klondaiker/b5965c81c3329154c857aac082e7a1b2 to your computer and use it in GitHub Desktop.
POST https://geidea.gd-pprod-infra.net/operator/content_pages
utf8=✓
authenticity_token=slGkHIkxAZmCEOrincBK02T3/xedTOsWhw0UffGMc2nE1yHGb00K8lro/BG4qOl4j5cX8wWX4XWWFTPRS6c9Zg==
content_page[title_en]=df
content_page[content_en]=<div id="map" style="height: 400px; width: 400px; background-image: url('https://joomly.net/frontend/web/images/googlemap/map.png');">&nbsp;</div>
<script>window.initMap = function() {
var geo, lat, lng, location, map, marker;
geo = window.gon.geo_location;
if (!geo) {
return;
}
lat = geo.lat;
lng = geo.lng;
if (lat && lng) {
location = {
lat: parseFloat(lat),
lng: parseFloat(lng)
};
map = new google.maps.Map(document.getElementById('map'), {
zoom: 10,
center: location
});
return marker = new google.maps.Marker({
position: location,
map: map
});
}
}</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB8n0ymzrBZrixvsOQ3FAvzmETpK9jDr44&amp;callback=window.initMap&amp;libraries=&amp;v=weekly" async=""></script>
content_page[title_ar_SA]
content_page[content_ar_SA]
content_page[h1]
content_page[meta_title]
content_page[meta_description]
content_page[meta_keywords]
content_page[slug_attributes][id]
content_page[slug_attributes][path]
commit=Save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment