{"StatusCode":9,"Message":"<script src=\"https://accounts.google.com/gsi/client\" async></script>\n<!-- <script async defer crossorigin=\"anonymous\" src=\"https://connect.facebook.net/en_US/sdk.js\"></script> -->\n<script async defer crossorigin=\"anonymous\" src=\"https://connect.facebook.net/en_US/sdk.js\"></script>\n<style>\n   .data {\n      display: none;\n   }\n\n   .login-buttons {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      gap: 20px;\n   }\n\n\n   /* .login-social-login {\n    text-align: center;\n}\n\n.login-buttons {\n    display: flex; \n    justify-content: center;\n    gap: 20px; \n    flex-direction: column;\n}\n.g_id_signin {\n   display: flex;\n    justify-content: center;\n    align-items: center;\n}\n.login-button {\n    flex: 1; \n    padding: 14px;\n    justify-content: center;\n    align-items: center;\n    display: flex;\n    border: 1px solid black;\n}\n.button#facebook-login-button {\n   padding: 5px 53px;\n} */\n</style>\n<div class=\"modal-body login-popup p-0\">\n   <div class=\"row gx-lg-0\">\n      <div class=\"col-md-5\">\n         <div class=\"modal-offer-banner d-md-flex d-none flex-column align-items-center justify-content-center\">\n            <div class=\"info-item\">\n               <i class=\"fa-solid fa-envelope\"></i>\n               <div class=\"info-item-content\">\n                  <h4>Email:</h4>\n                  <p>info@easytripz.com</p>\n               </div>\n            </div>\n            <div class=\"info-item\">\n               <i class=\"fa-solid fa-phone\"></i>\n               <div class=\"info-item-content\">\n                  <h4>Call:</h4>\n                  <p>918498827777</p>\n               </div>\n            </div>\n         </div>\n      </div>\n      <div class=\"col-md-7\">\n         <div class=\"formmodalbox\">\n            <div class=\"login-header\">\n               <h5 class=\"modal-title mt-0\" id=\"login-modal-b5Label\" praveen-login-header=\"true\">\n                  Login/Signup               </h5>\n                                 <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\" praveen-login-header-close=\"true\"></button>\n                           </div>\n            <form action=\"https://www.easytripz.com/login/check-user\" method=\"post\" praveen-login-form=\"true\" autocomplete=\"off\">\n               <div class=\"mb-3\">\n                  <label for=\"login-email\" class=\"form-label\">Email address</label>\n                  <input type=\"email\" name=\"email_id\" value=\"\" class=\"form-control\" id=\"login-email\" aria-describedby=\"emailHelp\" autocomplete=\"off\">\n                  <input type=\"hidden\" name=\"param\" pass-param=\"true\">\n                  <div id=\"emailHelp\"><a href=\"javascript:void(0)\" forgot-password=\"true\">Reset\n                        Password</a>\n                  </div>\n               </div>\n               <div class=\"mb-3 \">\n                  <div class=\"form-bottom\"> By proceeding you agree to EASYTRIPZ TOUR AND TRAVEL SERVICES                      <a target=\"_blank\" href=\"https://www.easytripz.com/privacy-policy\">Privacy\n                        Policy </a> and <a target=\"_blank\" href=\"https://www.easytripz.com/terms\">T&amp;Cs.</a>\n                  </div>\n               </div>\n               <button type=\"submit\" class=\"btn btn-primary\" continue=\"true\">Continue</button>\n               <!-- <div class=\"googleLoginBar\">\n                                    <a href=\"https://www.easytripz.com/agent\" class=\"btn-agent\">\n                  <span> Agent Login</span>\n                                    </a>\n               </div> -->\n               <!-- <div class=\"social-login\">\n                  <span>--- Login With ---</span>\n                  <div class=\"d-flex align-items-center justify-content-center\">\n                     <a href=\"#\" class=\"login-social-item bg1\" title=\"Facebook\">\n                     <i class=\"fa-brands fa-facebook-f\"></i>\n                     </a>\n                    \n                     <a href=\"#\" class=\"login-social-item bg3\" title=\"Google\" >\n                        <i class=\"fa-brands fa-google\"></i>\n                     </a>\n                  </div>\n               </div> -->\n            </form>\n                        \n            <div class=\"googleLoginBar\">\n                  \n                  <a href=\"https://www.easytripz.com/agent\" class=\"btn-agent\">\n                  <span> Agent Login</span>\n                \n                  </a>\n               </div>\n                                    \n                     \n            \n            <div class=\"login-top mt-4\">\n               <div class=\"social-login\">\n                  <span>--- Login With ---</span>\n                  <div class=\"d-flex align-items-center justify-content-center\">\n                    \n\n\n                     <a href=\"https://www.easytripz.com/login/facebook-oauth\" class=\"login-social-item bg1\" title=\"Facebook\">\n                        <i class=\"fa-brands fa-facebook-f\"></i>\n                     </a>\n\n                     <a href=\"https://www.easytripz.com/login/google-oauth\"  class=\"login-social-item bg3\" title=\"Google\">\n                        <i class=\"fa-brands fa-google\"></i>\n                     </a>\n                  </div>\n               </div>\n\n               \n\n                              \n            </div>\n            \n\n\n\n\n\n\n\n                        \n            \n            \n            \n            \n         </div>\n      </div>\n   </div>\n</div>\n\n\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>\n\n<!-- new code  -->\n<script>\n   function handleCredentialResponse(response) {\n      fetch(\"/authinit\", {\n            method: \"POST\",\n            headers: {\n               \"Content-Type\": \"application/json\"\n            },\n            body: JSON.stringify({\n               request_type: 'user_auth',\n               credential: response.credential\n            }),\n         })\n         .then(response => response.json())\n         .then(data => {\n            if (data.StatusCode == 0) {\n               location.reload();\n            }\n         })\n         .catch(console.error);\n   }\n</script>\n\n<!-- new code ends here  -->\n\n<!-- facebook starts here  -->\n\n\n\n\n<script>\n   function statusChangeCallback(response) {\n      console.log('statusChangeCallback');\n      console.log(response);\n      if (response.status === 'connected') {\n         testAPI();\n      } else {\n         document.getElementById('status').innerHTML = 'Please log ' +\n            'into this webpage.';\n      }\n   }\n\n\n   function checkLoginState() {\n      FB.getLoginStatus(function(response) {\n         statusChangeCallback(response);\n      });\n   }\n\n\n   window.fbAsyncInit = function() {\n      FB.init({\n         appId: '',\n         cookie: true,\n         xfbml: true,\n         version: 'v20.0'\n      });\n\n\n      FB.getLoginStatus(function(response) {\n         statusChangeCallback(response);\n      });\n   };\n\n   function testAPI() {\n      console.log('Welcome!  Fetching your information.... ');\n      FB.api('/me', function(response) {\n         console.log('Successful login for: ' + response.name);\n         document.getElementById('status').innerHTML =\n            'Thanks for logging in, ' + response.name + '!';\n      });\n   }\n</script>\n\n<!-- facerbook ends here  -->","class":"success_popup","Reload":"false"}