miki

Miki: personal wiki with the fmd markup format
git clone https://wtenison.com/repo/miki.git
Log | Files | Refs | README | LICENSE

script.js (496B)


      1 // START WASM
      2 
      3 const go = new global.Go();
      4 
      5 WebAssembly.instantiateStreaming(fetch("web/global/fmd.wasm"), go.importObject)
      6     .then((result) => {
      7         go.run(result.instance);
      8 		makeFMDState(0)
      9 
     10         _homePageContent = document.getElementById("home-page-view").getElementsByClassName("_content_")[0]
     11 
     12         loadFMDFileHTML("https://test.wtenison.com/web/home/info.fmd", _homePageContent)
     13 
     14     })
     15     .catch(err => console.error('_ERROR:instantiateStreaming:failed to load WASM:', err));