Buy me a coffee

02.12 – 31.12

<script>
const protectedPages = [
  "item-692e51e76dcadc474be2162d",
];
const password = "abc";
window.addEventListener('load',function(){const currentPage=document.querySelector('body');if(!currentPage)return;const pageId=currentPage.id;if(!protectedPages.includes(pageId))return;const overlay=document.createElement('div');overlay.className='password-overlay';overlay.innerHTML=`<div class="password-form"><input type="password" class="password-input" placeholder="Enter password"><button class="submit-btn">Submit</button><div class="error-msg">Incorrect password</div></div>`;document.body.appendChild(overlay);const form=overlay.querySelector('.password-form');const input=overlay.querySelector('.password-input');const error=overlay.querySelector('.error-msg');form.onsubmit=function(e){e.preventDefault();if(input.value===password){overlay.style.display='none'}else{error.style.display='block'}};overlay.querySelector('.submit-btn').onclick=function(){form.onsubmit(new Event('submit'))}})
</script>
<style>
.password-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#342e2e;display:flex;align-items:center;justify-content:center;z-index:9999}.password-form{background:#fff;padding:30px;border-radius:8px;text-align:center}.password-input{padding:8px;margin:10px 0;width:200px}.submit-btn{padding:8px 20px;background:#000;color:#fff;border:none;border-radius:4px;cursor:pointer}.error-msg{color:red;margin-top:10px;display:none}
</style>