{"id":91,"date":"2022-05-30T05:38:47","date_gmt":"2022-05-30T03:38:47","guid":{"rendered":"http:\/\/diamtam.hombori.org\/diamtam\/?p=91"},"modified":"2022-05-30T05:38:47","modified_gmt":"2022-05-30T03:38:47","slug":"home","status":"publish","type":"post","link":"https:\/\/diamtam.hombori.org\/diamtam\/2022\/05\/30\/home\/","title":{"rendered":"@home"},"content":{"rendered":"\n<div class=\"open-user-map\">\n\n  <div id=\"add-location-overlay\" class=\"add-location\">\n    <div id=\"close-add-location-overlay\">&times;<\/div>\n    <div class=\"location-overlay-content\">\n      <form id=\"oum_add_location\" enctype=\"multipart\/form-data\">\n        <h2>Add a new location<\/h2>\n        <input type=\"hidden\" id=\"oum_location_nonce\" name=\"oum_location_nonce\" value=\"bdf0d7ddb5\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/diamtam\/wp-json\/wp\/v2\/posts\/91\" \/>\n                            <input type=\"text\" id=\"oum_location_title\" name=\"oum_location_title\" required placeholder=\"Title*\"  \/>\n                \n        <label class=\"oum-label\">Click on the map to set a marker<\/label>\n        <div class=\"map-wrap\">\n          <div id=\"mapGetLocation\" class=\"leaflet-map map-style_Esri.WorldStreetMap\"><\/div>\n        <\/div>\n        <input type=\"hidden\" id=\"oum_location_lat\" name=\"oum_location_lat\" required placeholder=\"Latitude*\" \/>\n        <input type=\"hidden\" id=\"oum_location_lng\" name=\"oum_location_lng\" required placeholder=\"Longitude*\" \/>\n\n        \n        \n                        \n\n                  <input type=\"text\" id=\"oum_location_address\" name=\"oum_location_address\" placeholder=\"Address\" \/>\n        \n                  <textarea id=\"oum_location_text\" name=\"oum_location_text\" placeholder=\"Description\" ><\/textarea>\n                \n                  <div class=\"oum_media\">\n                          <div class=\"media-upload\">\n                <label style=\"color: #2271b1\" for=\"oum_location_image\" title=\"Upload Image\"><span class=\"dashicons dashicons-format-image\"><\/span><\/label>\n                <input type=\"file\" id=\"oum_location_image\" name=\"oum_location_image\" accept=\"image\/*\" multiple=\"false\"  \/>\n                <div class=\"preview\">\n                  <span><\/span>\n                  <div id=\"oum_remove_image\" class=\"remove-upload\">&times;<\/div>\n                <\/div>\n              <\/div>\n                                      <div class=\"media-upload\">\n                <label style=\"color: #2271b1\" for=\"oum_location_audio\" title=\"Upload Audio\"><span class=\"dashicons dashicons-format-audio\"><\/span><\/label>\n                <input type=\"file\" id=\"oum_location_audio\" name=\"oum_location_audio\" accept=\"audio\/mp3, audio\/wav, audio\/mp4\" multiple=\"false\"  \/>\n                <div class=\"preview\">\n                  <span><\/span>\n                  <div id=\"oum_remove_audio\" class=\"remove-upload\">&times;<\/div>\n                <\/div>\n              <\/div>\n                      <\/div>\n        \n        \n        <input type=\"submit\" id=\"oum_submit_btn\" style=\"background-color: #2271b1\" value=\"Submit location for review\" \/>\n      <\/form>\n\n      <div id=\"oum_add_location_error\" style=\"display: none\"><\/div>\n\n      <div id=\"oum_add_location_thankyou\" style=\"display: none\">\n        <h3>Thank you!<\/h3>\n        <p>We will check your location suggestion and release it as soon as possible.<\/p>\n        <button id=\"oum_add_another_location\" style=\"background-color: #2271b1\" type=\"button\">Add another location<\/button>\n      <\/div>\n    <\/div>\n  <\/div>\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\">Add location<\/span><\/div>\n\n        \n      \n      <script>\n        \/\/ INFO: The following JS code does not work with IE11 because of template literals\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:\/\/diamtam.hombori.org\/diamtam\/wp-content\/plugins\/open-user-map\/src\/leaflet\/images\/marker-icon_default-2x.png`;\n          var marker_shadow_url = `https:\/\/diamtam.hombori.org\/diamtam\/wp-content\/plugins\/open-user-map\/src\/leaflet\/images\/marker-shadow.png`;\n          var oum_disable_cluster = false;\n          var oum_disable_fullscreen = false;\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 oum_location = {};\n          var locations_without_type = [];\n          var locations_by_type = [];\n          var custom_css = '';\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            oum_location = {\n              lat: `46.528554371303`,\n              lng: `6.6204857826233`,\n              content: `<div class=\"oum_location_text\"><div class=\"oum_location_address\"><a title=\"go to Google Maps\" href=\"https:\/\/www.google.com\/maps\/search\/?api=1&amp;query=46.528554371303%2C6.6204857826233\" target=\"_blank\">Avenue Collonges, Lausanne, District de Lausanne, Vaud, 1004, Suisse<\/a><\/div><h3 class=\"oum_location_name\">Home<\/h3><div class=\"oum_location_custom_fields\"><\/div><div><\/div><\/div>`,\n              icon: `https:\/\/diamtam.hombori.org\/diamtam\/wp-content\/plugins\/open-user-map\/src\/leaflet\/images\/marker-icon_default-2x.png`,\n              type: ``,\n            };\n\n            \n              locations_without_type.push(oum_location);\n\n            \n          \n          \/\/console.log(locations_by_type);\n\n          var start_lat = `46.528554371303`;\n          var start_lng = `6.6204857826233`;\n          var start_zoom = `5`;\n        }\n\n      <\/script>\n    <\/div>\n\n  <\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-scandinavie"],"_links":{"self":[{"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":1,"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/posts\/91\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diamtam.hombori.org\/diamtam\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}