Projects STRLCPY link-lock Commits 47ffd190
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    index.html
    skipped 17 lines
    18 18   <script type="text/javascript" src="api.js"></script>
    19 19   <script type="text/javascript">
    20 20   function error(text) {
    21  - let errorDisplay = document.querySelector("#errortext");
    22  - errorDisplay.innerText = `Error: ${text}`;
     21 + document.querySelector(".error").style.display = "inherit";
     22 + document.querySelector("#errortext").innerText = `Error: ${text}`;
    23 23   }
    24 24   
    25 25   // Run when the <body> loads
    skipped 53 lines
    79 79   </noscript>
    80 80   
    81 81   <!-- Display errors in a big red box -->
    82  - <div class="error red-border">
     82 + <div class="error red-border" style="display: none">
    83 83   <p id="errortext">Error</p>
    84 84   <button onclick="main()">Try again</button>
    85 85   </div>
    skipped 4 lines
Please wait...
Page is in error, reload to recover