/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCX0KfQ==
Ly8gc2NyaXB0LmpzCmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCZxdW90O2xvZ2luRm9ybSZxdW90OykuYWRkRXZlbnRMaXN0ZW5lcigmcXVvdDtzdWJtaXQmcXVvdDssIGZ1bmN0aW9uKGV2ZW50KSB7CiAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpOwoKICAgIC8vINin2YTYrdi12YjZhCDYudmE2Ykg2KfZhNmC2YrZhSDYp9mE2YXYr9iu2YTYqQogICAgY29uc3QgdXNlcm5hbWUgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgmcXVvdDt1c2VybmFtZSZxdW90OykudmFsdWU7CiAgICBjb25zdCBwYXNzd29yZCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCZxdW90O3Bhc3N3b3JkJnF1b3Q7KS52YWx1ZTsKCiAgICAvLyDYp9mE2KrYrdmC2YIg2YXZhiDYtdit2Kkg2KfYs9mFINin2YTZhdiz2KrYrtiv2YUg2YjZg9mE2YXYqSDYp9mE2YXYsdmI2LEgKNmF2KvYp9mEINio2LPZiti3KQogICAgY29uc3QgdmFsaWRVc2VybmFtZSA9ICZxdW90O2FkbWluJnF1b3Q7OyAgLy8g2KfYs9mFINin2YTZhdiz2KrYrtiv2YUg2KfZhNi12K3ZititCiAgICBjb25zdCB2YWxpZFBhc3N3b3JkID0gJnF1b3Q7MTIzNCZxdW90OzsgIC8vINmD2YTZhdipINin2YTZhdix2YjYsSDYp9mE2LXYrdmK2K3YqQoKICAgIGlmICh1c2VybmFtZSA9PT0gdmFsaWRVc2VybmFtZSAmYW1wOyZhbXA7IHBhc3N3b3JkID09PSB2YWxpZFBhc3N3b3JkKSB7CiAgICAgICAgYWxlcnQoJnF1b3Q72KrZhSDYqtiz2KzZitmEINin2YTYr9iu2YjZhCDYqNmG2KzYp9itISZxdW90Oyk7CiAgICB9IGVsc2UgewogICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCZxdW90O2Vycm9yLW1lc3NhZ2UmcXVvdDspLnN0eWxlLmRpc3BsYXkgPSAmcXVvdDtibG9jayZxdW90OzsKICAgIH0KfSk7Cg==
// script.js
document.getElementById("loginForm").addEventListener("submit", function(event) {
event.preventDefault();
// الحصول على القيم المدخلة
const username = document.getElementById("username").value;
const password = document.getElementById("password").value;
// التحقق من صحة اسم المستخدم وكلمة المرور (مثال بسيط)
const validUsername = "admin"; // اسم المستخدم الصحيح
const validPassword = "1234"; // كلمة المرور الصحيحة
if (username === validUsername && password === validPassword) {
alert("تم تسجيل الدخول بنجاح!");
} else {
document.getElementById("error-message").style.display = "block";
}
});