mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-01 21:37:42 -04:00
move hs2js package here + improve readme
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<script src="https://unpkg.com/hs2js@0.0.3"></script>
|
||||
<button id="hello">hello</button>
|
||||
<script>
|
||||
hs2js.setBase('https://unpkg.com/hs2js@0.0.3/dist/');
|
||||
document.addEventListener('click', async () => {
|
||||
window.log = (s) => console.log(s);
|
||||
await hs2js.evaluate('log "hello from haskell!"');
|
||||
hs2js.loadParser();
|
||||
document.getElementById('hello').addEventListener('click', () => {
|
||||
hs2js.evaluate('alert "hello from haskell!"');
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user