{"id":114,"date":"2026-06-27T16:53:58","date_gmt":"2026-06-27T16:53:58","guid":{"rendered":"https:\/\/starveless.in\/?page_id=114"},"modified":"2026-06-27T16:57:12","modified_gmt":"2026-06-27T16:57:12","slug":"account","status":"publish","type":"page","link":"https:\/\/starveless.in\/?page_id=114","title":{"rendered":"Account"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"114\" class=\"elementor elementor-114\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d366978 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d366978\" 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-848f29b\" data-id=\"848f29b\" 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-164511d elementor-widget elementor-widget-shortcode\" data-id=\"164511d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">        <div class=\"fac-wrap\" id=\"fac-wrap\">\n \n            <!-- ===== MAIN MENU ===== -->\n            <div class=\"fac-screen active\" id=\"fac-screen-main\">\n \n                <!-- Close button -->\n                <button class=\"fac-close-btn\" onclick=\"history.back()\">\n                    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\">\n                        <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"#fee2e2\" stroke=\"none\"\/>\n                        <line x1=\"8\" y1=\"8\" x2=\"16\" y2=\"16\" stroke=\"#ef4444\"\/>\n                        <line x1=\"16\" y1=\"8\" x2=\"8\" y2=\"16\" stroke=\"#ef4444\"\/>\n                    <\/svg>\n                <\/button>\n \n                <!-- Avatar + Name -->\n                <div class=\"fac-profile-head\">\n                    <div class=\"fac-avatar-wrap\" id=\"fac-avatar-wrap\">\n                        <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/?s=120&#038;d=mm&#038;r=g\" alt=\"Avatar\" id=\"fac-avatar-img\" \/>\n                                            <\/div>\n                    <div class=\"fac-profile-info\">\n                        <div class=\"fac-profile-name\">Guest User<\/div>\n                                            <\/div>\n                <\/div>\n \n                <!-- Menu Items -->\n                <div class=\"fac-menu-list\">\n \n                    <button class=\"fac-menu-item\" onclick=\"facShow('orders')\">\n                        <span class=\"fac-menu-icon\">\n                            <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n                                <path d=\"M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z\"\/>\n                                <line x1=\"3\" y1=\"6\" x2=\"21\" y2=\"6\"\/>\n                                <path d=\"M16 10a4 4 0 01-8 0\"\/>\n                            <\/svg>\n                        <\/span>\n                        <span class=\"fac-menu-label\">My Orders<\/span>\n                        <span class=\"fac-menu-arrow\">\u203a<\/span>\n                    <\/button>\n \n                    <div class=\"fac-divider\"><\/div>\n \n                                        <a class=\"fac-menu-item\" href=\"https:\/\/starveless.in\/?page_id=11\">\n                        <span class=\"fac-menu-icon\">\n                            <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n                                <path d=\"M15 3h4a2 2 0 012 2v14a2 2 0 01-2 2h-4\"\/>\n                                <polyline points=\"10 17 15 12 10 7\"\/>\n                                <line x1=\"15\" y1=\"12\" x2=\"3\" y2=\"12\"\/>\n                            <\/svg>\n                        <\/span>\n                        <span class=\"fac-menu-label\">Login \/ Register<\/span>\n                        <span class=\"fac-menu-arrow\">\u203a<\/span>\n                    <\/a>\n                     \n                <\/div>\n            <\/div>\n \n            <!-- ===== MY ORDERS ===== -->\n            <div class=\"fac-screen\" id=\"fac-screen-orders\">\n                <div class=\"fac-sub-head\">\n                    <button class=\"fac-back-btn\" onclick=\"facShow('main')\">\n                        <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#14b8a6\" stroke-width=\"2.2\" stroke-linecap=\"round\"><polyline points=\"15 18 9 12 15 6\"\/><\/svg>\n                        Back to Home\n                    <\/button>\n                <\/div>\n                <div class=\"fac-orders-body\">\n                    <div class=\"fac-empty-state\"><p>Orders dekhne ke liye pehle login karo.<\/p><a href=\"https:\/\/starveless.in\/?page_id=11\" class=\"fac-go-home-btn\">Login<\/a><\/div>                <\/div>\n            <\/div>\n \n            <!-- ===== EDIT PROFILE ===== -->\n            <div class=\"fac-screen\" id=\"fac-screen-edit-profile\">\n                <div class=\"fac-sub-head\">\n                    <button class=\"fac-back-btn\" onclick=\"facShow('main')\">\n                        <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#14b8a6\" stroke-width=\"2.2\" stroke-linecap=\"round\"><polyline points=\"15 18 9 12 15 6\"\/><\/svg>\n                        Back to Home\n                    <\/button>\n                <\/div>\n                <div class=\"fac-form-wrap\">\n                    <h2 class=\"fac-form-title\">Edit Profile<\/h2>\n                    <div id=\"fac-profile-msg\"><\/div>\n                    <div class=\"fac-field\">\n                        <label>First Name<\/label>\n                        <input type=\"text\" id=\"fac-first-name\" value=\"Guest\" \/>\n                    <\/div>\n                    <div class=\"fac-field\">\n                        <label>Last Name<\/label>\n                        <input type=\"text\" id=\"fac-last-name\" value=\"User\" \/>\n                    <\/div>\n                    <div class=\"fac-field\">\n                        <label>Email<\/label>\n                        <input type=\"email\" id=\"fac-email\" value=\"\" \/>\n                    <\/div>\n                    <div class=\"fac-field\">\n                        <label>Phone<\/label>\n                        <input type=\"tel\" id=\"fac-phone\" value=\"\" \/>\n                    <\/div>\n                    <button class=\"fac-submit-btn\" onclick=\"facSaveProfile()\">Update Profile<\/button>\n                <\/div>\n            <\/div>\n \n            <!-- ===== ADDRESS ===== -->\n            <div class=\"fac-screen\" id=\"fac-screen-address\">\n                <div class=\"fac-sub-head\" style=\"display:flex;align-items:center;justify-content:space-between;\">\n                    <button class=\"fac-back-btn\" onclick=\"facShow('main')\">\n                        <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#14b8a6\" stroke-width=\"2.2\" stroke-linecap=\"round\"><polyline points=\"15 18 9 12 15 6\"\/><\/svg>\n                        Back\n                    <\/button>\n                    <button class=\"fac-add-addr-btn\" onclick=\"facOpenAddressPopup()\">+ Add New<\/button>\n                <\/div>\n                <h2 class=\"fac-form-title\" style=\"padding:0 20px;\">Address<\/h2>\n                <div class=\"fac-address-list\" id=\"fac-address-list\">\n                    <div class=\"fac-addr-empty\">Login karke address add karo.<\/div>                <\/div>\n            <\/div>\n \n            <!-- ===== CHANGE PASSWORD ===== -->\n            <div class=\"fac-screen\" id=\"fac-screen-change-password\">\n                <div class=\"fac-sub-head\">\n                    <button class=\"fac-back-btn\" onclick=\"facShow('main')\">\n                        <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#14b8a6\" stroke-width=\"2.2\" stroke-linecap=\"round\"><polyline points=\"15 18 9 12 15 6\"\/><\/svg>\n                        Back to Home\n                    <\/button>\n                <\/div>\n                <div class=\"fac-form-wrap\">\n                    <h2 class=\"fac-form-title\">Change Password<\/h2>\n                    <div id=\"fac-pw-msg\"><\/div>\n                    <div class=\"fac-field\">\n                        <label>Old Password<\/label>\n                        <input type=\"password\" id=\"fac-old-pw\" \/>\n                    <\/div>\n                    <div class=\"fac-field\">\n                        <label>New Password<\/label>\n                        <input type=\"password\" id=\"fac-new-pw\" \/>\n                    <\/div>\n                    <div class=\"fac-field\">\n                        <label>Retype New Password<\/label>\n                        <input type=\"password\" id=\"fac-new-pw2\" \/>\n                    <\/div>\n                    <button class=\"fac-submit-btn\" onclick=\"facChangePassword()\">Change Password<\/button>\n                <\/div>\n            <\/div>\n \n        <\/div><!-- \/fac-wrap -->\n \n        <!-- ===== ADDRESS POPUP ===== -->\n        <div class=\"fac-popup-overlay\" id=\"fac-addr-overlay\" onclick=\"facCloseAddressPopup()\"><\/div>\n        <div class=\"fac-popup\" id=\"fac-addr-popup\">\n            <div class=\"fac-popup-head\">\n                <span class=\"fac-popup-title\">Add Address<\/span>\n                <button class=\"fac-popup-close\" onclick=\"facCloseAddressPopup()\">\u2715<\/button>\n            <\/div>\n            <div id=\"fac-addr-msg\"><\/div>\n            <div class=\"fac-field\">\n                <label>Building \/ House No.<\/label>\n                <input type=\"text\" id=\"fac-addr-building\" placeholder=\"e.g. Flat 4B, Sunrise Apts\" \/>\n            <\/div>\n            <div class=\"fac-field\">\n                <label>Landmark<\/label>\n                <input type=\"text\" id=\"fac-addr-landmark\" placeholder=\"e.g. Near City Mall\" \/>\n            <\/div>\n            <div class=\"fac-field\">\n                <label>Label<\/label>\n                <div class=\"fac-label-group\" id=\"fac-label-group\">\n                    <button class=\"fac-label-btn active\" data-label=\"Home\">\ud83c\udfe0 Home<\/button>\n                    <button class=\"fac-label-btn\" data-label=\"Work\">\ud83d\udcbc Work<\/button>\n                    <button class=\"fac-label-btn\" data-label=\"Others\">\ud83d\udccd Others<\/button>\n                <\/div>\n            <\/div>\n            <button class=\"fac-submit-btn\" onclick=\"facSaveAddress()\">Save Address<\/button>\n        <\/div>\n \n        <style>\n        @import url('https:\/\/fonts.googleapis.com\/css2?family=Quicksand:wght@600;700;800&display=swap');\n \n        .fac-wrap {\n            max-width: 480px;\n            margin: 0 auto;\n            font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n            min-height: 80vh;\n            box-sizing: border-box;\n            position: relative;\n        }\n        .fac-wrap * { box-sizing: inherit; }\n \n        \/* Screens *\/\n        .fac-screen { display: none; }\n        .fac-screen.active { display: block; }\n \n        \/* Close button top-right *\/\n        .fac-close-btn {\n            position: absolute; top: 12px; right: 12px;\n            background: none; border: none; cursor: pointer; padding: 0; line-height: 0;\n        }\n        .fac-close-btn svg { width: 32px; height: 32px; }\n \n        \/* Profile head *\/\n        .fac-profile-head {\n            display: flex; align-items: center; gap: 16px;\n            padding: 28px 20px 24px;\n        }\n        .fac-avatar-wrap {\n            position: relative; width: 72px; height: 72px; flex-shrink: 0;\n        }\n        .fac-avatar-wrap img {\n            width: 72px; height: 72px; border-radius: 50%;\n            object-fit: cover; border: 3px solid #e0faf7;\n        }\n        .fac-avatar-edit {\n            position: absolute; bottom: 0; right: 0;\n            width: 24px; height: 24px; border-radius: 50%;\n            background: #14b8a6; display: flex; align-items: center;\n            justify-content: center; cursor: pointer;\n        }\n        .fac-avatar-edit svg { width: 12px; height: 12px; }\n        .fac-profile-name { font-size: 17px; font-weight: 700; color: #1f2430; }\n        .fac-profile-email { font-size: 12px; color: #8a8f98; margin-top: 3px; }\n \n        \/* Menu list *\/\n        .fac-menu-list { padding: 0 20px 24px; }\n        .fac-menu-item {\n            width: 100%; display: flex; align-items: center; gap: 14px;\n            padding: 16px 0; background: none !important; border: none;\n            cursor: pointer; text-align: left; text-decoration: none !important;\n            color: inherit !important; box-shadow: none !important;\n            outline: none; border-radius: 0 !important;\n        }\n        .fac-menu-item:hover, .fac-menu-item:focus, .fac-menu-item:active {\n            background: none !important;\n            color: inherit !important;\n            box-shadow: none !important;\n            text-decoration: none !important;\n            outline: none !important;\n            border: none !important;\n        }\n        .fac-logout:hover, .fac-logout:focus, .fac-logout:active {\n            background: none !important;\n            color: #ef4444 !important;\n        }\n        .fac-menu-icon {\n            width: 36px; height: 36px; border-radius: 10px;\n            background: #f0fdfb; display: flex; align-items: center;\n            justify-content: center; flex-shrink: 0;\n        }\n        .fac-menu-icon svg { width: 18px; height: 18px; stroke: #14b8a6; }\n        .fac-menu-label { flex: 1; font-size: 14.5px; font-weight: 600; color: #1f2430; }\n        .fac-menu-arrow { font-size: 20px; color: #c0c4cc; }\n        .fac-divider { height: 1px; background: #f0f0f0; }\n        .fac-logout .fac-menu-icon { background: #fff5f5; }\n        .fac-logout .fac-menu-icon svg { stroke: #ef4444; }\n        .fac-logout .fac-menu-label { color: #ef4444; }\n \n        \/* Sub screens *\/\n        .fac-sub-head {\n            padding: 16px 20px 8px;\n        }\n        .fac-back-btn {\n            background: none; border: none; cursor: pointer;\n            display: flex; align-items: center; gap: 4px;\n            color: #14b8a6; font-size: 13.5px; font-weight: 600; padding: 0;\n        }\n        .fac-back-btn svg { width: 18px; height: 18px; }\n \n        \/* Forms *\/\n        .fac-form-wrap { padding: 8px 20px 32px; }\n        .fac-form-title { font-size: 20px; font-weight: 700; color: #1f2430; margin: 0 0 20px; }\n        .fac-field { margin-bottom: 16px; }\n        .fac-field label { display: block; font-size: 12.5px; font-weight: 600; color: #5a6070; margin-bottom: 6px; }\n        .fac-field input {\n            width: 100%; padding: 13px 14px;\n            border: 1.5px solid #e8eaed; border-radius: 10px;\n            font-size: 14px; color: #1f2430; outline: none;\n            transition: border-color .15s;\n        }\n        .fac-field input:focus { border-color: #14b8a6; }\n        .fac-submit-btn {\n            width: 100%; padding: 15px; background: #14b8a6;\n            color: #fff; border: none; border-radius: 50px;\n            font-size: 15px; font-weight: 700; cursor: pointer;\n            margin-top: 8px; transition: background .15s;\n        }\n        .fac-submit-btn:hover { background: #0d9488; }\n \n        \/* Msg *\/\n        .fac-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }\n        .fac-msg.success { background: #f0fdfb; color: #0d9488; }\n        .fac-msg.error   { background: #fff5f5; color: #ef4444; }\n \n        \/* Orders *\/\n        .fac-orders-body { padding: 8px 20px 32px; }\n        .fac-order-card {\n            border: 1px solid #eef0f2; border-radius: 12px;\n            padding: 14px; margin-bottom: 12px; background: #fff;\n        }\n        .fac-order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }\n        .fac-order-id { font-size: 13px; font-weight: 700; color: #1f2430; }\n        .fac-order-status {\n            font-size: 11px; font-weight: 700; padding: 3px 10px;\n            border-radius: 20px; background: #f0fdfb; color: #0d9488;\n        }\n        .fac-order-status.fac-status-cancelled { background: #fff5f5; color: #ef4444; }\n        .fac-order-status.fac-status-pending   { background: #fffbeb; color: #d97706; }\n        .fac-order-items { font-size: 12.5px; color: #8a8f98; margin-bottom: 8px; }\n        .fac-order-bottom { display: flex; justify-content: space-between; }\n        .fac-order-date  { font-size: 12px; color: #b0b4bc; }\n        .fac-order-total { font-size: 14px; font-weight: 700; color: #14b8a6; }\n \n        \/* Empty state *\/\n        .fac-empty-state { text-align: center; padding: 32px 20px; }\n        .fac-go-home-btn {\n            display: inline-block; background: #14b8a6; color: #fff;\n            padding: 14px 48px; border-radius: 50px; font-size: 15px;\n            font-weight: 700; text-decoration: none; margin-top: 8px;\n        }\n \n        \/* Address list *\/\n        .fac-address-list { padding: 12px 20px 32px; }\n        .fac-addr-card {\n            border: 1.5px solid #eef0f2; border-radius: 12px;\n            padding: 14px; margin-bottom: 12px;\n            display: flex; align-items: flex-start; gap: 12px;\n        }\n        .fac-addr-icon {\n            width: 36px; height: 36px; border-radius: 10px;\n            background: #f0fdfb; display: flex; align-items: center;\n            justify-content: center; flex-shrink: 0; font-size: 16px;\n        }\n        .fac-addr-info { flex: 1; }\n        .fac-addr-label { font-size: 12px; font-weight: 700; color: #14b8a6; margin-bottom: 3px; }\n        .fac-addr-text  { font-size: 13px; color: #1f2430; line-height: 1.4; }\n        .fac-addr-del {\n            background: none; border: none; cursor: pointer;\n            color: #ef4444; font-size: 18px; padding: 0; line-height: 1;\n        }\n        .fac-add-addr-btn {\n            background: #f0fdfb; color: #14b8a6; border: 1.5px solid #14b8a6;\n            border-radius: 20px; font-size: 13px; font-weight: 700;\n            padding: 6px 16px; cursor: pointer;\n        }\n        .fac-addr-empty { text-align: center; padding: 40px 20px; color: #8a8f98; font-size: 14px; }\n \n        \/* Address Popup *\/\n        .fac-popup-overlay {\n            display: none; position: fixed; inset: 0;\n            background: rgba(0,0,0,.45); z-index: 1000010;\n        }\n        .fac-popup-overlay.open { display: block; }\n        .fac-popup {\n            display: none; position: fixed;\n            bottom: 0; left: 50%; transform: translateX(-50%);\n            width: 100%; max-width: 480px;\n            background: #fff; border-radius: 20px 20px 0 0;\n            padding: 20px 20px 36px; z-index: 1000011;\n            box-shadow: 0 -8px 32px rgba(0,0,0,.12);\n        }\n        .fac-popup.open { display: block; animation: facSlideUp .3s ease; }\n        @keyframes facSlideUp { from { transform: translateX(-50%) translateY(100%); } to { transform: translateX(-50%) translateY(0); } }\n        .fac-popup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }\n        .fac-popup-title { font-size: 17px; font-weight: 700; color: #1f2430; }\n        .fac-popup-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #8a8f98; }\n \n        \/* Label buttons *\/\n        .fac-label-group { display: flex; gap: 10px; }\n        .fac-label-btn {\n            flex: 1; padding: 10px 8px; border-radius: 10px;\n            border: 1.5px solid #eef0f2; background: #fff;\n            font-size: 13px; font-weight: 600; cursor: pointer;\n            transition: all .15s; color: #5a6070;\n        }\n        .fac-label-btn.active {\n            border-color: #14b8a6; background: #f0fdfb; color: #0d9488;\n        }\n        <\/style>\n \n        <script>\n        function facShow(screen) {\n            document.querySelectorAll('.fac-screen').forEach(function(s){ s.classList.remove('active'); });\n            var el = document.getElementById('fac-screen-' + screen);\n            if (el) el.classList.add('active');\n        }\n \n        \/\/ Avatar preview\n        var avatarInput = document.getElementById('fac-avatar-input');\n        if (avatarInput) {\n            avatarInput.addEventListener('change', function () {\n                var file = this.files[0];\n                if (!file) return;\n                var reader = new FileReader();\n                reader.onload = function (e) {\n                    document.getElementById('fac-avatar-img').src = e.target.result;\n                };\n                reader.readAsDataURL(file);\n            });\n        }\n \n        \/\/ Save Profile\n        function facSaveProfile() {\n            var data = {\n                action:     'foodappi_save_profile',\n                nonce:      '7e1eaae22f',\n                first_name: document.getElementById('fac-first-name').value,\n                last_name:  document.getElementById('fac-last-name').value,\n                email:      document.getElementById('fac-email').value,\n                phone:      document.getElementById('fac-phone').value,\n            };\n            facAjax(data, 'fac-profile-msg');\n        }\n \n        \/\/ Change Password\n        function facChangePassword() {\n            var np  = document.getElementById('fac-new-pw').value;\n            var np2 = document.getElementById('fac-new-pw2').value;\n            if (np !== np2) { facMsg('fac-pw-msg', 'New passwords do not match.', 'error'); return; }\n            var data = {\n                action:   'foodappi_change_password',\n                nonce:    'ff689eeda7',\n                old_pw:   document.getElementById('fac-old-pw').value,\n                new_pw:   np,\n            };\n            facAjax(data, 'fac-pw-msg');\n        }\n \n        \/\/ Address Popup\n        function facOpenAddressPopup() {\n            document.getElementById('fac-addr-overlay').classList.add('open');\n            document.getElementById('fac-addr-popup').classList.add('open');\n            document.getElementById('fac-addr-building').value = '';\n            document.getElementById('fac-addr-landmark').value = '';\n            document.getElementById('fac-addr-msg').innerHTML = '';\n            document.querySelectorAll('.fac-label-btn').forEach(function(b){ b.classList.remove('active'); });\n            document.querySelector('.fac-label-btn').classList.add('active');\n        }\n        function facCloseAddressPopup() {\n            document.getElementById('fac-addr-overlay').classList.remove('open');\n            document.getElementById('fac-addr-popup').classList.remove('open');\n        }\n        document.querySelectorAll('.fac-label-btn').forEach(function(btn){\n            btn.addEventListener('click', function(){\n                document.querySelectorAll('.fac-label-btn').forEach(function(b){ b.classList.remove('active'); });\n                btn.classList.add('active');\n            });\n        });\n        function facSaveAddress() {\n            var building = document.getElementById('fac-addr-building').value.trim();\n            var landmark = document.getElementById('fac-addr-landmark').value.trim();\n            var labelBtn = document.querySelector('.fac-label-btn.active');\n            var label    = labelBtn ? labelBtn.dataset.label : 'Home';\n            if (!building) { facMsg('fac-addr-msg', 'Building \/ House No. zaroori hai.', 'error'); return; }\n            var data = {\n                action:   'foodappi_save_address',\n                nonce:    'a6c374c3bf',\n                building: building,\n                landmark: landmark,\n                label:    label,\n            };\n            facAjax(data, 'fac-addr-msg', function(){\n                facCloseAddressPopup();\n                \/\/ Reload address list\n                var xhr2 = new XMLHttpRequest();\n                xhr2.open('POST', 'https:\/\/starveless.in\/wp-admin\/admin-ajax.php');\n                xhr2.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');\n                xhr2.onload = function(){ document.getElementById('fac-address-list').innerHTML = xhr2.responseText; };\n                xhr2.send('action=foodappi_load_addresses&nonce=a6c374c3bf');\n            });\n        }\n \n        \/\/ Generic AJAX\n        function facAjax(data, msgId, onSuccess) {\n            var btn = event && event.target;\n            var params = Object.keys(data).map(function(k){ return encodeURIComponent(k) + '=' + encodeURIComponent(data[k]); }).join('&');\n            var xhr = new XMLHttpRequest();\n            xhr.open('POST', 'https:\/\/starveless.in\/wp-admin\/admin-ajax.php');\n            xhr.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');\n            xhr.onload = function(){\n                try {\n                    var res = JSON.parse(xhr.responseText);\n                    if (res.success) {\n                        facMsg(msgId, res.data || 'Saved!', 'success');\n                        if (onSuccess) onSuccess();\n                    } else {\n                        facMsg(msgId, res.data || 'Something went wrong.', 'error');\n                    }\n                } catch(e) { facMsg(msgId, 'Error occurred.', 'error'); }\n            };\n            xhr.send(params);\n        }\n        function facMsg(id, text, type) {\n            var el = document.getElementById(id);\n            if (el) { el.innerHTML = '<div class=\"fac-msg ' + type + '\">' + text + '<\/div>'; }\n        }\n \n        \/\/ Delete Address\n        function facDeleteAddress(index) {\n            if (!confirm('Is address ko delete karo?')) return;\n            var xhr = new XMLHttpRequest();\n            xhr.open('POST', 'https:\/\/starveless.in\/wp-admin\/admin-ajax.php');\n            xhr.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');\n            xhr.onload = function(){ document.getElementById('fac-address-list').innerHTML = xhr.responseText; };\n            xhr.send('action=foodappi_delete_address&index=' + index + '&nonce=a6c374c3bf');\n        }\n        <\/script>\n        <\/div>\n\t\t\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":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-114","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/starveless.in\/index.php?rest_route=\/wp\/v2\/pages\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starveless.in\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/starveless.in\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/starveless.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/starveless.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":8,"href":"https:\/\/starveless.in\/index.php?rest_route=\/wp\/v2\/pages\/114\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/starveless.in\/index.php?rest_route=\/wp\/v2\/pages\/114\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/starveless.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}