libcurl.js/client/index.html
2024-02-27 11:38:00 -08:00

17 lines
No EOL
466 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="data:;base64,=">
<script defer src="./out/libcurl.js" onload="libcurl.load_wasm('/out/libcurl.wasm');"></script>
<script>
document.addEventListener("libcurl_load", ()=>{
libcurl.set_websocket(location.href.replace("http", "ws"));
console.log(`loaded libcurl.js v${libcurl.version.lib}`);
});
</script>
</head>
<body>
<p>emscripten tests</p>
</body>
</html>