{"id":15,"date":"2023-08-21T17:28:54","date_gmt":"2023-08-21T16:28:54","guid":{"rendered":"https:\/\/salvationmeds.com\/?page_id=15"},"modified":"2024-10-13T08:42:07","modified_gmt":"2024-10-13T07:42:07","slug":"home","status":"publish","type":"page","link":"https:\/\/salvationmeds.com\/","title":{"rendered":"Home"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"15\" class=\"elementor elementor-15\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-84257a6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"84257a6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-12c706b\" data-id=\"12c706b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-81ae038 elementor-widget elementor-widget-html\" data-id=\"81ae038\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\n\njQuery(document).ready(function($) {\n    $(\"#search-box\").autocomplete({\n        source: function(request, response) {\n            $.post(myAjax.ajaxurl, {\n                action: 'fetch_titles',\n                query: request.term || ''  \/\/ Fetch all posts if the term is empty\n            }, function(data) {\n                var sortedData = JSON.parse(data).sort(function(a, b) {\n                    return a.label.localeCompare(b.label);  \/\/ Sort alphabetically by label\n                });\n                response(sortedData);\n            });\n        },\n        minLength: 0,\n        max: 100,\n        open: function() {\n            var width = $('#search-box').outerWidth();\n            $('.ui-autocomplete').css('width', width + 'px');\n        },\n        select: function(event, ui) {\n            \/\/ Redirect to the selected post\n            window.location.href = ui.item.value;  \/\/ Use the post URL here\n            return false;\n        }\n    });\n    \n    $(window).resize(function() {\n        var width = $('#search-box').outerWidth();\n        $('.ui-autocomplete').css('width', width + 'px');\n\n        \/\/ Immediately reposition the autocomplete dropdown\n        var position = $(\"#search-box\").offset();\n        $('.ui-autocomplete').css({\n            'top': position.top + $(\"#search-box\").outerHeight(),\n            'left': position.left\n        });\n    });\n    \n        $(\"#search-box\").on(\"focus\", function() {\n        $(this).autocomplete(\"search\", \"\");\n    });\n});\n\n\n\n<\/script>\n\n\n\n\n<style>\n.ui-autocomplete {\n    max-height: 200px;\n    overflow-y: scroll;\n    overflow-x: hidden;\n    border: 1px solid #ddd;\n    background-color: #f9f9f9;\n    padding: 5px 0;\n    border-radius: 4px;\n    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);\n    position: absolute;\n    top: 100%;\n    left: 65px;\n    z-index: 1000;\n\n}\n\n.ui-menu-item {\n    list-style-type: none;\n    padding: 5px 15px;\n    cursor: pointer;\n    font-size: 14px;\n\n}\n\n.ui-menu-item:hover {\n    background-color: #eee;\n}\n\n.ui-menu-item .ui-state-focus, .ui-menu-item .ui-state-active {\n    background-color: #eee;\n    border: none;\n    color: #333;\n}\n\n\n\n.ui-menu-item {\n    transform-origin: left center; \n}\n.ui-menu-item:hover {\n\n    transform: scale(1.10);\n    font-weight: bold;\n}\n\n.ui-menu-item {\n    display: flex;  \/* Use flexbox to align items *\/\n    align-items: center;  \/* Vertically center items *\/\n}\n\n.ui-menu-item::before {\n    content: \"\u27a1\";  \/* The arrow *\/\n    margin-right: 10px;  \/* Spacing between the arrow and the title *\/\n}\n\n\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b6f92f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b6f92f2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5079fbb\" data-id=\"5079fbb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d8d3d9f elementor-widget elementor-widget-html\" data-id=\"d8d3d9f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"custom-search-container\">\r\n    <input type=\"text\" id=\"search-box\" placeholder=\"Search...\">\r\n    <button class=\"elementor-search-form__submit\" type=\"submit\" aria-label=\"Search\">\r\n        <i aria-hidden=\"true\" class=\"fas fa-search\"><\/i>\r\n        <span class=\"elementor-screen-only\">Search<\/span>\r\n    <\/button>\r\n<\/div>\r\n\r\n<style>\r\n\r\n\r\n#search-box {\r\n    padding-right: 100;  \/* Space for the button *\/\r\n    height: 35px;  \/* Ensure it has a height *\/\r\n}\r\n\r\n.elementor-search-form__submit {\r\n    position: absolute;\r\n    right: 0;\r\n    top: 50%;\r\n    transform: translateY(-50%);  \/* Vertically center the button *\/\r\n    border: none;\r\n    background: none;\r\n    cursor: pointer;\r\n    height: 35px;  \/* Match the height of the search box *\/\r\n    width: px;  \/* Width of the button *\/\r\n    padding: 0;\r\n    display: flex;  \/* To center the icon *\/\r\n    align-items: center;\r\n    justify-content: center;\r\n}\r\n\r\n.elementor-search-form__submit i {\r\n    font-size: 16px; \r\n}\r\n\r\n    \r\n<\/style>\r\n\r\n\r\n\r\n\r\n\r\n<script>\r\n    \r\n    jQuery(document).ready(function($) {\r\n    $('.elementor-search-form__submit').on('click', function() {\r\n        var searchTerm = $('#search-box').val();\r\n        if(searchTerm) {\r\n            \/\/ Redirect to search results page or handle search as needed\r\n            window.location.href = '\/?s=' + searchTerm;\r\n        }\r\n    });\r\n});\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-57d5ff3 elementor-widget elementor-widget-heading\" data-id=\"57d5ff3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">Disclaimer:<br><br>\n\nThe information and products provided on this website are for educational purposes only and are not intended to diagnose, treat, cure, or prevent any disease. The statements and products on this site have not been evaluated by the Food and Drug Administration (FDA). It is always recommended to consult with a healthcare professional before starting any new herbal supplements or remedies. Please use these products responsibly and under the guidance of a qualified professional.<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Search Disclaimer: The information and products provided on this website are for educational purposes only and are not intended to diagnose, treat, cure, or prevent any disease. The statements and products on this site have not been evaluated by the Food and Drug Administration (FDA). It is always recommended to consult with a healthcare professional [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-15","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/pages\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":233,"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/pages\/15\/revisions"}],"predecessor-version":[{"id":1727,"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/pages\/15\/revisions\/1727"}],"wp:attachment":[{"href":"https:\/\/salvationmeds.com\/index.php\/wp-json\/wp\/v2\/media?parent=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}