Suppression de la fonction greet inutile
parent
55c2e4a0c3
commit
cdc350f260
|
|
@ -3,14 +3,13 @@
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<title>Kikikoz</title>
|
<title>Kikikoz</title>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import {default as init, greet, ajoute, next} from './pkg/kikikoz.js';
|
import {default as init, ajoute, next} from './pkg/kikikoz.js';
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
await init()
|
await init()
|
||||||
}
|
}
|
||||||
|
|
||||||
run()
|
run()
|
||||||
window.greet = greet;
|
|
||||||
window.ajoute = ajoute;
|
window.ajoute = ajoute;
|
||||||
window.next = next;
|
window.next = next;
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,6 @@ extern {
|
||||||
fn alert(s: &str);
|
fn alert(s: &str);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[wasm_bindgen]
|
|
||||||
pub fn greet() {
|
|
||||||
alert("Hello, kikikoz!");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn next() {
|
pub fn next() {
|
||||||
let window = web_sys::window().expect("no global `window` exists");
|
let window = web_sys::window().expect("no global `window` exists");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue