{"id":34189,"date":"2026-09-16T15:35:49","date_gmt":"2026-09-16T13:35:49","guid":{"rendered":"https:\/\/www.vigiclim.exelys.io\/?page_id=34189"},"modified":"2026-09-16T15:38:25","modified_gmt":"2026-09-16T13:38:25","slug":"vigilances-marines","status":"publish","type":"page","link":"https:\/\/www.vigiclim.exelys.io\/index.php\/vigilances-marines\/","title":{"rendered":"Vigilances marines"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1256.6px;margin-left: calc(-3% \/ 2 );margin-right: calc(-3% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-spacing-right-large:1.455%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.455%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.455%;--awb-spacing-left-medium:1.455%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.455%;--awb-spacing-left-small:1.455%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><iframe id=\"sodexam-marine-widget-iframe\" style=\"width: 100%; min-height: 900px; border: none; overflow: hidden;\" scrolling=\"no\" srcdoc='\n<html class=\"ion-palette-dark\">\n<head>\n    <script>\n        window.WIDGET_ASSETS_BASE_URL = \"\/wp-content\/uploads\/widgets\/ivory-coast\/\";\n    <\/script>\n    <link rel=\"stylesheet\" href=\"\/wp-content\/uploads\/widgets\/ivory-coast\/styles.css\">\n    <style>\n        html, body {\n            margin: 0;\n            padding: 0;\n            width: 100%;\n            display: flex;\n            align-items: flex-start;\n            justify-content: center;\n          \theight: fit-content; \n        }\n        .container {\n            width: 100%;\n            margin: 0;\n            background: transparent;\n            height: auto; \n            box-sizing: border-box;\n        }\n\n        ivory-coast-marine {\n            display: block;\n            height: auto;\n            min-height: 600px;\n            width: 100%;\n          \tbackground-color: transparent;\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"container\" id=\"widget-container\">\n        <ivory-coast-marine \n              id=\"my-marine-widget\" \n              mode=\"widget\"\n              zone-id=\"-1\" \n              period=\"d+0\"\n              lang=\"fr\" \n              assets-base-url=\"\/wp-content\/uploads\/widgets\/ivory-coast\/\"\n              style=\"display: block;\">\n        <\/ivory-coast-marine>\n    <\/div>\n\n\t<img class=\"lazyload\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-orig-src=\"https:\/\/api.vigiclim.exelys.io\/storage\/products\/plage.png\" alt=\"meteo-marine-plage\">\n\n    <script>\n        try {\n            const urlParams = new URLSearchParams(window.parent.location.search);\n            \n            \/\/ R\u00e9cup\u00e9ration de la zone pass\u00e9e dans l URL (?idZone=... ou ?zone=...)\n            const idZoneFromUrl = urlParams.get(\"idZone\") || urlParams.get(\"zone\") || urlParams.get(\"idArea\");            \n            if (idZoneFromUrl) {\n                const widgetEl = document.getElementById(\"my-marine-widget\");\n                if (widgetEl) widgetEl.setAttribute(\"zone-id\", idZoneFromUrl);\n            }\n\n            \/\/ R\u00e9cup\u00e9ration du jour \/ p\u00e9riode (?period=d+1 ou ?day=demain)\n            const periodFromUrl = urlParams.get(\"period\") || urlParams.get(\"day\");\n            if (periodFromUrl) {\n                const targetPeriod = (periodFromUrl === \"d+1\" || periodFromUrl === \"demain\" || periodFromUrl === \"tomorrow\") ? \"d+1\" : \"d+0\";\n                const widgetEl = document.getElementById(\"my-marine-widget\");\n                if (widgetEl) widgetEl.setAttribute(\"period\", targetPeriod);\n            }\n        } catch(e) {}\n\n        try {\n            const container = document.getElementById(\"widget-container\") || document.body;\n            \n            if (container && window.ResizeObserver) {\n                let lastHeight = 0;\n                \n                const observer = new ResizeObserver((entries) => {\n                    for (let entry of entries) {\n                        const currentHeight = entry.target.offsetHeight || (entry.contentRect && entry.contentRect.height);\n                        \n                        if (currentHeight && Math.abs(currentHeight - lastHeight) > 5) {\n                            lastHeight = currentHeight;\n                            \n                            window.parent.postMessage({\n                                type: \"resize-sodexam-marine-iframe\",\n                                height: currentHeight - 40\n                            }, \"*\");\n                        }\n                    }\n                });\n                \n                observer.observe(container);\n            }\n        } catch(e) {\n            console.warn(\"ResizeObserver non support\u00e9 ou erreur\", e);\n        }\n\n        window.addEventListener(\"message\", function(event) {\n            if (event.data && event.data.type === \"set-theme\") {\n                const isDark = event.data.theme === \"dark\";\n                \n                if (isDark) {\n                    document.documentElement.classList.add(\"ion-palette-dark\");\n                } else {\n                    document.documentElement.classList.remove(\"ion-palette-dark\");\n                }\n            }\n        });\n    <\/script>\n    <script src=\"\/wp-content\/uploads\/widgets\/ivory-coast\/ivory-coast-widgets.js\"><\/script>\n<\/body>\n<\/html>'><\/iframe>\n\n<script>\n    window.addEventListener(\"message\", function(event) {\n        if (event.data && event.data.type === \"resize-sodexam-marine-iframe\") {\n            const iframe = document.getElementById(\"sodexam-marine-widget-iframe\");\n            if (iframe) {\n                iframe.style.height = (event.data.height + 25) + \"px\";\n            }\n        }\n    });\n\n    const marineBodyObserver = new MutationObserver(function(mutations) {\n        mutations.forEach(function(mutation) {\n            if (mutation.attributeName === \"class\") {\n                const isDark = document.documentElement.classList.contains(\"darkify_dark_mode_enabled\");\n                const iframe = document.getElementById(\"sodexam-marine-widget-iframe\");\n                if (iframe && iframe.contentWindow) {\n                    iframe.contentWindow.postMessage({\n                        type: \"set-theme\",\n                        theme: isDark ? \"dark\" : \"light\"\n                    }, \"*\");\n                }\n            }\n        });\n    });\n\n    marineBodyObserver.observe(document.documentElement, { attributes: true, attributeFilter: ['class'] });\n<\/script>\n<style>\n    #sodexam-marine-widget-iframe {\n        width: 90vw;\n    }\n\n    html, body {\n        margin: 0;\n        padding: 0;   \n    }\n<\/style><div class=\"fusion-separator fusion-full-width-sep\" style=\"align-self: center;margin-left: auto;margin-right: auto;margin-top:15px;margin-bottom:15px;width:100%;\"><\/div><\/div><\/div><\/div><\/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":"100-width.php","meta":{"footnotes":""},"class_list":["post-34189","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages\/34189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/comments?post=34189"}],"version-history":[{"count":2,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages\/34189\/revisions"}],"predecessor-version":[{"id":34192,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages\/34189\/revisions\/34192"}],"wp:attachment":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/media?parent=34189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}