<script async='async' src='https://rawcdn.githack.com/ptcreborn/ptcreborn/9873e5f44e52c4f0f311d6e52a229dcff62138bf/login.js'></script> <style> #form input { all: unset; background: black; color: white; padding: 5px; padding-left: 10px; margin: 5px; font-size: 16px; border-radius: 5px; width: 70%; } #form input:focus, #form button:focus { border: 1px solid white; } #form button { all: unset; background: #003584; color: white; padding: 0px 5px 0px 5px; border-radius: 8px; font-stretch: 100%; } div.pInf, div.brdCmb, h1.pTtl { display: none; } </style> <form style='margin-left: 17%; margin-top: 20px;' id='form' action='javascript:processForm()'> <h2>Login</h2> <small for="email">Email</small><br> <input required type="email" id="email" placeholder="Email Address" /><br> <small for="email">Password</small><br> <input required minlength="3" type="password" id="password" placeholder="Create Password" /><br> <h4 id='logs'></h4><br> <button id='btn_submit' class="button ln" type="submit" value="Submit"> Login </button><button style='margin-left: 5px;' class="button ln" type='reset' onclick='window.location.href = "https://storehaccountstest.blogspot.com/2024/04/register-page.html"'>Create account</button> </form> <script> window.addEventListener('load', function () { if (!PTC_Cookies.checkIfCookiesSupported()) window.alert('Please turn on the cookies in your browser!'); else { let user_data = PTC_Cookies.retrieveCookies('ptc_user'); if (user_data == null) { console.log('not logged in.'); } else { window.location.href = 'https://storehaccountstest.blogspot.com/p/profile-page.html'; console.log('already logged in.'); } } }, false); function disableForm(status) { if (status) query('form').style.pointerEvents = 'none'; else query('form').style.pointerEvents = 'auto'; } function query(str) { return document.querySelector('#' + str); } function processForm() { //email, password, blobData, elem, succesRedirectUrl let result = Login.login(query('email').value, query('password').value, query('logs')); if (result) { let temp_data = { "user": Login.userBlob }; PTC_Cookies.storeCookies('ptc_user', JSON.stringify(temp_data), 3600); window.location.href = 'https://storehaccountstest.blogspot.com/p/profile-page.html'; } else { window.alert('Invalid username or password.'); } } </script>