<script async='async' src='https://rawcdn.githack.com/ptcreborn/ptcreborn/76894df1846b4c0f04848f62450ffb6584020c87/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='display: none; 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://storehaccounts.blogspot.com/p/create-account.html"'>Create account</button> </form> <script> window.addEventListener('load', function () { if (!PTC_Cookies.checkIfCookiesSupported() || !PTC_Cookies.checkIfStorageSupported()) window.alert('Please turn on the cookies in your browser!'); else { let user_data = PTC_Cookies.getLocalStorage('ptc_user'); if (user_data == null) { console.log('not logged in.'); query('form').style.display = 'block'; } else { window.location.href = 'https://storehaccounts.blogspot.com/p/your-account-page.html?' + user_data.user; 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 blob_id = Login.login(query('email').value, query('password').value, query('logs')); if (blob_id != 'false' && PTC_Cookies.checkIfStorageSupported()) { let temp_data = { "user": Login.userBlob }; PTC_Cookies.storeLocalStorage('ptc_user', JSON.stringify(temp_data)); window.location.href = 'https://storehaccounts.blogspot.com/p/your-account-page.html?' + blob_id; } else { window.alert('Invalid username or password and or localstorage is not supported in this browser.'); } } </script>