Skip to content

Commit

Permalink
fix anchor links on t-intro
Browse files Browse the repository at this point in the history
  • Loading branch information
sawka committed Jan 28, 2022
1 parent 19baa2e commit 64401e7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions playground/libs/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@
if ([email protected]) {
//@hibiki/update-url(page=@page);
}
$.activepage = @page;
@blob = callhandler(@url='/tutorial/'+$.activepage+'.html');
@match = fn:match(fn:blobastext(@blob), "^([\\s\\S]*)--------([\\s\\S]*)$");
$.codetext = @match[1];
//@lib-codemirror/setCMText(text=$.codetext);
//@lib/make-iframe(text=$.codetext, bulma=$.bulma);
$.tutorial_content = "";
//@hibiki/sleep(ms=1); /* creates a render gap forcing content container to scroll up */
$.tutorial_content = @match[2];
if ($.activepage != @page) {
$.activepage = @page;
@blob = callhandler(@url='/tutorial/'+$.activepage+'.html');
@match = fn:match(fn:blobastext(@blob), "^([\\s\\S]*)--------([\\s\\S]*)$");
$.codetext = @match[1];
//@lib-codemirror/setCMText(text=$.codetext);
//@lib/make-iframe(text=$.codetext, bulma=$.bulma);
$.tutorial_content = "";
//@hibiki/sleep(ms=10); /* creates a render gap forcing content container to scroll up */
$.tutorial_content = @match[2];
}
</define-handler>

<script>
Expand Down

0 comments on commit 64401e7

Please sign in to comment.