Cleaned up html
This commit is contained in:
parent
1298023463
commit
853e20cc57
|
@ -4,10 +4,10 @@
|
||||||
<title>wasmFPGAloader -- FPGAOL-CE</title>
|
<title>wasmFPGAloader -- FPGAOL-CE</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<button id="connectBtn">Connect</button>
|
<button id="connectBtn">Connect USB Device</button>
|
||||||
<button id="testBtn">openFPGAloader --detect</button>
|
<button id="testBtn">openFPGAloader --detect</button>
|
||||||
<p id="status0"></p>
|
<p id="status0"></p>
|
||||||
<input type="file" id="upload" onchange="uploadFile()">
|
<input type="file" id="upload" onchange="uploadFile()"><br>
|
||||||
<button id="testBtn2">Blast</button>
|
<button id="testBtn2">Blast</button>
|
||||||
<script>
|
<script>
|
||||||
const connectBtn = document.getElementById('connectBtn');
|
const connectBtn = document.getElementById('connectBtn');
|
||||||
|
@ -32,7 +32,6 @@
|
||||||
async function test_usb_2() {
|
async function test_usb_2() {
|
||||||
console.log('test_usb_2')
|
console.log('test_usb_2')
|
||||||
await Module.callMain(["-b", "tangnano9k", "" + document.getElementById('upload').files[0].name]);
|
await Module.callMain(["-b", "tangnano9k", "" + document.getElementById('upload').files[0].name]);
|
||||||
//await Module.ccall('myMain', null, null, null);
|
|
||||||
}
|
}
|
||||||
var Module = {
|
var Module = {
|
||||||
onRuntimeInitialized: function() {
|
onRuntimeInitialized: function() {
|
||||||
|
@ -47,6 +46,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
function uploadFile() {
|
function uploadFile() {
|
||||||
|
|
||||||
var fileInput = document.getElementById('upload');
|
var fileInput = document.getElementById('upload');
|
||||||
var file = fileInput.files[0];
|
var file = fileInput.files[0];
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
|
|
Loading…
Reference in a new issue