index.html 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  7. <style>
  8. body {
  9. background: transparent;
  10. }
  11. </style>
  12. </head>
  13. <body style="margin: 0px; max-width: 100vw;">
  14. <div style="width: 100%; height: 100%; box-sizing: border-box; text-align: center; background-color: white;">
  15. <div style="position: relative; display: inline-flex; flex-direction: column; height: 100%; width: 1024px; max-width: 100%; overflow: hidden auto; padding: 0.5rem; box-sizing: border-box; text-align: left; font-family: Consolas, Menlo, monospace; font-size: 11px; word-break: break-word; line-height: 1.5; color: black;">
  16. <div style="font-size: 2em; font-family: sans-serif; color: rgb(206, 17, 38); margin: 0px 2rem 0.75rem 0px; flex: 0 0 auto; max-height: 50%; overflow: auto;">Failed to compile</div>
  17. <div>
  18. <!-- 不要换行,会影响pre输出 -->
  19. <pre style="position: relative; display: block; padding: 0.5em; margin-top: 0.5em; margin-bottom: 0.5em; overflow-x: auto; white-space: pre-wrap; border-radius: 0.25rem; background-color: rgba(206, 17, 38, 0.05); color: inherit;"><code style="font-family: Consolas, Menlo, monospace;"><span data-ansi-line="true"><span id="j_errContent"><%- error %></span></span></code></pre>
  20. </div>
  21. </div>
  22. </div>
  23. <script>
  24. var errContent = document.getElementById('j_errContent').innerText;
  25. errContent && console.error(errContent);
  26. </script>
  27. </body>
  28. </html>