diff --git a/index.html b/index.html index d126934..06d9707 100644 --- a/index.html +++ b/index.html @@ -1700,6 +1700,17 @@ console.log(pageNumber+1) loadPageRange(pageNumber+1) } +function loadCodeFromPage(url="https://fabien.benetou.fr/Analysis/BeyondTheCaseAgainstBooks?action=source"){ + // alternatively could load from a page number + fetch(url) + .then( r => r.text() ) + .then(data => { + let code = data.split("\n").filter( l => (l.slice(0,2) == "[@") )[0].slice(2).slice(0,-2); + // example as PmWiki parsing + eval(code) + } ) +} + // could change model opacity based on hand position, fading out when within a (very small here) safe space
@@ -1738,6 +1749,7 @@ console.log(pageNumber+1) +