()
| 878 | } |
| 879 | } |
| 880 | function drawCanvasLoading() { |
| 881 | if (loadingDrawn || !showNavigating) return; |
| 882 | loadingDrawn = true; |
| 883 | const canvas = $("#navigator-screen"); |
| 884 | const ctx = canvas.getContext("2d"); |
| 885 | const width = canvas.width; |
| 886 | const height = canvas.height; |
| 887 | |
| 888 | // Draw semi-transparent black background |
| 889 | ctx.save(); |
| 890 | ctx.globalAlpha = 0.8; |
| 891 | ctx.fillStyle = "#000"; |
| 892 | ctx.fillRect(0, 0, width, height); |
| 893 | ctx.globalAlpha = 1.0; |
| 894 | |
| 895 | // Draw "Loading" text in the center |
| 896 | ctx.fillStyle = "#fff"; |
| 897 | ctx.font = "bold 14px 'DejaVu Sans Mono', Consolas, Menlo"; |
| 898 | ctx.textAlign = "center"; |
| 899 | ctx.textBaseline = "middle"; |
| 900 | ctx.fillText("Navigating...", width / 2, height / 2); |
| 901 | ctx.restore(); |
| 902 | } |
| 903 | |
| 904 | let oldTimerSession = sessionStorage.getItem("autoReload") || "0"; |
| 905 | eConfigAutoReload.querySelector(`option[value="${oldTimerSession}"]`).selected = |
no test coverage detected