1<!DOCTYPE html> 2<html lang="en" class="no-js"> 3<head> 4 5<meta charset="utf-8"> 6<meta http-equiv="X-UA-Compatible" content="IE=edge"> 7<meta name="viewport" content="width=device-width, initial-scale=1"> 8<base href="/" /> 9 10 <link rel="shortcut icon" title="Homeo PG Tutor" href="./public/images/favicon.ico" type="image/x-icon" sizes="32x32" /> 11 12 <meta name="robots" content="INDEX,FOLLOW" /> 13 <meta property="og:type" content="website" /> 14 <meta property="og:site_name" content="Homeo PG Tutor" /> 15 <meta property="og:title" content="Student corner" /> 16 <meta itemprop="name" content="Student corner" /> 17 <meta name="twitter:title" content="Student corner" /> 18 <meta property="og:url" content="https://homeopgtutor.com/student-corner" /> 19 <link rel="canonical" href="https://homeopgtutor.com/student-corner" /> 20 <meta name="twitter:url" content="https://homeopgtutor.com/student-corner" /> 21 22 23 <meta name="theme-color" content="#0b8a76"> 24 <link rel="manifest" href="manifest.json"> 25 26 27<title>Student corner | Homeo PG Tutor</title> 28 <link rel="stylesheet" href="public/css/font-awesome/all.min.css" /> 29 <link rel="stylesheet" href="public/css/flaticon/flaticon.css" /> 30 <link rel="stylesheet" href="public/css/bootstrap/bootstrap.min.css" /> 31 <link rel="stylesheet" href="public/css/select2/select2.css" /> 32 <link rel="stylesheet" href="public/css/owl-carousel/owl.carousel.min.css" /> 33 <link rel="stylesheet" href="public/css/swiper/swiper.min.css" /> 34 <link rel="stylesheet" href="public/css/magnific-popup/magnific-popup.css" /> 35 <link rel="stylesheet" href="public/css/filepond.min.css"> 36 <link rel="stylesheet" href="public/css/filepond-plugin-image-preview.min.css"> 37 <link rel="stylesheet" href="public/css/style.css" /> 38 39 40<link rel="dns-prefetch" href="https://fonts.gstatic.com"> 41<link rel="preconnect" href="https://fonts.gstatic.com"> 42<link rel="dns-prefetch" href="https://fonts.googleapis.com"> 43<link rel="preconnect" href="https://fonts.googleapis.com"> 44<link rel="preload" href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap" as="style"> 45<!-- Fonts --> 46<link href='https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap' rel='stylesheet'> 47 48<!--[if lt IE 9]> 49
49<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
49 50
50<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
50 51<![endif]--> <!-- Tailwind CSS CDN --> 52
52<script src="https://cdn.tailwindcss.com"></script>
52 53
53<script src="https://kit.fontawesome.com/4d64df9a12.js" crossorigin="anonymous"></script>
53 54 55
55<script type="text/javascript"> 56 var App = { 57 path: 'https://homeopgtutor.com/', 58 env: 'dev', 59 version: 'e2a02d1a2891c9d664dc63af02f69c8cbfed92f9', 60 analytics: '' 61 } 62 </script>
62 63</head> 64<body class="template-color-3 template-font-1"> 65 66<header class="header header-style-02 header-sticky shadow-sm z-10 "> 67 <nav class=" flex items-center justify-between px-6 md:px-2 py-3 bg-white mx-auto max-w-7xl"> 68 <!-- Logo --> 69 <a href="./" class="flex items-center space-x-2"> 70 <img src="https://homeopgtutor.com/public/images/logo-dark-mobile.svg" alt="logo" class="h-10 md:h-14 w-auto" /> 71 </a> 72 73 <!-- Desktop Menu --> 74 <ul class="hidden lg:flex lg:space-x-8 text-gray-700 text-md xl:text-lg font-bold"> 75 <li><a href="./" class="hover:text-teal-700">Home</a></li> 76 <li><a href="./about-us" class="hover:text-teal-700">About Us</a></li> 77 <li><a href="./student-corner" class="hover:text-teal-700">Student Corner</a></li> 78 <li><a href="./packages" class="hover:text-teal-700">Packages</a></li> 79 <li><a href="./contact-us" class="hover:text-teal-700">Contact Us</a></li> 80 </ul> 81 82 <!-- Right Section --> 83 <div class="flex items-center space-x-4"> 84 <!-- Mobile Menu Button --> 85 86 87 <!-- Student Login (Desktop only) --> 88 89<!-- Tailwind CDN -->
90<script src="https://cdn.tailwindcss.com"></script>
90 91 92<div class="relative inline-block"> 93 94 <!-- Notification Button --> 95 <button id="notifyBtn" 96 class="relative flex items-center justify-center 97 h-10 w-10 sm:h-12 sm:w-12 98 rounded-full bg-gray-100 hover:bg-gray-200 transition"> 99 100 <i class="fa fa-bell text-base sm:text-lg"></i> 101 102 <span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span> 103 </button> 104 105 <!-- Dropdown --> 106 <div id="notifyDropdown" 107 class="fixed sm:absolute 108 left-0 sm:left-auto 109 right-0 sm:right-0 110 top-16 sm:top-auto 111 sm:mt-3 112 w-full sm:w-80 113 max-w-full 114 sm:max-w-80 115 bg-white border sm:rounded-xl shadow-xl 116 opacity-0 invisible scale-95 117 transition-all duration-300 118 origin-top z-50"> 119 120 <div class="p-4 border-b font-semibold text-gray-700"> 121 Notifications 122 </div> 123<div id="announcements" class="space-y-4"> 124 <p class="text-center text-gray-500">Loading announcements...</p> 125</div> 126
126<script> 127 const apiUrl = "https://homeopgtutor.com//wapi/read.php"; 128 const container = document.getElementById("announcements"); 129 130 fetch(apiUrl,{ 131 method: "GET", 132 headers: { 133 "Content-Type": "application/json", 134 "vkey":"3b6ab47a75dd" 135 } 136 }) 137 .then(response => response.json()) 138 .then(data => { 139 // console.log(data.data,'dt') 140 if (data.success && data.data.length>0) { 141 container.innerHTML = ""; // clear loading text 142 143if (data.data.length > 5) { 144 container.classList.add( 145 "max-h-[320px]", // approx height for 5 items 146 "overflow-y-auto", 147 "pr-2" // scrollbar se text chipkega nahi 148 ); 149} 150 151 data.data.forEach(item => { 152 const date = new Date(item.date).toLocaleDateString("en-US", { 153 year: "numeric", 154 month: "long", 155 day: "numeric", 156 }); 157 158 container.innerHTML += ` 159 <div class="flex flex-col sm:flex-row sm:items-center sm:justify-between py-2 px-4 rounded-lg transition-all duration-300 hover:bg-gray-50"> 160 161 <div class="flex items-start"> 162 <div> 163 <div class="flex items-center gap-2"> 164 <h3 class="text-sm font-bold text-teal-700 line-clamp-1"> 165 ${item.title} 166 </h3> 167 168 <span class="bg-red-100 text-red-800 text-[12px] font-medium px-2 py-1 rounded-full"> 169 ${item.status} 170 </span> 171 </div> 172 173 <p class="text-gray-600 text-xs mt-1 line-clamp-2"> 174 ${item.description} 175 </p> 176 <a class="bg-white text-[#0d6b63] px-4 py-3 rounded-md font-bold shadow flex justify-center items-center gap-2 mt-3" href="/student-corner#announcementupdate">View All</a> 177 </div> 178 </div> 179 180 </div> 181 `; 182}); 183 184 } else { 185 container.innerHTML = 186 "<p class='text-center text-gray-500'>No announcements found.</p>"; 187 } 188 }) 189 .catch(error => { 190 console.error("API Error:", error); 191 container.innerHTML = 192 "<p class='text-center text-red-500'>Failed to load announcements.</p>"; 193 }); 194</script>
194 195 </div> 196 197</div> 198 199 200 201 <div class="woo-action" style="margin: 0px !important;"> 202 <ul class="list-unstyled"> 203 <li class="user dropdown"> 204 <a href="./login" class="md:hidden"> 205 <i class="fa fa-user rounded text-primary "></i> 206 </a> 207 <a href="./login" class=" hidden md:block flex bg-teal-700 text-lg text-white justify-center gap-2 px-4 py-3 rounded-lg shadow hover:bg-teal-800 items-center" style="margin-left: 15px;"> 208 Student Login <span class="ml-2 fa fa-angle-right"></span> 209 </a> 210 </li> 211 </ul> 212 </div> 213 214 <button id="openSidebar" class="lg:hidden text-xl text-teal-800 focus:outline-none"> 215 <i class="fas fa-bars"></i> 216 </button> 217 </div> 218 219 </nav> 220</header> 221 222<!-- Sidebar (Mobile Only) --> 223<div id="sidebar" class="fixed top-0 right-0 h-full w-72 bg-white shadow-lg transform translate-x-full transition-transform duration-300 ease-in-out z-50"> 224 <div class="flex justify-between items-center px-4 py-4 border-b"> 225 <!-- <h2 class="text-lg font-bold text-gray-800">Menu</h2> --> 226 <a href="./" class="flex items-center space-x-2"> 227 <img src="https://homeopgtutor.com/public/images/logo-dark-mobile.svg" alt="logo" class="h-10 w-auto" /> 228 </a> 229 <button id="closeSidebar" class="text-2xl text-gray-800 focus:outline-none"> 230 <i class="fas fa-times"></i> 231 </button> 232 </div> 233 <ul class="flex flex-col space-y-6 px-6 py-6 text-gray-700 text-lg font-medium"> 234 <li><a href="./" class="hover:text-teal-700">Home</a></li> 235 <li><a href="./about-us" class="hover:text-teal-700">About Us</a></li> 236 <li><a href="./student-corner" class="hover:text-teal-700">Student Corner</a></li> 237 <li><a href="./packages" class="hover:text-teal-700">Packages</a></li> 238 <li><a href="./contact-us" class="hover:text-teal-700">Contact Us</a></li> 239 240 <!-- Student Login (Mobile Only) --> 241 <li> 242 <a href="./login" class=" flex bg-teal-700 text-lg text-white justify-center gap-2 px-4 py-3 rounded-lg shadow hover:bg-teal-800 items-center"> 243 Student Login <span class="ml-2">â</span> 244 </a></li> </ul> 245</div> 246 247<!-- Overlay --> 248<div id="overlay" class="fixed inset-0 bg-black bg-opacity-50 hidden z-40"></div> 249
250<script> 251 const sidebar = document.getElementById('sidebar'); 252 const overlay = document.getElementById('overlay'); 253 const openSidebar = document.getElementById('openSidebar'); 254 const closeSidebar = document.getElementById('closeSidebar'); 255 256 openSidebar.addEventListener('click', () => { 257 sidebar.classList.remove('translate-x-full'); 258 sidebar.classList.add('translate-x-0'); 259 overlay.classList.remove('hidden'); 260 }); 261 262 closeSidebar.addEventListener('click', () => { 263 sidebar.classList.add('translate-x-full'); 264 sidebar.classList.remove('translate-x-0'); 265 overlay.classList.add('hidden'); 266 }); 267 268 overlay.addEventListener('click', () => { 269 sidebar.classList.add('translate-x-full'); 270 sidebar.classList.remove('translate-x-0'); 271 overlay.classList.add('hidden'); 272 }); 273</script>
vendor: 1 bytes, line 273
273
274<script> 275 const btn = document.getElementById("notifyBtn"); 276 const dropdown = document.getElementById("notifyDropdown"); 277 278 btn.addEventListener("click", (e) => { 279 e.stopPropagation(); 280 dropdown.classList.toggle("opacity-0"); 281 dropdown.classList.toggle("invisible"); 282 dropdown.classList.toggle("scale-95"); 283 }); 284 285 document.addEventListener("click", () => { 286 dropdown.classList.add("opacity-0", "invisible", "scale-95"); 287 }); 288</script>
288 289 290 291</body> 292</html><section class="relative bg-cover bg-center py-16" style="background-image: url('public/images/bg/03.jpg');"> 293 294 <!-- Overlay --> 295 <div class="absolute inset-0 bg-[#215c5c] bg-opacity-90"></div> 296 297 <div class="relative container mx-auto px-4"> 298 <div class="flex flex-col items-center justify-center text-center space-y-4"> 299 300 <!-- Title --> 301 <h1 class="text-3xl md:text-4xl font-bold text-white uppercase"> 302 Student corner </h1> 303 304 <!-- Breadcrumb --> 305 <ol class="flex items-center space-x-2 text-white text-sm md:text-base"> 306 <li> 307 <a href="./" class="hover:text-gray-300 flex items-center gap-1"> 308 Home 309 </a> 310 </li> 311 <li> 312 <span class="text-[#24caca]">//</span> 313 314 </li> 315 <li> 316 Student corner </li> 317 </ol> 318 </div> 319 </div> 320</section> 321<section class="py-20 bg-[#F2F2F2]"> 322 <div class="max-w-7xl mx-auto"> 323 <div class="container mx-auto grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-6 gap-6 text-center"> 324 325 <!-- MCQ Section --> 326 <a href="./practice-mcq" class="cursor-pointer"> 327 <div class="bg-white rounded-lg p-6 flex flex-col justify-center items-center h-[200px]"> 328 <img src="https://cdn-icons-png.flaticon.com/512/6854/6854590.png" alt="MCQ Icon" class="w-24 h-24"> 329 </div> 330 <div class="text-center mt-4"> 331 <h3 class="text-2xl font-bold uppercase">MCQ Section</h3> 332 <p class="text-lg text-teal-700 mt-1"> MCQs</p> 333 </div> 334 </a> 335 336 <!-- Test Series --> 337 <a href="./exams" class="cursor-pointer"> 338 <div class="bg-white rounded-lg p-6 flex flex-col justify-center items-center h-[200px]"> 339 <img src="https://cdn-icons-png.flaticon.com/512/11725/11725885.png" alt="Test Icon" class="w-24 h-24"> 340 </div> 341 <div class="text-center mt-4"> 342 <h3 class="text-2xl font-bold uppercase">Test Series</h3> 343 <p class="text-lg text-teal-700 mt-1"> Tests</p> 344 </div> 345 </a> 346 347 <!-- Video Classes --> 348 <a href="./video-classes" class="cursor-pointer"> 349 <div class="bg-white rounded-lg p-6 flex flex-col justify-center items-center h-[200px]"> 350 <img src="https://cdn-icons-png.flaticon.com/512/15748/15748432.png" alt="Video Icon" class="w-24 h-24"> 351 </div> 352 <div class="text-center mt-4"> 353 <h3 class="text-2xl font-bold uppercase">Video Classes</h3> 354 <p class="text-lg text-teal-700 mt-1"> Videos</p> 355 </div> 356 </a> 357 358 <!-- Study Materials --> 359 <a href="./study-materials" class="cursor-pointer"> 360 <div class="bg-white rounded-lg p-6 flex flex-col justify-center items-center h-[200px]"> 361 <img src="https://cdn-icons-png.flaticon.com/256/9198/9198090.png" alt="Study Icon" class="w-24 h-24"> 362 </div> 363 <div class="text-center mt-4"> 364 <h3 class="text-2xl font-bold uppercase">Study Materials</h3> 365 <p class="text-lg text-teal-700 mt-1"> Study</p> 366 </div> 367 </a> 368 369 <!-- My Progress --> 370 <a href="./progress" class="cursor-pointer"> 371 <div class="bg-white rounded-lg p-6 flex flex-col justify-center items-center h-[200px]"> 372 <img src="https://cdn-icons-png.flaticon.com/512/1141/1141779.png" alt="Progress Icon" class="w-24 h-24"> 373 374 </div> 375 <div class="text-center mt-4"> 376 <h3 class="text-2xl font-bold uppercase">My Progress</h3> 377 <p class="text-lg text-teal-700 mt-1">Progress Report</p> 378 </div> 379 </a> 380 381 <!-- live updates --> 382 <a href="./student-corner" class="cursor-pointer"> 383 <div class="bg-white rounded-lg p-6 flex flex-col justify-center items-center h-[200px]"> 384 <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSSlMARhkNMGfP-2wQnBvLMoIXONhDp2UkayA&s" alt="live Icon" class="w-24 h-24"> 385 386 </div> 387 <div class="text-center mt-4"> 388 <h3 class="text-2xl font-bold uppercase">Live Updates</h3> 389 <p class="text-lg text-teal-700 mt-1">Announcements</p> 390 </div> 391 </a> 392 393 </div> 394 395 <div class=" mt-8 p-8"> 396 <div class="flex flex-col sm:flex-row sm:items-center sm:justify-between mb-8"> 397 <div class="flex items-center mb-4 sm:mb-0" id="announcementupdate"> 398 <div class="bg-teal-100 p-3 rounded-lg mr-4"> 399 <i class="fas fa-bullhorn text-teal-600"></i> 400 </div> 401 <div> 402 <h2 class="text-3xl font-bold text-teal-800">Latest Updates & Announcements</h2> 403 <p class="text-gray-600 mt-1">Stay updated with our latest news and resources</p> 404 </div> 405 </div> 406
407 </div> 408 <div id="page-announcements" class="space-y-6"> 409 <p class="text-center text-gray-500">Loading announcements...</p> 410</div>
411<script> 412(function () { 413 414 const apiUrl = "https://homeopgtutor.com/wapi/read.php"; 415 const container = document.getElementById("page-announcements"); 416 417 if (!container) return; 418 419 fetch(apiUrl, { 420 headers: { vkey: "3b6ab47a75dd" } 421 }) 422 .then(res => res.json()) 423 .then(data => { 424 425 if (data.success && data.data.length > 0) { 426 container.innerHTML = ""; 427 428 data.data.forEach(item => { 429 const date = new Date(item.date).toLocaleDateString(); 430 431 container.innerHTML += ` 432 <div class="p-4 border rounded mb-3"> 433 <h3 class="font-bold text-teal-700">${item.title}</h3> 434 <p>${item.description}</p> 435 <small>${date}</small> 436 </div> 437 `; 438 }); 439 440 } else { 441 container.innerHTML = "No announcements"; 442 } 443 444 }); 445 446})(); 447</script>
447 448</div> 449 </div> 450</section> 451<footer class="footer bg-[#00332b] text-white text-lg"> 452 <div class="max-w-7xl mx-auto px-6 py-12 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8"> 453 454 <!-- Logo + About --> 455 <div> 456 <a href="./" class="flex items-center mb-4"> 457 <img src="https://homeopgtutor.com/public/images/logo-dark-mobile.svg" alt="HomeoPGTutor" class="h-12 mr-2" /> 458 459 </a> 460 <p class="text-gray-300 text-lg leading-relaxed"> 461 HomeoPGTutor is launched on the premise that everyone out there deserves to access information to ensure success. 462 </p> 463 <div class="flex space-x-4 mt-5"> 464 <a target="_blank" href="https://www.facebook.com/share/17MCmykjr2/?mibextid=wwXIfr" class="bg-teal-700 hover:bg-teal-600 w-10 h-10 flex items-center justify-center rounded-full"><i class="fab fa-facebook-f"></i></a> 465 <a target="_blank" href="https://www.instagram.com/mediexpresspro?igsh=a2pxYzlzNWx0djI0&utm_source=qr" class="bg-teal-700 hover:bg-teal-600 w-10 h-10 flex items-center justify-center rounded-full"><i class="fab fa-instagram"></i></a> 466 <a target="_blank" href="https://youtube.com/@homeopgtutor?si=NRIPePFojIhr9TL3" class="bg-teal-700 hover:bg-teal-600 w-10 h-10 flex items-center justify-center rounded-full"><i class="fab fa-youtube"></i></a> 467 <!-- <a href="#" class="bg-teal-700 hover:bg-teal-600 w-10 h-10 flex items-center justify-center rounded-full"><i class="fab fa-twitter"></i></a> --> 468 </div> 469 </div> 470 471 <!-- Site Links --> 472 <div> 473 <h5 class="text-xl text-white font-bold mb-4">Site Links</h5> 474 <ul class="space-y-3 text-gray-200"> 475 <li><a href="./" class="hover:text-teal-400 flex items-center"><span class="mr-2">âº</span> Home</a></li> 476 <li><a href="./about-us" class="hover:text-teal-400 flex items-center"><span class="mr-2">âº</span> About Us</a></li> 477 <li><a href="./student-corner" class="hover:text-teal-400 flex items-center"><span class="mr-2">âº</span> Student Corner</a></li> 478 <li><a href="./packages" class="hover:text-teal-400 flex items-center"><span class="mr-2">âº</span> Packages</a></li> 479 <li><a href="./contact-us" class="hover:text-teal-400 flex items-center"><span class="mr-2">âº</span> Contact Us</a></li> 480 </ul> 481 </div> 482 483 <!-- Support --> 484 <div> 485 <h5 class="text-xl text-white font-bold mb-4">Support</h5> 486 <ul class="space-y-3 text-gray-200"> 487 <li><a href="./terms-and-conditions" class="hover:text-teal-400 flex items-center"><span class="mr-2">âº</span> Terms & Conditions</a></li> 488 <li><a href="./privacy-policy" class="hover:text-teal-400 flex items-center"><span class="mr-2">âº</span> Privacy Policy</a></li> 489 </ul> 490 </div> 491 492 <!-- Newsletter --> 493 <div> 494 <h5 class="text-xl text-white font-bold mb-4">Join Our Newsletter</h5> 495 <p class="text-gray-300 text-lg mb-4">Subscribe our newsletter to get our latest update & news.</p> 496 <form action="#" method="post" class="flex"> 497 <input type="email" placeholder="Enter your email" required class="w-full px-4 py-2 rounded-l-md text-black outline-none" /> 498 <button type="submit" class="bg-teal-600 hover:bg-teal-500 px-4 rounded-r-md"> 499 <i class="fas fa-paper-plane text-white"></i> 500 </button> 501 </form> 502 </div> 503 </div> 504 505 <!-- Footer Bottom --> 506 <div class="bg-[#002822] py-4 text-center text-sm"> 507 © Copyright 2026 All Rights Reserved. 508 </div> 509</footer> 510 511<a href="https://wa.me/+918281797214" target="_blank" class="floatingwhatsapp flex justify-center items-center"><img src="public/images/whatsapp.svg" alt="whatsapp" /></a> 512<div id="back-to-top" class="back-to-top"> 513 <a href="#"><i class="fas fa-chevron-up"></i></a> 514</div> 515 516 517 518 519
519<script src="public/js/jquery-3.4.1.min.js"></script>
519 520
520<script src="public/js/popper/popper.min.js"></script>
520 521
521<script src="public/js/bootstrap/bootstrap.min.js"></script>
521 522
522<script src="public/js/jquery.appear.js"></script>
522 523
523<script src="public/js/select2/select2.full.js"></script>
523 524
524<script src="public/js/owl-carousel/owl.carousel.min.js"></script>
524 525
525<script src="public/js/swiper/swiper.min.js"></script>
525 526
526<script src="public/js/swiperanimation/SwiperAnimation.min.js"></script>
526 527
527<script src="public/js/shuffle/shuffle.min.js"></script>
527 528
528<script src="public/js/jarallax/jarallax.min.js"></script>
528 529
529<script src="public/js/jarallax/jarallax-video.min.js"></script>
529 530
530<script src="public/js/magnific-popup/jquery.magnific-popup.min.js"></script>
530 531
531<script src="public/js/counter/jquery.countTo.js"></script>
531 532
532<script src="public/js/filepond.min.js"></script>
532 533 <!-- include FilePond plugins --> 534
534<script src="public/js/filepond-plugin-image-preview.min.js"></script>
534 535
535<script src="public/js/filepond-plugin-file-validate-type.min.js"></script>
535 536
536<script src="public/js/filepond-plugin-file-validate-size.min.js"></script>
536 537
537<script src="public/js/chart.min.js"></script>
537 538
538<script src="public/js/custom.js"></script>
538 539
539<script src="public/js/scripts.js"></script>
539 540
540<script src="public/js/account.js"></script>
540 541
541<script> 542$('#register-form22').on('submit', processForm({ 543 api: './api/user/register', 544 success_message: 'Registration success', 545 error_message: 'Error in registration', 546 547 callback: function(result, $form) { 548 549 var $msg = $('#form-message'); 550 551 // class reset 552 $msg.removeClass('hidden bg-green-500 bg-red-500'); 553 554 // success / error color 555 if(result.success){ 556 $msg.addClass('bg-green-500'); 557 } else { 558 $msg.addClass('bg-red-500'); 559 } 560 561 // message set 562 $msg.text(result.message).fadeIn(); 563 564 // optional auto hide 565 setTimeout(() => { 566 $msg.fadeOut(); 567 }, 3000); 568 569 // redirect only on success 570 if(result.success){ 571 setTimeout(() => { 572 location.href = window.App.path + window.redirect_url; 573 }, 1000); 574 } 575 } 576})); 577 578 579$('#login-form22').on('submit', processForm({ 580 api: './api/user/login', 581 success_message: 'Login success..', 582 error_message: 'Invalid username or password!', 583 584 callback: function(result, $form) { 585 586 var $msg = $('#form-message'); 587 588 // reset classes 589 $msg.removeClass('hidden bg-green-500 bg-red-500'); 590 591 // success / error color 592 if(result.success){ 593 $msg.addClass('bg-green-500'); 594 } else { 595 $msg.addClass('bg-red-500'); 596 } 597 598 // message show 599 $msg.text(result.message).fadeIn(); 600 601 // auto hide 602 setTimeout(() => { 603 $msg.fadeOut(); 604 }, 3000); 605 606 // redirect on success 607 if(result.success){ 608 setTimeout(() => { 609 location.href = window.App.path + window.redirect_url; 610 }, 1000); 611 } 612 } 613})); 614</script>
614 615
616<script src="https://cdn.tailwindcss.com"></script>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.