Update Saqel Platform: 2026-08-29 21:51:24
This commit is contained in:
@@ -506,6 +506,7 @@ class LandingPage
|
||||
<a href="/military-culture" class="apple-pill-btn btn-nav-military">
|
||||
<span>🇯🇴 خطة الثقافة العسكرية</span>
|
||||
</a>
|
||||
<a href="/guardian" class="apple-pill-btn btn-nav-ghost">بوابة أولياء الأمور</a>
|
||||
<a href="/teacher" class="apple-pill-btn btn-nav-ghost">استوديو المعلمين</a>
|
||||
<a href="/student" class="apple-pill-btn btn-nav-primary">دخول الطلاب 🚀</a>
|
||||
</div>
|
||||
@@ -692,6 +693,7 @@ class LandingPage
|
||||
<h4 class="footer-title">البوابات والخدمات</h4>
|
||||
<ul class="footer-list">
|
||||
<li><a href="/student">بوابة الطالب الذكية</a></li>
|
||||
<li><a href="/guardian">بوابة أولياء الأمور لمتابعة الجاهزية</a></li>
|
||||
<li><a href="/teacher">استوديو المعلمين ونظام الشراكة</a></li>
|
||||
<li><a href="/military-culture">ملف مديرية الثقافة العسكرية</a></li>
|
||||
</ul>
|
||||
|
||||
@@ -550,7 +550,7 @@ class StudentPortal
|
||||
<main class="container" style="flex: 1; display: flex; flex-direction: column;">
|
||||
|
||||
<!-- 1. AUTHENTICATION VIEW (Phone + OTP) -->
|
||||
<div id="auth_box_view" class="auth-card-wrapper">
|
||||
<div id="auth_box_view" class="auth-card-wrapper" style="display: none;">
|
||||
<div class="auth-header">
|
||||
<h1 class="auth-title">تسجيل دخول الطالب 🎓</h1>
|
||||
<p class="auth-subtitle">أدخل رقم هاتفك لاستلام رمز التحقق الفوري (OTP) عبر واتساب.</p>
|
||||
@@ -1155,6 +1155,8 @@ class StudentPortal
|
||||
// Always verify session with server — don't render from cache directly
|
||||
initWebSocket(token);
|
||||
await checkStudentSession(token);
|
||||
} else {
|
||||
document.getElementById('auth_box_view').style.display = 'block';
|
||||
}
|
||||
|
||||
// Initialize Player with Active Real Lesson
|
||||
@@ -2199,6 +2201,7 @@ class StudentPortal
|
||||
});
|
||||
if (res.status === 401) {
|
||||
handleLogout();
|
||||
document.getElementById('auth_box_view').style.display = 'block';
|
||||
return;
|
||||
}
|
||||
const data = await res.json();
|
||||
@@ -2213,6 +2216,7 @@ class StudentPortal
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Student session check error:', e);
|
||||
document.getElementById('auth_box_view').style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user