{"id":676,"date":"2024-10-13T04:15:51","date_gmt":"2024-10-13T04:15:51","guid":{"rendered":"https:\/\/paragliding-in-madeira.com\/weather\/?p=676"},"modified":"2025-10-06T23:40:22","modified_gmt":"2025-10-06T22:40:22","slug":"welcome-home","status":"publish","type":"post","link":"https:\/\/paragliding-in-madeira.com\/weather\/2024\/10\/13\/welcome-home\/","title":{"rendered":"Welcome home"},"content":{"rendered":"\n<p>This is a place for <strong>shared common dreams<\/strong>, because it&#8217;s always better to dream together.<\/p>\n\n\n\n<p>I felt <strong>inspired<\/strong> to create this space after many years of gathering knowledge and tools that have helped me in my every day decisions.<\/p>\n\n\n\n<p>About <strong>when<\/strong> to go flying and <strong>where<\/strong>, when to watch a <strong>sunset<\/strong> or when to go on an adventure at the mountains. <\/p>\n\n\n\n<p>Even to find out which night would be better for a <strong>swim<\/strong> or when to watch the rising of the <strong>moon<\/strong>.<\/p>\n\n\n\n<p>From that inspiration, this space that you are in today, was <strong>born<\/strong>.<\/p>\n\n\n\n<p><strong>Welcome<\/strong><\/p>\n\n\n\n<div style=\"height:1px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n    <div class=\"pwa-install-wrapper\" style=\"width: fit-content; margin: 0 auto;\">\n       \n        <style>\n            \/* Button styling and initial state (hidden) *\/\n            .pwa-install-button-custom {\n                \/* HIDDEN BY DEFAULT (IMPORTANT!) *\/\n                display: none; \n                opacity: 0;\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0transition: opacity 1.5s ease-in;\n                \/* Your custom styling *\/\n                background-color: #37505d;\n                color: white;\n                padding: 10px 20px;\n                border-radius: 5px;\n                border: none;\n                font-weight: bold;\n                cursor: pointer;\n                font-size: 16px;\n                \/* Ensure it sits above other content if needed, but not fixed *\/\n                z-index: 10;\n                margin: 10px 0; \/* Add some margin for content flow *\/\n            }\n\n            \/* Show helper class - controlled by JavaScript *\/\n            .pwa-install-button-custom.show {\n                display: inline-block;\n                opacity: 1;\n            }\n        <\/style>\n\n        <button class=\"installAppButton pwa-install-button-custom\">\n            \ud83d\udcf2 Install the Weather App\n        <\/button>\n        \n        <script>\n        document.addEventListener('DOMContentLoaded', function() {\n            function isMobileDevice() {\n                \/\/ Detects Android, iPhone, iPad, iPod\n                \/\/ NOTE: iOS does not support beforeinstallprompt. It will still skip.\n                return \/android|iphone|ipad|ipod\/i.test(navigator.userAgent); \n            }\n        \n            \/\/ Only proceed on mobile devices that are NOT iOS\n            if (!isMobileDevice() || \/iphone|ipad|ipod\/i.test(navigator.userAgent)) {\n                return;\n            }\n            \n            let deferredPrompt;\n            \/\/ Use the generic class defined in the original code\n            const installButtons = document.querySelectorAll('.installAppButton'); \n            \n            if (installButtons.length === 0) return;\n        \n            \/\/ Detect when PWA can be installed\n            window.addEventListener('beforeinstallprompt', (e) => {\n                e.preventDefault();\n                deferredPrompt = e;\n        \n                \/\/ Show all buttons with fade-in using the \"show\" class\n                installButtons.forEach(btn => btn.classList.add('show'));\n            });\n        \n            \/\/ Handle button clicks\n            installButtons.forEach(btn => btn.addEventListener('click', async () => {\n                if (!deferredPrompt) return;\n        \n                btn.classList.remove('show'); \/\/ hide button immediately\n                deferredPrompt.prompt();       \/\/ trigger install\n        \n                const { outcome } = await deferredPrompt.userChoice;\n                console.log(`User ${outcome === 'accepted' ? 'accepted' : 'dismissed'} the install prompt`);\n        \n                deferredPrompt = null;\n            }));\n        \n            \/\/ Hide buttons if app is already installed\n            window.addEventListener('appinstalled', () => {\n                installButtons.forEach(btn => btn.classList.remove('show'));\n                console.log('App installed successfully');\n            });\n        });\n        <\/script>\n    <\/div>\n    \n\n\n\n<div style=\"height:1px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Feel free to let me know how you <strong>feel<\/strong> about the tools I share here and let me know how does this <strong>project<\/strong> helps you in your daily life.<\/p>\n\n\n\n<p>I made it really easy for you to participate more actively if you so wish, through <a href=\"https:\/\/paragliding-in-madeira.com\/weather\/contribute\/\">here<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/paragliding-in-madeira.com\/weather\/contribute\/\">participate<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:33px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is a place for shared common dreams, because it&#8217;s always better to dream together. I felt inspired to create this space after many years of gathering knowledge and tools that have helped me in my every day decisions. About when to go flying and where, when to watch a sunset or when to go [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"A place for shared dreams. Always better to dream together","description":"About when to go flying and where, when to watch a sunset or when to go on an adventure at the mountains. Even to find out when the moon will be rising."},"footnotes":""},"categories":[1],"tags":[13,14],"class_list":["post-676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-project","tag-madeira-island-weather","tag-weather-stations"],"_links":{"self":[{"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":13,"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"predecessor-version":[{"id":5232,"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/posts\/676\/revisions\/5232"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/media\/22"}],"wp:attachment":[{"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paragliding-in-madeira.com\/weather\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}