mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-11 13:30:01 -04:00
17 lines
No EOL
466 B
HTML
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> |