Consolidated ASP Classic MVC framework from best components
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

55 lignes
1.7KB

  1. <div class="main-content">
  2. <div class="d-flex align-items-center justify-content-center min-vh-100 bg-light">
  3. <div class="card shadow-sm border-0 text-center p-4 p-md-5 error-card">
  4. <div class="mb-3">
  5. <i class="bi bi-exclamation-triangle-fill display-3 text-warning"></i>
  6. </div>
  7. <h1 class="h3 mb-3">404 - Page Not Found</h1>
  8. <p class="text-muted mb-3">
  9. The page you’re looking for could not be found. It may have been moved, deleted,
  10. or the address might be incorrect.
  11. </p>
  12. <%
  13. Dim redirectSeconds : redirectSeconds = GetAppSetting("Error404RedirectSeconds")
  14. If redirectSeconds = "nothing" Or Not IsNumeric(redirectSeconds) Then redirectSeconds = 5
  15. %>
  16. <p class="text-muted mb-3">
  17. You'll be redirected to the homepage in
  18. <span id="countdown"><%= redirectSeconds %></span> seconds.
  19. </p>
  20. <a href="/" class="btn btn-primary mt-2">
  21. Go to Homepage Now
  22. </a>
  23. </div>
  24. </div>
  25. </div>
  26. <style>
  27. .error-card {
  28. max-width: 540px;
  29. border-radius: 1rem;
  30. }
  31. .error-card .bi {
  32. line-height: 1;
  33. }
  34. </style>
  35. <script>
  36. (function () {
  37. let seconds = <%= redirectSeconds %>;
  38. const countdown = document.getElementById('countdown');
  39. const timer = setInterval(function () {
  40. seconds--;
  41. if (countdown) {
  42. countdown.textContent = seconds;
  43. }
  44. if (seconds <= 0) {
  45. clearInterval(timer);
  46. window.location.href = '/';
  47. }
  48. }, 1000);
  49. })();
  50. </script>

Powered by TurnKey Linux.