-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from dvd101x/Alpine
Alpine
- Loading branch information
Showing
4 changed files
with
31 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,33 @@ | |
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | ||
<link rel="manifest" href="/site.webmanifest"> | ||
<script src="https://cdn.plot.ly/plotly-2.31.1.min.js" charset="utf-8"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" | ||
integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" | ||
integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" | ||
crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/markdown-it.min.js" | ||
integrity="sha256-OMcKHnypGrQOLZ5uYBKYUacX7Rx9Ssu91Bv5UDeRz2g=" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/markdown-it-texmath/texmath.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markdown-it-texmath/css/texmath.min.css"> | ||
<link rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.6.1/github-markdown-light.css" | ||
integrity="sha512-tVO0ZLV54CEoiM+i1hvfZGcopGR3rxyyC3L2/P/6NRTVXlrp4OKyTFunluVG1BRNasDLnm6ZRPDKBGM0CkS99Q==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<script src="//unpkg.com/alpinejs" defer></script> | ||
|
||
|
||
</head> | ||
<script> | ||
const mathWorker = new Worker("mathWorker.js", {type: "classic"}); | ||
const mathWorker = new Worker("mathWorker.js", { type: "classic" }); | ||
</script> | ||
<body> | ||
|
||
<body x-data="{showCode:true, showReport:true}"> | ||
<nav class="markdown-body"> | ||
<form name="topBar"> | ||
<button type='button' x-on:click="showCode = !showCode" | ||
x-text="showCode?'<':'>'" | ||
x-bind:title="showCode?'hide code':'show code'"></button> | ||
<fieldset id='tabs'></fieldset> | ||
<span> | ||
<fieldset id="examples" style="float: right;"> | ||
|
@@ -53,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"></div> | ||
<article id="OUTPUT" class="markdown-body"> | ||
<div id="INPUT" x-show="showCode"></div> | ||
<article id="OUTPUT" class="markdown-body" x-show="showReport"> | ||
</article> | ||
</main> | ||
<script type="module" src="/main.js"> </script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters