Skip to content

anik00176/winpro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

<title>WINPRO</title> <style> body{margin:0;font-family:Arial;background:#0f172a;color:#fff} header{background:#020617;padding:15px;text-align:center;font-size:22px;font-weight:bold;color:#22c55e} .container{padding:15px} .card{background:#020617;border-radius:10px;padding:15px;margin-bottom:15px} input,button{width:100%;padding:10px;margin-top:10px;border:none;border-radius:5px} input{background:#1e293b;color:#fff} button{background:#22c55e;color:#000;font-weight:bold} .hide{display:none} .row{display:flex;justify-content:space-between;margin-top:10px} .box{width:48%;padding:15px;text-align:center;border-radius:8px} .green{background:#16a34a} .red{background:#dc2626} .small{font-size:13px;color:#94a3b8} </style> WINPRO

Login

Login

No account? Register

Register

Create Account

Dashboard

Balance: ৳1000

Logout

Color Result (Demo)

GREEN
RED

History

    <script> let user = localStorage.getItem("user"); let bal = localStorage.getItem("bal") || 1000; if(user){showDash()} function showRegister(){ login.classList.add("hide"); register.classList.remove("hide"); } function register(){ localStorage.setItem("user", ruser.value); localStorage.setItem("pass", rpass.value); localStorage.setItem("bal", 1000); alert("Account Created"); location.reload(); } function login(){ if(luser.value==localStorage.getItem("user") && lpass.value==localStorage.getItem("pass")){ showDash(); }else alert("Wrong login"); } function showDash(){ login.classList.add("hide"); register.classList.add("hide"); dash.classList.remove("hide"); bal=document.getElementById("bal").innerText="৳"+localStorage.getItem("bal"); } function play(c){ let res=Math.random()>0.5?"GREEN":"RED"; let b=parseInt(localStorage.getItem("bal")); if(c==res){b+=100}else{b-=50} localStorage.setItem("bal",b); document.getElementById("bal").innerText="৳"+b; result.innerText="Result: "+res; let li=document.createElement("li"); li.innerText=c+" → "+res; history.appendChild(li); } function logout(){ localStorage.removeItem("user"); location.reload(); } </script> winpro this is fully trusted

    About

    this is fully trusted

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors