bundle with esbuild

This commit is contained in:
2021-11-18 19:16:23 -05:00
parent 53ea678982
commit 8f55942b8c
30 changed files with 28 additions and 11 deletions
+1 -4
View File
@@ -1,11 +1,8 @@
import RFB from "https://cdn.skypack.dev/pin/@novnc/novnc@v1.3.0-RRNSIy674lWHJVNg8Apd/mode=imports,min/unoptimized/core/rfb.js";
import RFB from "@novnc/novnc/core/rfb.js";
// DOS-style box for text
const cmd = document.getElementById("cmd-text");
// random tile wallpaper
document.body.style.backgroundImage = "url('tiles/tile_" + Math.floor(20 * Math.random()) + ".jpg')";
if (window.WebSocket) {
// https://github.com/novnc/noVNC/blob/master/docs/API.md
const rfb = new RFB(