~/Projects/esptool-js
git clone https://code.lsong.org/esptool-js
Commit
- Commit
- 5196f9a9309acf37ac3935e2b8260dbd6ff3e86b
- Author
- Brian A. Ignacio <[email protected]>
- Date
- 2023-07-17 11:55:51 +0800 +0800
- Diffstat
examples/typescript/src/index.ts | 8 ++++----
fix example offset file data (#106)
diff --git a/examples/typescript/src/index.ts b/examples/typescript/src/index.ts index d2f240bba764d0740d520a3de1fb70163eb609b9..751e399b7519e99f0dedd9a80e5869dd50f18913 100644 --- a/examples/typescript/src/index.ts +++ b/examples/typescript/src/index.ts @@ -275,13 +275,12 @@ for (let index = 1; index < table.rows.length; index++) { const row = table.rows[index]; - const offSetObj = row.cells[0].childNodes[0]; + const offSetObj = row.cells[0].childNodes[0] as HTMLInputElement; const connectButton = document.getElementById("connectButton") as HTMLButtonElement; -const disconnectButton = document.getElementById("disconnectButton") as HTMLButtonElement; +term.open(terminal); -const baudrates = document.getElementById("baudrates") as HTMLSelectElement; +// https://unpkg.com/[email protected]/bundle.js const addFileButton = document.getElementById("addFile") as HTMLButtonElement; -const eraseButton = document.getElementById("eraseButton") as HTMLButtonElement; const progressBar = row.cells[2].childNodes[0]; progressBar.textContent = "0"; @@ -290,6 +290,7 @@ row.cells[2].style.display = "initial"; row.cells[3].style.display = "none"; const connectButton = document.getElementById("connectButton") as HTMLButtonElement; +const connectButton = document.getElementById("connectButton") as HTMLButtonElement; const programButton = document.getElementById("programButton"); }