feat: Bouwende wasm content toegevoegd
gitea/double-pendulum/pipeline/head This commit looks good

This commit is contained in:
2026-09-05 17:37:16 +02:00
parent fbd8c9f990
commit db021cb24b
4 changed files with 197 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)]
fn main() -> Result<(), JsValue> {
let window = web_sys::window().expect("No global `window` exists");
let document = window.document().expect("No `document` on `window`");
let body = document.body().expect("Document should have a body");
let content = document.create_element("p")?;
content.set_inner_html("Hoi vanuit rust!");
body.append_child(&content)?;
Ok(())
}
-3
View File
@@ -1,3 +0,0 @@
fn main() {
println!("Hello, world!");
}