{"id":3025,"date":"2023-03-06T07:02:15","date_gmt":"2023-03-06T07:02:15","guid":{"rendered":"https:\/\/www.toolkit.keywordfinder.us\/?page_id=3025"},"modified":"2023-03-06T07:02:15","modified_gmt":"2023-03-06T07:02:15","slug":"palindrome-checker","status":"publish","type":"page","link":"https:\/\/tools.billionsideas.com\/de\/palindrome-checker\/","title":{"rendered":"Palindrome Checker"},"content":{"rendered":"<!DOCTYPE html>\n<html>\n  <head>\n    <style>\n      \/* CSS styling for the input field and options *\/\n      input {\n        width: 100%;\n        height: 100%;\n        font-size: 18px;\n        padding: 10px;\n        margin-bottom: 10px;border:2px solid #4CAF50;\n      }\n     \n      \/* CSS styling for the output area *\/\n      #output {\n        width: 100%;\n        height: 100%;\n        padding: 40px;\n        margin-top: 10px;\n        background: #f2f2f2;\n        text-align: center;\n        font-size: 18px;\n      }\nsection{\n         margin-top:60px;\n        width: 100%;\n        max-width: 970px;\n        background-color: #fff;\n        border: 1px solid #ddd;\n        padding: 25px;\n      }\n\n    <\/style>\n  <\/head>\n  <body><section>    <h1>Palindrome Checker<\/h1>\n\n    <label for=\"input-word\">Input word or phrase:<\/label>\n    <input type=\"text\" id=\"input-word\">\n    <br>\n    <button id=\"check-btn\" onclick=\"checkPalindrome()\">Check<\/button>\n    <br>\n    <div id=\"output\"><\/div><\/section>\n    <script>\n      \/\/ JavaScript code to handle user input and check for palindrome\n      function checkPalindrome() {\n        let inputWord = document.getElementById(\"input-word\").value;\n        let output = document.getElementById(\"output\");\n        let word = inputWord.replace(\/[^A-Za-z0-9]\/g, '').toLowerCase();\n        let reverseWord = word.split('').reverse().join('');\n\n        if (word === reverseWord) {\n          output.innerHTML = \"The word\/phrase is a palindrome\";\n        } else {\n          output.innerHTML = \"The word\/phrase is not a palindrome\";\n        }\n      }\n    <\/script>\n  <\/body>\n<\/html>","protected":false},"excerpt":{"rendered":"<p>Palindrome Checker Input word or phrase: Check<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"class_list":["post-3025","page","type-page","status-publish"],"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"Billions Ideas","author_link":"https:\/\/tools.billionsideas.com\/de\/author\/loginbillionsideas-com\/"},"comment_info":0,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/pages\/3025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/comments?post=3025"}],"version-history":[{"count":0,"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/pages\/3025\/revisions"}],"wp:attachment":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/media?parent=3025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}