F30POST
F30POST
2012-2015 BMW 3-Series and 4-Series Forum
BMW Garage BMW Meets Mark Forums Read
BMW 3-Series and 4-Series Forum (F30 / F32) | F30POST > Technical Forums > F30 DIYs and Coding Discussions > Looking for PSdZData 3.61.5 Lite (direct link, no Mega)
ARMA SPEED
 
 
Thread Tools

Old Bet9ja Mobile 2013 Login Register «Linux Updated»

function saveUser(user) const users = getStoredUsers(); users.push(user); localStorage.setItem('bet9ja_2013_users', JSON.stringify(users));

<!-- REGISTER FORM (hidden initially) --> <div id="register-form" style="display:none;"> <div class="form-group"> <label>Full Name:</label> <input type="text" id="reg-name" placeholder="Full name"> </div> <div class="form-group"> <label>Username:</label> <input type="text" id="reg-username" placeholder="Choose username"> </div> <div class="form-group"> <label>Phone Number:</label> <input type="tel" id="reg-phone" placeholder="080xxxxxxxx"> </div> <div class="form-group"> <label>Password:</label> <input type="password" id="reg-password" placeholder="Min 6 chars"> </div> <button class="btn" onclick="doRegister()">REGISTER</button> <div id="register-error" class="error-msg"></div> </div>

if (tab === 'login') loginDiv.style.display = 'block'; regDiv.style.display = 'none'; btns[0].classList.add('active'); btns[1].classList.remove('active'); else loginDiv.style.display = 'none'; regDiv.style.display = 'block'; btns[0].classList.remove('active'); btns[1].classList.add('active'); // Clear errors document.getElementById('login-error').innerText = ''; document.getElementById('register-error').innerText = ''; Old Bet9ja Mobile 2013 Login Register

<!-- LOGIN FORM --> <div id="login-form"> <div class="form-group"> <label>Username:</label> <input type="text" id="login-username" placeholder="Enter username"> </div> <div class="form-group"> <label>Password:</label> <input type="password" id="login-password" placeholder="Enter password"> </div> <button class="btn" onclick="doLogin()">LOGIN</button> <div id="login-error" class="error-msg"></div> </div>

<div class="footer-note"> © 2013 Bet9ja | Old Mobile Version | For 18+ only </div> </div> Please login

// Simulate stored users (localStorage) function getStoredUsers() const users = localStorage.getItem('bet9ja_2013_users'); return users ? JSON.parse(users) : [];

<script> function switchTab(tab) const loginDiv = document.getElementById('login-form'); const regDiv = document.getElementById('register-form'); const btns = document.querySelectorAll('.tab-btn'); errorDiv.innerText = ''

function doLogin() !password) errorDiv.innerText = 'Username and password required.'; return; const users = getStoredUsers(); const validUser = users.find(u => u.username === username && u.password === password); if (validUser) alert(`Welcome back, $validUser.fullname! (Demo login success)`); // In real scenario: redirect to dashboard // window.location.href = "dashboard.html"; else errorDiv.innerText = 'Invalid username or password.';

function doRegister() !password) errorDiv.innerText = 'All fields are required.'; return; if (password.length < 6) errorDiv.innerText = 'Password must be at least 6 characters.'; return; if (!/^[0-9]11$/.test(phone)) errorDiv.innerText = 'Enter valid 11-digit phone number.'; return; const users = getStoredUsers(); if (users.find(u => u.username === username)) errorDiv.innerText = 'Username already taken.'; return; saveUser( fullname, username, phone, password ); errorDiv.style.color = '#aaffaa'; errorDiv.innerText = 'Registration successful! Please login.'; setTimeout(() => switchTab('login'); errorDiv.innerText = ''; errorDiv.style.color = '#ffaa00'; , 1500);

 

Bookmarks
Thread Tools

Old Bet9ja Mobile 2013 Login Register Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 05:21 PM.




f30post
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST