Skip to content

Commit

Permalink
Add hide report button
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x committed Aug 10, 2024
1 parent 6ff9eb8 commit af80ff4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
const mathWorker = new Worker("mathWorker.js", { type: "classic" });
</script>

<body x-data="{showCode:true}">
<body x-data="{showCode:true, showReport:true}">
<nav class="markdown-body">
<form name="topBar">
<button type='button' x-on:click="showCode = !showCode"
Expand Down Expand Up @@ -73,15 +73,19 @@
</optgroup>
</select>
<button type="button" id="exampleInsert" name="insertExample">+</button>
<button type="button"
x-on:click="showReport = !showReport"
x-text="showReport ? '>':'<'"
x-bind:title="showReport?'hide report':'show report'"></button>
</fieldset>
</span>

</form>
</nav>

<main>
<div id="INPUT" x-show="showCode"></div>
<article id="OUTPUT" class="markdown-body">
<article id="OUTPUT" class="markdown-body" x-show="showReport">
</article>
</main>
<script type="module" src="/main.js"> </script>
Expand Down

0 comments on commit af80ff4

Please sign in to comment.