40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
<link rel="icon" href="<%= BASE_URL %>icon.png">
|
|
<title>Vcd Viewer</title>
|
|
<link rel="stylesheet" href="ondark.css">
|
|
<link rel="stylesheet" href="vscode.css">
|
|
<link rel="stylesheet" href="vcd.css">
|
|
<link rel="stylesheet" href="iconfont.css">
|
|
<link rel="stylesheet" href="animation.css">
|
|
<!-- <script src="vcd.js"></script> -->
|
|
<script></script>
|
|
|
|
<script>
|
|
window.readVcdFile = async () => {
|
|
const response = await fetch('test.vcd');
|
|
const blob = await response.blob();
|
|
const reader = new FileReader();
|
|
return new Promise((resolve, reject) => {
|
|
reader.onload = event => {
|
|
const arrayBuffer = event.target.result;
|
|
resolve(arrayBuffer);
|
|
};
|
|
reader.readAsArrayBuffer(blob);
|
|
});
|
|
}
|
|
window.workerPath = 'worker.js';
|
|
window.workerRoot = '';
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app"></div>
|
|
</body>
|
|
|
|
</html> |