{"id":788,"date":"2024-09-17T10:58:50","date_gmt":"2024-09-17T10:58:50","guid":{"rendered":"http:\/\/newmof.org\/?page_id=788"},"modified":"2025-03-03T12:08:16","modified_gmt":"2025-03-03T12:08:16","slug":"services","status":"publish","type":"page","link":"https:\/\/newmof.org\/cy\/services\/","title":{"rendered":"Dod O Hyd I Wasanaethau"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"788\" class=\"elementor elementor-788\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6394d84b e-flex e-con-boxed e-con e-parent\" data-id=\"6394d84b\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div data-custom-animations=\"true\" data-ca-options=\"{&quot;addChildTimelines&quot;:false,&quot;trigger&quot;:&quot;firstChild&quot;,&quot;animationTarget&quot;:&quot;:scope  &gt; .elementor-element:not(.lqd-exclude-parent-ca) &gt; .elementor-widget-container, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-split-lines .lqd-lines .split-inner, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-split-words .lqd-words .split-inner, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-split-chars .lqd-chars .split-inner, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-adv-txt-fig, :scope  &gt; .elementor-widget-ld_custom_menu .lqd-fancy-menu &gt; ul &gt; li, :scope .e-con:not([data-parallax]) .elementor-element &gt; .elementor-widget-container, :scope .e-con:not([data-parallax]) .elementor-widget-hub_fancy_heading .lqd-split-lines .lqd-lines .split-inner, :scope .e-con:not([data-parallax]) .elementor-widget-hub_fancy_heading .lqd-split-words .lqd-words .split-inner, :scope .e-con:not([data-parallax]) .elementor-widget-hub_fancy_heading .lqd-split-chars .lqd-chars .split-inner, :scope .e-con:not([data-parallax]) .elementor-widget-ld_custom_menu .lqd-fancy-menu &gt; ul &gt; li&quot;,&quot;duration&quot;:1000,&quot;delay&quot;:100,&quot;ease&quot;:&quot;expo.out&quot;,&quot;initValues&quot;:{&quot;y&quot;:&quot;95px&quot;,&quot;opacity&quot;:0,&quot;transformOrigin&quot;:&quot;50% 50% 0px&quot;},&quot;animations&quot;:{&quot;y&quot;:&quot;0px&quot;,&quot;opacity&quot;:1,&quot;transformOrigin&quot;:&quot;50% 50% 0px&quot;}}\" class=\"elementor-element elementor-element-4267a562 e-con-full e-flex e-con e-child\" data-id=\"4267a562\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div data-custom-animations=\"true\" data-ca-options=\"{&quot;addChildTimelines&quot;:false,&quot;trigger&quot;:&quot;firstChild&quot;,&quot;animationTarget&quot;:&quot;:scope &gt; .elementor-widget-container&quot;,&quot;ease&quot;:[&quot;power4.out&quot;],&quot;initValues&quot;:{&quot;transformOrigin&quot;:&quot;50% 50% 0px&quot;},&quot;animations&quot;:{&quot;transformOrigin&quot;:&quot;50% 50% 0px&quot;}}\" class=\"elementor-element elementor-element-92e3a99 elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"92e3a99\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-search-location\" viewBox=\"0 0 512 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-86be083 elementor-widget__width-initial elementor-widget elementor-widget-text-editor\" data-id=\"86be083\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: justify;\">Looking for support? This search tool can help you find the right resources and services in your area. Simply click the button to discover services, support groups, hotlines, and more. We\u2019re committed to helping you find the care and support you deserve.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div data-custom-animations=\"true\" data-ca-options=\"{&quot;addChildTimelines&quot;:false,&quot;trigger&quot;:&quot;firstChild&quot;,&quot;animationTarget&quot;:&quot;:scope  &gt; .elementor-element:not(.lqd-exclude-parent-ca) &gt; .elementor-widget-container, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-split-lines .lqd-lines .split-inner, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-split-words .lqd-words .split-inner, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-split-chars .lqd-chars .split-inner, :scope  &gt; .elementor-widget-hub_fancy_heading .lqd-adv-txt-fig, :scope  &gt; .elementor-widget-ld_custom_menu .lqd-fancy-menu &gt; ul &gt; li, :scope .e-con:not([data-parallax]) .elementor-element &gt; .elementor-widget-container, :scope .e-con:not([data-parallax]) .elementor-widget-hub_fancy_heading .lqd-split-lines .lqd-lines .split-inner, :scope .e-con:not([data-parallax]) .elementor-widget-hub_fancy_heading .lqd-split-words .lqd-words .split-inner, :scope .e-con:not([data-parallax]) .elementor-widget-hub_fancy_heading .lqd-split-chars .lqd-chars .split-inner, :scope .e-con:not([data-parallax]) .elementor-widget-ld_custom_menu .lqd-fancy-menu &gt; ul &gt; li&quot;,&quot;duration&quot;:1000,&quot;startDelay&quot;:500,&quot;delay&quot;:100,&quot;ease&quot;:&quot;expo.out&quot;,&quot;initValues&quot;:{&quot;y&quot;:&quot;60px&quot;,&quot;scaleX&quot;:0.8,&quot;scaleY&quot;:0.8,&quot;opacity&quot;:0,&quot;transformOrigin&quot;:&quot;50% 50% 0px&quot;},&quot;animations&quot;:{&quot;y&quot;:&quot;0px&quot;,&quot;scaleX&quot;:1,&quot;scaleY&quot;:1,&quot;opacity&quot;:1,&quot;transformOrigin&quot;:&quot;50% 50% 0px&quot;}}\" class=\"elementor-element elementor-element-45239b94 e-con-full e-flex e-con e-child\" data-id=\"45239b94\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8d9cd20 elementor-widget elementor-widget-text-editor\" data-id=\"8d9cd20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<img decoding=\"async\" class=\"wp-image-950 aligncenter\" src=\"http:\/\/newmof.org\/wp-content\/uploads\/2024\/09\/312935083_607823670906689_3617618503701310453_n-300x194.jpg\" alt=\"\" width=\"150\" height=\"97\" srcset=\"https:\/\/newmof.org\/wp-content\/uploads\/2024\/09\/312935083_607823670906689_3617618503701310453_n-300x194.jpg 300w, https:\/\/newmof.org\/wp-content\/uploads\/2024\/09\/312935083_607823670906689_3617618503701310453_n-18x12.jpg 18w, https:\/\/newmof.org\/wp-content\/uploads\/2024\/09\/312935083_607823670906689_3617618503701310453_n.jpg 393w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>\n<h3 style=\"text-align: center;\">Find a Service<\/h3>\n    \n    <form id=\"dewisSearchForm\">\n        <label for=\"searchTerm\">Search for:<\/label>\n        <input type=\"text\" id=\"searchTerm\" name=\"q\" placeholder=\"Enter keywords (e.g., dementia support)\">\n\n        <label for=\"location\">Postcode:<\/label>\n        <input type=\"text\" id=\"location\" name=\"loc\" placeholder=\"Enter a Welsh postcode\">\n\n        <label for=\"distance\">Search within:<\/label>\n        <select id=\"distance\" name=\"d\">\n            <option value=\"5\">5 miles (default)<\/option>\n            <option value=\"1\">1 mile<\/option>\n            <option value=\"3\">3 miles<\/option>\n            <option value=\"10\">10 miles<\/option>\n            <option value=\"25\">25 miles<\/option>\n        <\/select>\n\n        <label for=\"authority\">Local Authority:<\/label>\n        <select id=\"authority\" name=\"a\">\n            <option value=\"\">Any Authority<\/option>\n            <option value=\"W06000004\">Denbighshire<\/option>\n            <option value=\"W06000005\">Flintshire<\/option>\n            <option value=\"W06000006\">Wrexham<\/option>\n        <\/select>\n\t\t\n        <button type=\"button\" onclick=\"performSearch()\">Search<\/button>\n    <\/form>\n\n    <script>\n    function formatPostcode(postcode) {\n        \/\/ Remove spaces and capitalise\n        postcode = postcode.replace(\/\\s+\/g, \"\").toUpperCase();\n\n        \/\/ If it's not the right length for a UK postcode, return as-is\n        if (postcode.length < 5 || postcode.length > 7) return postcode;\n\n        \/\/ Insert a space before the last 3 characters\n        return postcode.slice(0, -3) + \" \" + postcode.slice(-3);\n    }\n\n    function performSearch() {\n        let baseUrl = \"https:\/\/www.dewis.wales\/SearchResults.aspx?\";\n        let query = document.getElementById(\"searchTerm\").value.trim();\n        let location = document.getElementById(\"location\").value.trim();\n\n        \/\/ Validation: Ensure \"Search for\" and \"Postcode\" fields are not empty\n        if (query === \"\") {\n            alert(\"Please enter a search term.\");\n            return;\n        }\n        if (location === \"\") {\n            alert(\"Please enter a postcode.\");\n            return;\n        }\n\n        \/\/ Format postcode correctly\n        location = formatPostcode(location);\n\n        let distance = document.getElementById(\"distance\").value || \"5\";   \n        let authority = document.getElementById(\"authority\").value;\n\n        \/\/ Build query string\n        let params = [];\n        params.push(\"q=\" + encodeURIComponent(query));\n        params.push(\"loc=\" + encodeURIComponent(location));\n        params.push(\"d=\" + distance); \n\n        if (authority && authority !== \"\") params.push(\"a=\" + authority);\n\n        let searchUrl = baseUrl + params.join(\"&\");\n        window.open(searchUrl, \"_blank\");\n    }\n    <\/script>\n\n    \t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Looking for support? This search tool can help you find the right resources and services in your area. Simply click the button to discover services, support groups, hotlines, and more. We\u2019re committed to helping you find the care and support you deserve. Find a Service<\/p>","protected":false},"author":1,"featured_media":963,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-788","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/pages\/788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/comments?post=788"}],"version-history":[{"count":0,"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/pages\/788\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/media\/963"}],"wp:attachment":[{"href":"https:\/\/newmof.org\/cy\/wp-json\/wp\/v2\/media?parent=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}