error.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="stylesheet" href="../../script/semantic/semantic.min.css">
  6. <script type="text/javascript" src="../../script/jquery.min.js"></script>
  7. <script type="text/javascript" src="../../script/semantic/semantic.min.js"></script>
  8. <script type="text/javascript" src="../../script/ao_module.js"></script>
  9. <title>Storage Pool Error</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  11. <style>
  12. body{
  13. background-color: white;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div class="ui container" style="padding-top: 25%;">
  19. <h2 class="ui header">
  20. <i class="remove icon"></i>
  21. <div class="content">
  22. <span id="errmsg"></span>
  23. <div class="sub header">Invalid settings detected in your inputed values.</div>
  24. </div>
  25. </h2>
  26. <div class="ui divider"></div>
  27. <button class="ui right floated button" onclick="ao_module_close();">Cancel</button>
  28. <button id="backbtn" class="ui green right floated button" onclick="back();"><i class="arrow left icon"></i> Back to Editor</button>
  29. </div>
  30. <script>
  31. var returnAddress = "";
  32. if (window.location.hash.length > 1){
  33. var err = window.location.hash.substr(1);
  34. err = decodeURIComponent(err);
  35. errObject = JSON.parse(err);
  36. console.log(errObject);
  37. $("#errmsg").text(errObject.Message);
  38. if (errObject.Source == ""){
  39. $("#backbtn").remove();
  40. }else{
  41. returnAddress = "./poolEditor.html#" + errObject.Source;
  42. }
  43. }
  44. function back(){
  45. if (returnAddress == ""){
  46. return
  47. }else{
  48. window.location.href = returnAddress;
  49. }
  50. }
  51. </script>
  52. </body>
  53. </html>