Update index.html
Browse files- index.html +57 -40
index.html
CHANGED
|
@@ -4,115 +4,132 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<title>معهد مدينة العلوم العصرية</title>
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
margin: 0;
|
| 10 |
-
font-family:
|
| 11 |
-
background: linear-gradient(135deg, #
|
| 12 |
-
color: #
|
| 13 |
direction: rtl;
|
| 14 |
text-align: center;
|
|
|
|
| 15 |
}
|
| 16 |
header {
|
| 17 |
-
background:
|
| 18 |
-
padding: 20px;
|
| 19 |
-
|
| 20 |
-
|
|
|
|
| 21 |
}
|
| 22 |
header img {
|
| 23 |
-
max-width:
|
| 24 |
-
|
| 25 |
-
margin: 0 auto 10px;
|
| 26 |
}
|
| 27 |
header h1 {
|
| 28 |
margin: 0;
|
| 29 |
-
font-size:
|
| 30 |
-
|
|
|
|
| 31 |
}
|
| 32 |
.container {
|
| 33 |
max-width: 600px;
|
| 34 |
margin: auto;
|
| 35 |
-
padding:
|
|
|
|
| 36 |
}
|
| 37 |
.description {
|
| 38 |
margin-bottom: 40px;
|
| 39 |
-
font-size: 1.
|
| 40 |
-
|
| 41 |
}
|
| 42 |
.link-button {
|
| 43 |
display: block;
|
| 44 |
-
margin:
|
| 45 |
padding: 15px 25px;
|
| 46 |
width: 80%;
|
| 47 |
-
max-width:
|
| 48 |
-
font-size: 1.
|
| 49 |
-
|
| 50 |
-
|
|
|
|
| 51 |
border: none;
|
| 52 |
-
border-radius:
|
| 53 |
cursor: pointer;
|
| 54 |
-
transition:
|
| 55 |
text-decoration: none;
|
| 56 |
}
|
| 57 |
.link-button:hover {
|
| 58 |
-
background-color: #
|
|
|
|
|
|
|
| 59 |
}
|
| 60 |
footer {
|
| 61 |
-
margin-top:
|
| 62 |
padding: 20px;
|
| 63 |
-
color: #fff;
|
| 64 |
font-size: 0.9rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
}
|
| 66 |
</style>
|
| 67 |
</head>
|
| 68 |
<body>
|
| 69 |
<header>
|
| 70 |
-
<!--
|
| 71 |
<img src="logo.png" alt="شعار المعهد">
|
| 72 |
<h1>معهد مدينة العلوم العصرية</h1>
|
| 73 |
</header>
|
| 74 |
-
|
| 75 |
<div class="container">
|
| 76 |
<div class="description">
|
| 77 |
-
مرحباً بكم في بوابة أنظمة المعهد، حيث نرتقي بالتعليم
|
| 78 |
</div>
|
| 79 |
|
| 80 |
-
<!-- زر نظام الصادرات والواردات -->
|
| 81 |
<a class="link-button" href="#" onclick="validateAndRedirect('exports')">
|
| 82 |
سيستم الصادرات والواردات
|
| 83 |
</a>
|
| 84 |
|
| 85 |
-
<!-- زر نظام طلاب سنة أولى -->
|
| 86 |
<a class="link-button" href="#" onclick="validateAndRedirect('firstYear')">
|
| 87 |
سيستم طلاب سنة أولى
|
| 88 |
</a>
|
| 89 |
|
| 90 |
-
<!-- زر نظام طلاب سنة ثانية -->
|
| 91 |
<a class="link-button" href="#" onclick="validateAndRedirect('secondYear')">
|
| 92 |
سيستم طلاب سنة ثانية
|
| 93 |
</a>
|
| 94 |
</div>
|
| 95 |
-
|
| 96 |
<footer>
|
| 97 |
© 2025 معهد مدينة العلوم العصرية. جميع الحقوق محفوظة.
|
| 98 |
</footer>
|
| 99 |
-
|
| 100 |
<script>
|
| 101 |
-
//
|
| 102 |
const links = {
|
| 103 |
exports: "https://quintadb.com/apps/czxmk0CjezOddKXD1gCop/portals/bxWQJcImjdeiopW4JcRCon/widget",
|
| 104 |
firstYear: "https://quintadb.com/apps/cgvmoeW55dI43dTNDJW7WH/portals/coWOO0W7vdPykeWQboW71s/widget",
|
| 105 |
-
|
| 106 |
-
secondYear: "#"
|
| 107 |
};
|
| 108 |
|
| 109 |
-
// كلمة المرور
|
| 110 |
-
|
|
|
|
|
|
|
| 111 |
|
| 112 |
function validateAndRedirect(system) {
|
| 113 |
const userPass = prompt("أدخل كلمة المرور للدخول:");
|
| 114 |
-
if (userPass === null) return; //
|
| 115 |
-
|
|
|
|
| 116 |
const url = links[system];
|
| 117 |
if(url !== "#") {
|
| 118 |
window.location.href = url;
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<title>معهد مدينة العلوم العصرية</title>
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 7 |
+
<!-- خط عربي جذاب -->
|
| 8 |
+
<link href="https://fonts.googleapis.com/css?family=Cairo&display=swap" rel="stylesheet">
|
| 9 |
+
<!-- مكتبة التشفير SHA256 -->
|
| 10 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
|
| 11 |
<style>
|
| 12 |
body {
|
| 13 |
margin: 0;
|
| 14 |
+
font-family: 'Cairo', sans-serif;
|
| 15 |
+
background: linear-gradient(135deg, #1d2671, #c33764);
|
| 16 |
+
color: #fff;
|
| 17 |
direction: rtl;
|
| 18 |
text-align: center;
|
| 19 |
+
overflow-x: hidden;
|
| 20 |
}
|
| 21 |
header {
|
| 22 |
+
background: rgba(255,255,255,0.2);
|
| 23 |
+
padding: 30px 20px;
|
| 24 |
+
margin-bottom: 50px;
|
| 25 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
|
| 26 |
+
animation: fadeInDown 1s ease-in-out;
|
| 27 |
}
|
| 28 |
header img {
|
| 29 |
+
max-width: 120px;
|
| 30 |
+
margin-bottom: 10px;
|
|
|
|
| 31 |
}
|
| 32 |
header h1 {
|
| 33 |
margin: 0;
|
| 34 |
+
font-size: 2.5rem;
|
| 35 |
+
font-weight: bold;
|
| 36 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
| 37 |
}
|
| 38 |
.container {
|
| 39 |
max-width: 600px;
|
| 40 |
margin: auto;
|
| 41 |
+
padding: 20px;
|
| 42 |
+
animation: fadeIn 1.5s ease-in-out;
|
| 43 |
}
|
| 44 |
.description {
|
| 45 |
margin-bottom: 40px;
|
| 46 |
+
font-size: 1.3rem;
|
| 47 |
+
font-weight: 500;
|
| 48 |
}
|
| 49 |
.link-button {
|
| 50 |
display: block;
|
| 51 |
+
margin: 20px auto;
|
| 52 |
padding: 15px 25px;
|
| 53 |
width: 80%;
|
| 54 |
+
max-width: 350px;
|
| 55 |
+
font-size: 1.2rem;
|
| 56 |
+
font-weight: bold;
|
| 57 |
+
color: #1d2671;
|
| 58 |
+
background-color: #fff;
|
| 59 |
border: none;
|
| 60 |
+
border-radius: 50px;
|
| 61 |
cursor: pointer;
|
| 62 |
+
transition: all 0.3s ease;
|
| 63 |
text-decoration: none;
|
| 64 |
}
|
| 65 |
.link-button:hover {
|
| 66 |
+
background-color: #f1f1f1;
|
| 67 |
+
transform: translateY(-3px);
|
| 68 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
| 69 |
}
|
| 70 |
footer {
|
| 71 |
+
margin-top: 50px;
|
| 72 |
padding: 20px;
|
|
|
|
| 73 |
font-size: 0.9rem;
|
| 74 |
+
background: rgba(0,0,0,0.1);
|
| 75 |
+
}
|
| 76 |
+
@keyframes fadeInDown {
|
| 77 |
+
from { opacity: 0; transform: translateY(-20px); }
|
| 78 |
+
to { opacity: 1; transform: translateY(0); }
|
| 79 |
+
}
|
| 80 |
+
@keyframes fadeIn {
|
| 81 |
+
from { opacity: 0; }
|
| 82 |
+
to { opacity: 1; }
|
| 83 |
}
|
| 84 |
</style>
|
| 85 |
</head>
|
| 86 |
<body>
|
| 87 |
<header>
|
| 88 |
+
<!-- استبدل "logo.png" برابط الشعار الخاص بالمعهد -->
|
| 89 |
<img src="logo.png" alt="شعار المعهد">
|
| 90 |
<h1>معهد مدينة العلوم العصرية</h1>
|
| 91 |
</header>
|
| 92 |
+
|
| 93 |
<div class="container">
|
| 94 |
<div class="description">
|
| 95 |
+
مرحباً بكم في بوابة أنظمة المعهد، حيث نرتقي بالتعليم عبر تقنيات وأنظمة متطورة.
|
| 96 |
</div>
|
| 97 |
|
|
|
|
| 98 |
<a class="link-button" href="#" onclick="validateAndRedirect('exports')">
|
| 99 |
سيستم الصادرات والواردات
|
| 100 |
</a>
|
| 101 |
|
|
|
|
| 102 |
<a class="link-button" href="#" onclick="validateAndRedirect('firstYear')">
|
| 103 |
سيستم طلاب سنة أولى
|
| 104 |
</a>
|
| 105 |
|
|
|
|
| 106 |
<a class="link-button" href="#" onclick="validateAndRedirect('secondYear')">
|
| 107 |
سيستم طلاب سنة ثانية
|
| 108 |
</a>
|
| 109 |
</div>
|
| 110 |
+
|
| 111 |
<footer>
|
| 112 |
© 2025 معهد مدينة العلوم العصرية. جميع الحقوق محفوظة.
|
| 113 |
</footer>
|
| 114 |
+
|
| 115 |
<script>
|
| 116 |
+
// روابط الأنظمة
|
| 117 |
const links = {
|
| 118 |
exports: "https://quintadb.com/apps/czxmk0CjezOddKXD1gCop/portals/bxWQJcImjdeiopW4JcRCon/widget",
|
| 119 |
firstYear: "https://quintadb.com/apps/cgvmoeW55dI43dTNDJW7WH/portals/coWOO0W7vdPykeWQboW71s/widget",
|
| 120 |
+
secondYear: "#" // الرابط غير متوفر حالياً
|
|
|
|
| 121 |
};
|
| 122 |
|
| 123 |
+
// تشفير كلمة المرور باستخدام SHA256
|
| 124 |
+
// كلمة المرور الأصلية: "112233445566"
|
| 125 |
+
// تم تشفيرها باستخدام CryptoJS.SHA256("112233445566").toString();
|
| 126 |
+
const hashedPassword = "ab9e7e43b882fa3d5b9b1e8d652fca38d1b90a3dc90a28bbdcf742728a5a1a7f";
|
| 127 |
|
| 128 |
function validateAndRedirect(system) {
|
| 129 |
const userPass = prompt("أدخل كلمة المرور للدخول:");
|
| 130 |
+
if (userPass === null) return; // في حال إلغاء الإدخال
|
| 131 |
+
const userHash = CryptoJS.SHA256(userPass).toString();
|
| 132 |
+
if (userHash === hashedPassword) {
|
| 133 |
const url = links[system];
|
| 134 |
if(url !== "#") {
|
| 135 |
window.location.href = url;
|