{"id":1829,"date":"2025-01-05T09:50:04","date_gmt":"2025-01-05T09:50:04","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1829"},"modified":"2025-02-06T01:14:14","modified_gmt":"2025-02-06T01:14:14","slug":"name-number","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/name-number\/","title":{"rendered":"Name Number Calculator"},"content":{"rendered":"<p><center><div class=\"container123\">\r\n        <h2>Name Number Calculator<\/h2>\r\n        <div class=\"input-group\">\r\n            <label for=\"name\">Enter Your Full Name<\/label>\r\n            <input type=\"text\" id=\"name\" placeholder=\"e.g. John Smith\" autocomplete=\"off\">\r\n            <div class=\"error\" id=\"error\">Please enter a valid name (letters and spaces only)<\/div>\r\n        <\/div>\r\n        <button onclick=\"calculateNameNumber()\">Calculate Your Destiny Number<\/button>\r\n        \r\n        <div class=\"loading\" id=\"loading\">\r\n            <div><\/div>\r\n            <div><\/div>\r\n            <div><\/div>\r\n        <\/div>\r\n\r\n        <div class=\"result\" id=\"result\">\r\n            <h2>Your Destiny Number is:<\/h2>\r\n            <div class=\"number-container\">\r\n                <div class=\"number\" id=\"numberResult\"><\/div>\r\n            <\/div>\r\n            <div class=\"characteristics\" id=\"characteristics\"><\/div>\r\n        <\/div>\r\n\r\n        <div class=\"history\" id=\"history\">\r\n            <h3>Previous Calculations<\/h3>\r\n            <div class=\"history-list\" id=\"historyList\"><\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        const nameInput = document.getElementById('name');\r\n        const errorDiv = document.getElementById('error');\r\n        const resultDiv = document.getElementById('result');\r\n        const numberResult = document.getElementById('numberResult');\r\n        const characteristicsDiv = document.getElementById('characteristics');\r\n        const loadingDiv = document.getElementById('loading');\r\n        const historyList = document.getElementById('historyList');\r\n\r\n        \/\/ Load history from localStorage\r\n        let calculations = JSON.parse(localStorage.getItem('nameCalculations')) || [];\r\n\r\n        \/\/ Update history display\r\n        function updateHistory() {\r\n            historyList.innerHTML = calculations\r\n                .slice()\r\n                .reverse()\r\n                .map(calc => `\r\n                    <div class=\"history-item\">\r\n                        <span class=\"history-name\">${calc.name}<\/span>\r\n                        <span class=\"history-number\">${calc.number}<\/span>\r\n                    <\/div>\r\n                `)\r\n                .join('');\r\n        }\r\n\r\n        \/\/ Initialize history\r\n        updateHistory();\r\n\r\n        \/\/ Validate input as user types\r\n        nameInput.addEventListener('input', function() {\r\n            const isValid = \/^[a-zA-Z\\s]*$\/.test(this.value);\r\n            errorDiv.style.display = isValid ? 'none' : 'block';\r\n            if (!isValid) {\r\n                errorDiv.style.animation = 'none';\r\n                errorDiv.offsetHeight; \/\/ Trigger reflow\r\n                errorDiv.style.animation = 'shake 0.5s ease-in-out';\r\n            }\r\n        });\r\n\r\n        function calculateNameNumber() {\r\n            const name = nameInput.value.trim();\r\n            \r\n            \/\/ Validate input\r\n            if (!name || !\/^[a-zA-Z\\s]+$\/.test(name)) {\r\n                errorDiv.style.display = 'block';\r\n                errorDiv.style.animation = 'none';\r\n                errorDiv.offsetHeight; \/\/ Trigger reflow\r\n                errorDiv.style.animation = 'shake 0.5s ease-in-out';\r\n                resultDiv.classList.remove('show');\r\n                return;\r\n            }\r\n\r\n            \/\/ Show loading animation\r\n            loadingDiv.style.display = 'flex';\r\n            resultDiv.classList.remove('show');\r\n\r\n            \/\/ Simulate calculation delay for better UX\r\n            setTimeout(() => {\r\n                const number = calculateNumber(name);\r\n                \r\n                \/\/ Save to history\r\n                calculations.push({ name, number });\r\n                if (calculations.length > 5) calculations.shift(); \/\/ Keep only last 5\r\n                localStorage.setItem('nameCalculations', JSON.stringify(calculations));\r\n                updateHistory();\r\n                \r\n                displayResult(number);\r\n                loadingDiv.style.display = 'none';\r\n            }, 1200);\r\n        }\r\n\r\n        function calculateNumber(name) {\r\n            const cleanName = name.toUpperCase().replace(\/\\s\/g, '');\r\n            let sum = 0;\r\n            for (let char of cleanName) {\r\n                sum += char.charCodeAt(0) - 64;\r\n            }\r\n\r\n            while (sum > 9 && sum !== 11 && sum !== 22 && sum !== 33) {\r\n                sum = String(sum).split('').reduce((a, b) => a + parseInt(b), 0);\r\n            }\r\n\r\n            return sum;\r\n        }\r\n\r\n        function displayResult(number) {\r\n            numberResult.textContent = number;\r\n\r\n            const characteristics = getCharacteristics(number);\r\n            characteristicsDiv.innerHTML = `\r\n                <h3 style=\"margin-bottom: 1rem; color: #2d3748;\">Key Characteristics:<\/h3>\r\n                ${characteristics.map(char => `\r\n                    <div class=\"characteristic-item\">\r\n                        <span class=\"characteristic-icon\">\u2726<\/span>\r\n                        <span>${char}<\/span>\r\n                    <\/div>\r\n                `).join('')}\r\n            `;\r\n\r\n            resultDiv.classList.add('show');\r\n        }\r\n\r\n        function getCharacteristics(number) {\r\n            const characteristics = {\r\n                1: [\r\n                    \"Natural born leader with strong ambitions\",\r\n                    \"Independent and self-reliant\",\r\n                    \"Innovative and original thinker\",\r\n                    \"Excellent problem-solver\",\r\n                    \"Determined and goal-oriented\"\r\n                ],\r\n                2: [\"Naturally diplomatic and cooperative\",\r\n                    \"Highly intuitive and sensitive\",\r\n                    \"Excellent mediator and peacemaker\",\r\n                    \"Patient and understanding\",\r\n                    \"Strong ability to work in partnerships\"\r\n                ],\r\n                3: [\r\n                    \"Highly creative and expressive\",\r\n                    \"Natural entertainer and communicator\",\r\n                    \"Optimistic and joyful personality\", \r\n                    \"Artistic and imaginative\",\r\n                    \"Inspiring to others\"\r\n                ],\r\n                4: [\r\n                    \"Extremely organized and methodical\",\r\n                    \"Reliable and trustworthy\",\r\n                    \"Strong work ethic and determination\",\r\n                    \"Practical and down-to-earth\",\r\n                    \"Excellent at building foundations\"\r\n                ],\r\n                5: [\r\n                    \"Adventurous and freedom-loving\",\r\n                    \"Highly adaptable to change\",\r\n                    \"Quick learner and progressive thinker\",\r\n                    \"Versatile and resourceful\",\r\n                    \"Natural explorer and risk-taker\"\r\n                ],\r\n                6: [\r\n                    \"Nurturing and protective\",\r\n                    \"Responsible and reliable\",\r\n                    \"Natural counselor and healer\",\r\n                    \"Harmonious and balanced\",\r\n                    \"Deep sense of justice and fairness\"\r\n                ],\r\n                7: [\r\n                    \"Deeply analytical and philosophical\",\r\n                    \"Spiritual seeker and mystic\",\r\n                    \"Expert researcher and investigator\",\r\n                    \"Highly intellectual and wise\",\r\n                    \"Strong intuitive abilities\"\r\n                ],\r\n                8: [\r\n                    \"Natural executive ability\",\r\n                    \"Excellent financial and material judgment\",\r\n                    \"Ambitious and goal-oriented\",\r\n                    \"Strong leadership qualities\",\r\n                    \"Manifesting power and abundance\"\r\n                ],\r\n                9: [\r\n                    \"Humanitarian and philanthropic\",\r\n                    \"Highly creative and artistic\",\r\n                    \"Universal love and compassion\",\r\n                    \"Wise and spiritually aware\",\r\n                    \"Natural teacher and counselor\"\r\n                ],\r\n                11: [\r\n                    \"Master intuitive and visionary\",\r\n                    \"Highly inspiring to others\",\r\n                    \"Spiritual messenger and teacher\",\r\n                    \"Innovative idealist\",\r\n                    \"Channel for higher wisdom\"\r\n                ],\r\n                22: [\r\n                    \"Master builder and manifester\",\r\n                    \"Practical visionary\",\r\n                    \"Exceptional leadership abilities\",\r\n                    \"Ability to turn dreams into reality\",\r\n                    \"Powerful force for good\"\r\n                ],\r\n                33: [\r\n                    \"Master teacher and healer\",\r\n                    \"Selfless service to humanity\",\r\n                    \"Highly compassionate and understanding\",\r\n                    \"Spiritual guide and mentor\",\r\n                    \"Divine creative expression\"\r\n                ]\r\n            };\r\n            \r\n            return characteristics[number] || [\r\n                \"Unique combination of energies\",\r\n                \"Special blend of characteristics\",\r\n                \"Individual path and purpose\",\r\n                \"Personal growth opportunities\",\r\n                \"Distinctive life lessons\"\r\n            ];\r\n        }\r\n\r\n        \/\/ Allow Enter key to trigger calculation\r\n        nameInput.addEventListener('keypress', function(e) {\r\n            if (e.key === 'Enter') {\r\n                calculateNameNumber();\r\n            }\r\n        });\r\n\r\n        \/\/ Add cool hover effect on history items\r\n        const historyItems = document.querySelectorAll('.history-item');\r\n        historyItems.forEach(item => {\r\n            item.addEventListener('mouseover', function() {\r\n                this.style.transform = 'translateX(10px)';\r\n            });\r\n            item.addEventListener('mouseout', function() {\r\n                this.style.transform = 'translateX(0)';\r\n            });\r\n        });\r\n\r\n        \/\/ Add smooth scroll behavior\r\n        document.documentElement.style.scrollBehavior = 'smooth';\r\n\r\n        \/\/ Add input focus effect\r\n        nameInput.addEventListener('focus', function() {\r\n            this.parentElement.classList.add('focused');\r\n        });\r\n\r\n        nameInput.addEventListener('blur', function() {\r\n            this.parentElement.classList.remove('focused');\r\n        });\r\n    <\/script><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"","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-1829","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>Name Number Calculator - DonHit<\/title>\n<meta name=\"description\" content=\"A name number calculator tool converts a name into its numeric equivalent using established numerology systems.\" \/>\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\/name-number\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Name Number Calculator - DonHit\" \/>\n<meta property=\"og:description\" content=\"A name number calculator tool converts a name into its numeric equivalent using established numerology systems.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/name-number\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-05T09:50:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-06T01:14:14+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":"Name Number Calculator - DonHit","description":"A name number calculator tool converts a name into its numeric equivalent using established numerology systems.","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\/name-number\/","og_locale":"en_US","og_type":"article","og_title":"Name Number Calculator - DonHit","og_description":"A name number calculator tool converts a name into its numeric equivalent using established numerology systems.","og_url":"https:\/\/donhit.com\/en\/calculator\/name-number\/","og_site_name":"DonHit - World of Tools","article_published_time":"2025-01-05T09:50:04+00:00","article_modified_time":"2025-02-06T01:14:14+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\/name-number\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/name-number\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Name Number Calculator","datePublished":"2025-01-05T09:50:04+00:00","dateModified":"2025-02-06T01:14:14+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/name-number\/"},"wordCount":8,"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\/name-number\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/name-number\/","url":"https:\/\/donhit.com\/en\/calculator\/name-number\/","name":"Name Number Calculator - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2025-01-05T09:50:04+00:00","dateModified":"2025-02-06T01:14:14+00:00","description":"A name number calculator tool converts a name into its numeric equivalent using established numerology systems.","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/name-number\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/name-number\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/name-number\/#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":"Name Number 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\/1829","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=1829"}],"version-history":[{"count":2,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1829\/revisions"}],"predecessor-version":[{"id":2020,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1829\/revisions\/2020"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}