internalServerError.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
  5. <link rel="stylesheet" href="{{root_escape}}script/semantic/semantic.min.css">
  6. <script type="text/javascript" src="{{root_escape}}script/jquery.min.js"></script>
  7. <script type="text/javascript" src="{{root_escape}}script/semantic/semantic.min.js"></script>
  8. <title>Internal Server Error</title>
  9. <style>
  10. #msg{
  11. position: absolute;
  12. top: calc(50% - 150px);
  13. left: calc(50% - 250px);
  14. width: 500px;
  15. height: 300px;
  16. text-align: center;
  17. }
  18. #footer{
  19. position: fixed;
  20. padding: 2em;
  21. padding-left: 5em;
  22. padding-right: 5em;
  23. bottom: 0px;
  24. left: 0px;
  25. width: 100%;
  26. }
  27. small{
  28. word-break: break-word;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <div id="msg">
  34. <h1 style="font-size: 6em; margin-bottom: 0px;">500</h1>
  35. <div>
  36. <h3 class="">Internal Server Error</h3>
  37. <div class="ui divider"></div>
  38. <p>Unable to serve the requested page due to some unknown backend error. <br><a style="cursor: pointer;" onclick="back();">Back</a></p>
  39. <div class="ui divider"></div>
  40. <div style="text-align: left;">
  41. <small>Request time: <span id="reqtime"></span></small><br>
  42. <small id="reqURLDisplay">Request URI: {{request_url}}</small>
  43. </div>
  44. </div>
  45. </div>
  46. <script>
  47. var ao_module_virtualDesktop = false;
  48. try{
  49. ao_module_virtualDesktop = !(!parent.isDesktopMode);
  50. }catch(ex){
  51. }
  52. function back(){
  53. if (ao_module_virtualDesktop){
  54. history.back();
  55. }else{
  56. window.location.href = "{{root_escape}}";
  57. }
  58. }
  59. $("#reqtime").text(new Date().toLocaleString(undefined, {year: 'numeric', month: '2-digit', day: '2-digit', weekday:"long", hour: '2-digit', hour12: false, minute:'2-digit', second:'2-digit'}));
  60. </script>
  61. </body>
  62. </html>