{"id":1827,"date":"2025-01-04T08:56:28","date_gmt":"2025-01-04T08:56:28","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1827"},"modified":"2025-02-07T09:28:06","modified_gmt":"2025-02-07T09:28:06","slug":"moon-sign","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/","title":{"rendered":"Moon Sign Calculator"},"content":{"rendered":"<p><center><div class=\"container123\">\r\n        <h2>Moon Sign Calculator<\/h2>\r\n        <form id=\"moonForm\">\r\n            <div class=\"input-group\">\r\n                <label for=\"date\">Date of Birth<\/label>\r\n                <input type=\"date\" id=\"date\" required>\r\n                <div class=\"error\" id=\"dateError\">Please select a valid date<\/div>\r\n            <\/div>\r\n\r\n            <div class=\"input-group\">\r\n                <label for=\"time\">Time of Birth (24-hour format)<\/label>\r\n                <input type=\"time\" id=\"time\" required>\r\n                <div class=\"error\" id=\"timeError\">Please enter a valid time<\/div>\r\n            <\/div>\r\n\r\n            <div class=\"input-group\">\r\n                <label for=\"timezone\">Timezone<\/label>\r\n                <select id=\"timezone\" required>\r\n                    <option value=\"\">Select timezone<\/option>\r\n                    <option value=\"-12\">UTC-12:00<\/option>\r\n                    <option value=\"-11\">UTC-11:00<\/option>\r\n                    <option value=\"-10\">UTC-10:00<\/option>\r\n                    <option value=\"-9\">UTC-09:00<\/option>\r\n                    <option value=\"-8\">UTC-08:00<\/option>\r\n                    <option value=\"-7\">UTC-07:00<\/option>\r\n                    <option value=\"-6\">UTC-06:00<\/option>\r\n                    <option value=\"-5\">UTC-05:00<\/option>\r\n                    <option value=\"-4\">UTC-04:00<\/option>\r\n                    <option value=\"-3\">UTC-03:00<\/option>\r\n                    <option value=\"-2\">UTC-02:00<\/option>\r\n                    <option value=\"-1\">UTC-01:00<\/option>\r\n                    <option value=\"0\">UTC+00:00<\/option>\r\n                    <option value=\"1\">UTC+01:00<\/option>\r\n                    <option value=\"2\">UTC+02:00<\/option>\r\n                    <option value=\"3\">UTC+03:00<\/option>\r\n                    <option value=\"4\">UTC+04:00<\/option>\r\n                    <option value=\"5\">UTC+05:00<\/option>\r\n                    <option value=\"6\">UTC+06:00<\/option>\r\n                    <option value=\"7\">UTC+07:00<\/option>\r\n                    <option value=\"8\">UTC+08:00<\/option>\r\n                    <option value=\"9\">UTC+09:00<\/option>\r\n                    <option value=\"10\">UTC+10:00<\/option>\r\n                    <option value=\"11\">UTC+11:00<\/option>\r\n                    <option value=\"12\">UTC+12:00<\/option>\r\n                <\/select>\r\n                <div class=\"error\" id=\"timezoneError\">Please select a timezone<\/div>\r\n            <\/div>\r\n\r\n            <button type=\"submit\">Calculate Moon Sign<\/button>\r\n        <\/form>\r\n\r\n        <div class=\"loading\">\r\n            <span><\/span>\r\n            <span><\/span>\r\n            <span><\/span>\r\n        <\/div>\r\n\r\n        <div class=\"result\" id=\"result\">\r\n            <div class=\"moon-phase\">\ud83c\udf15<\/div>\r\n            <h2>Your Moon Sign<\/h2>\r\n            <p id=\"moonSignText\"><\/p>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        const moonForm = document.getElementById('moonForm');\r\n        const loading = document.querySelector('.loading');\r\n        const result = document.getElementById('result');\r\n        const moonSignText = document.getElementById('moonSignText');\r\n\r\n        \/\/ Simple validation function\r\n        function validateForm() {\r\n            let isValid = true;\r\n            const date = document.getElementById('date');\r\n            const time = document.getElementById('time');\r\n            const timezone = document.getElementById('timezone');\r\n\r\n            \/\/ Reset errors\r\n            document.querySelectorAll('.error').forEach(error => error.classList.remove('active'));\r\n\r\n            if (!date.value) {\r\n                document.getElementById('dateError').classList.add('active');\r\n                isValid = false;\r\n            }\r\n\r\n            if (!time.value) {\r\n                document.getElementById('timeError').classList.add('active');\r\n                isValid = false;\r\n            }\r\n\r\n            if (!timezone.value) {\r\n                document.getElementById('timezoneError').classList.add('active');\r\n                isValid = false;\r\n            }\r\n\r\n            return isValid;\r\n        }\r\n\r\n        \/\/ Calculate moon sign based on date and time\r\n        function calculateMoonSign(date, time, timezone) {\r\n            \/\/ This is a simplified calculation for demonstration\r\n            \/\/ In a real application, you would need more complex astronomical calculations\r\n            const birthDate = new Date(`${date}T${time}`);\r\n            birthDate.setHours(birthDate.getHours() + parseInt(timezone));\r\n\r\n            \/\/ Simple moon sign calculation (this is just for demonstration)\r\n            const moonSigns = [\r\n                \"Aries\", \"Taurus\", \"Gemini\", \"Cancer\", \r\n                \"Leo\", \"Virgo\", \"Libra\", \"Scorpio\", \r\n                \"Sagittarius\", \"Capricorn\", \"Aquarius\", \"Pisces\"\r\n            ];\r\n\r\n            const moonSignDescriptions = {\r\n                \"Aries\": \"You are emotionally passionate and independent. Your emotions are fiery and dynamic.\",\r\n                \"Taurus\": \"Your emotional nature is steady and security-loving. You seek emotional comfort and stability.\",\r\n                \"Gemini\": \"Your emotions are mercurial and adaptable. You process feelings through communication.\",\r\n                \"Cancer\": \"You are emotionally sensitive and nurturing. Your feelings run deep and are tied to memory.\",\r\n                \"Leo\": \"Your emotional nature is warm and generous. You express feelings with dramatic flair.\",\r\n                \"Virgo\": \"You process emotions through practical analysis. Your feelings are precise and service-oriented.\",\r\n                \"Libra\": \"Your emotional nature seeks harmony and balance. You feel through relationships.\",\r\n                \"Scorpio\": \"Your emotions are intense and transformative. You feel things deeply and powerfully.\",\r\n                \"Sagittarius\": \"Your emotional nature is optimistic and freedom-loving. You feel through adventure.\",\r\n                \"Capricorn\": \"You are emotionally reserved and responsible. Your feelings are structured and disciplined.\",\r\n                \"Aquarius\": \"Your emotional nature is unconventional and humanitarian. You feel through friendship.\",\r\n                \"Pisces\": \"You are emotionally intuitive and compassionate. Your feelings are mystical and artistic.\"\r\n            };\r\n\r\n            \/\/ Use birth date to determine moon sign (simplified)\r\n            const dayOfYear = Math.floor((birthDate - new Date(birthDate.getFullYear(), 0, 0)) \/ (1000 * 60 * 60 * 24));\r\n            const moonSignIndex = Math.floor((dayOfYear % 360) \/ 30) % 12;\r\n            const moonSign = moonSigns[moonSignIndex];\r\n            \r\n            return {\r\n                sign: moonSign,\r\n                description: moonSignDescriptions[moonSign]\r\n            };\r\n        }\r\n\r\n        moonForm.addEventListener('submit', function(e) {\r\n            e.preventDefault();\r\n\r\n            if (!validateForm()) {\r\n                return;\r\n            }\r\n\r\n            const date = document.getElementById('date').value;\r\n            const time = document.getElementById('time').value;\r\n            const timezone = document.getElementById('timezone').value;\r\n\r\n            \/\/ Show loading animation\r\n            loading.classList.add('active');\r\n            result.classList.remove('active');\r\n\r\n            \/\/ Simulate calculation delay\r\n            setTimeout(() => {\r\n                const moonSignData = calculateMoonSign(date, time, timezone);\r\n                moonSignText.innerHTML = `Your moon sign is <strong>${moonSignData.sign}<\/strong>.<br><br>${moonSignData.description}`;\r\n                \r\n                \/\/ Hide loading and show result\r\n                loading.classList.remove('active');\r\n                result.classList.add('active');\r\n            }, 1500);\r\n        });\r\n    <\/script><\/center>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-1827","post","type-post","status-publish","format-standard","hentry","category-calculator"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Moon Sign Calculator - DonHit<\/title>\n<meta name=\"description\" content=\"A love compatibility calculator is a digital tool designed to evaluate the romantic potential between two individuals\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/donhit.com\/en\/calculator\/moon-sign\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Moon Sign Calculator - DonHit\" \/>\n<meta property=\"og:description\" content=\"A love compatibility calculator is a digital tool designed to evaluate the romantic potential between two individuals\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/moon-sign\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-04T08:56:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-07T09:28:06+00:00\" \/>\n<meta name=\"author\" content=\"DonHit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DonHit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Moon Sign Calculator - DonHit","description":"A love compatibility calculator is a digital tool designed to evaluate the romantic potential between two individuals","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/","og_locale":"en_US","og_type":"article","og_title":"Moon Sign Calculator - DonHit","og_description":"A love compatibility calculator is a digital tool designed to evaluate the romantic potential between two individuals","og_url":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/","og_site_name":"DonHit - World of Tools","article_published_time":"2025-01-04T08:56:28+00:00","article_modified_time":"2025-02-07T09:28:06+00:00","author":"DonHit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonHit","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Moon Sign Calculator","datePublished":"2025-01-04T08:56:28+00:00","dateModified":"2025-02-07T09:28:06+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/"},"wordCount":9,"commentCount":0,"publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"articleSection":["Calculator"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/donhit.com\/en\/calculator\/moon-sign\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/","url":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/","name":"Moon Sign Calculator - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2025-01-04T08:56:28+00:00","dateModified":"2025-02-07T09:28:06+00:00","description":"A love compatibility calculator is a digital tool designed to evaluate the romantic potential between two individuals","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/moon-sign\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/moon-sign\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/donhit.com\/en\/"},{"@type":"ListItem","position":2,"name":"Calculator","item":"https:\/\/donhit.com\/en\/category\/calculator\/"},{"@type":"ListItem","position":3,"name":"Moon Sign Calculator"}]},{"@type":"WebSite","@id":"https:\/\/donhit.com\/en\/#website","url":"https:\/\/donhit.com\/en\/","name":"DonHit - World of tools","description":"","publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/donhit.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148","name":"DonHit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","contentUrl":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","width":400,"height":267,"caption":"DonHit"},"logo":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/"},"description":"DonHit is a website designed to provide useful tools for everyone. Its primary goal is to support and empower the community. All the tools available on the site are completely free to use.","sameAs":["https:\/\/donhit.com\/en"],"url":"https:\/\/donhit.com\/en\/author\/admin_don\/"}]}},"_links":{"self":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/comments?post=1827"}],"version-history":[{"count":2,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1827\/revisions"}],"predecessor-version":[{"id":2195,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1827\/revisions\/2195"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}