{"id":11368,"date":"2023-02-03T06:31:13","date_gmt":"2023-02-03T06:31:13","guid":{"rendered":"https:\/\/experience.fameroad.eu\/?page_id=11368"},"modified":"2023-02-03T06:31:21","modified_gmt":"2023-02-03T06:31:21","slug":"add-your-proposals-at-grottaglie","status":"publish","type":"page","link":"https:\/\/experience.fameroad.eu\/?page_id=11368","title":{"rendered":"Add your proposals at Grottaglie"},"content":{"rendered":"\n<div class=\"open-user-map\">\n\n  \n  <div class=\"box-wrap\">\n    <div class=\"map-wrap map-size-default map-size-mobile-square\">\n      <div id=\"map-20210929\" class=\"leaflet-map map-style_Esri.WorldStreetMap\"><\/div>\n      \n            \n        \n        \n          <div id=\"open-add-location-overlay\" class=\"open-add-location-overlay\" style=\"background-color: #2271b1\"><span class=\"btn_icon\">+<\/span><span class=\"btn_text\">Enter your proposal<\/span><\/div>\n\n        \n      \n      <script>\n        \n        var map_el = `map-20210929`;\n\n        if(document.getElementById(map_el)) {\n\n          var mapStyle = `Esri.WorldStreetMap`;\n          var oum_searchaddress_label = `Enter address`;\n          var marker_icon_url = `https:\/\/experience.fameroad.eu\/wp-content\/plugins\/open-user-map\/src\/leaflet\/images\/marker-icon_default-2x.png`;\n          var marker_shadow_url = `https:\/\/experience.fameroad.eu\/wp-content\/plugins\/open-user-map\/src\/leaflet\/images\/marker-shadow.png`;\n          var oum_enable_cluster = true;\n          var oum_enable_fullscreen = true;\n          var oum_enable_searchaddress = true;\n          var oum_enable_currentlocation = false;\n          var oum_collapse_filter = false;\n          var oum_action_after_submit = `text`;\n          var thankyou_redirect = ``;\n          var start_lat = `40.522337097567515`;\n          var start_lng = `17.396867245370448`;\n          var start_zoom = `13`;\n          var oum_enable_fixed_map_bounds = `on`;\n          var oum_minimum_zoom_level = `10`;\n          var oum_location = {};\n          var locations_without_type = [];\n          var locations_by_type = [];\n          var custom_css = '';\n          var oumMap;\n\n          \/**\n           * Experimental: Conditional Fields\n           * \n           * Show or Hide a Custom Field based on the selected value of a field\n           * \n           * Example: oumConditionalField('[name=\"oum_marker_icon\"]', '[name=\"oum_location_custom_fields[1645650268221]\"]', ['30', '31'], ['']);\n           **\/\n          var oumConditionalField = (sourceField, targetField, condShow, condHide) => {\n            const sourceElement = document.querySelector(sourceField);\n            const targetElement = document.querySelector(targetField).parentElement; \/* works with custom fields only *\/\n\n            \/* trigger on change *\/\n            sourceElement.onchange = function(e) {\n              const val = this.value;\n              \n              console.log('OUM: run condition', {val, sourceField, targetField, condShow, condHide});\n              \n              if(condShow.includes(val)) {\n                targetElement.style.display = 'block';\n              }else if(condHide.includes(this.value)) {\n                targetElement.style.display = 'none';\n              }\n            }\n\n            \/* trigger initially *\/\n            let changeEvent = new Event('change');\n            sourceElement.dispatchEvent(changeEvent);\n          };\n          \n          \n          \n            \/* custom color *\/\n            custom_css += `\n              .open-user-map .add-location #close-add-location-overlay:hover {color: #2271b1 !important}\n              .open-user-map input.oum-switch[type=\"checkbox\"]:checked + label::before {background-color: #2271b1 !important}\n              .open-user-map .add-location .location-overlay-content #oum_add_location_thankyou h3 {color: #2271b1 !important}`;\n\n          \n          \n          \n          var custom_style = document.createElement('style');\n\n          if (custom_style.styleSheet) {\n            custom_style.styleSheet.cssText = custom_css;\n          } else {\n            custom_style.appendChild(document.createTextNode(custom_css));\n          }\n\n          document.getElementsByTagName('head')[0].appendChild(custom_style);\n\n\n          \n        }\n\n      <\/script>\n    <\/div>\n\n  <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-sidebar-no.php","meta":{"_mi_skip_tracking":false,"footnotes":""},"class_list":["post-11368","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=\/wp\/v2\/pages\/11368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11368"}],"version-history":[{"count":1,"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=\/wp\/v2\/pages\/11368\/revisions"}],"predecessor-version":[{"id":11369,"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=\/wp\/v2\/pages\/11368\/revisions\/11369"}],"wp:attachment":[{"href":"https:\/\/experience.fameroad.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}