40 lines
918 B
HTML
40 lines
918 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="lib/litegraph.css" />
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
<script type="text/javascript" src="lib/litegraph.core.js"></script>
|
|
|
|
<script type="module">
|
|
import { app } from "/scripts/app.js";
|
|
await app.setup();
|
|
window.app = app;
|
|
window.graph = app.graph;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
return;
|
|
|
|
let runningNodeId = null;
|
|
let progress = null;
|
|
let clientId = null;
|
|
|
|
var input = document.createElement("input");
|
|
input.setAttribute("type", "file");
|
|
input.setAttribute("accept", ".json,image/png");
|
|
input.style.display = "none";
|
|
document.body.appendChild(input);
|
|
|
|
input.addEventListener("change", function () {
|
|
var file = input.files[0];
|
|
prompt_file_load(file);
|
|
});
|
|
|
|
function loadGraph() {
|
|
input.click();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|