Skip to content

Commit c45f5f7

Browse files
committed
set edit boxes from url
1 parent 624a854 commit c45f5f7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎mathfont-table.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ const urlP = new URLSearchParams(document.location.search);
4545

4646
const fontsP=urlP.get("fonts");
4747
const widthP=urlP.get("w");
48+
const ltxP=urlP.get("ltx");
49+
const amP=urlP.get("am");
50+
const mmlP=urlP.get("mml");
4851

4952
document.addEventListener("DOMContentLoaded", () => {
5053

‎mathml-table2.html‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ <h3>MathML Font Display</h3>
274274
minwv.textContent = event.target.value;
275275
minwcss.textContent = "th,td{min-width: " + event.target.value +"em;}";
276276
});
277+
if(ltxP) document.getElementById("ltxedit").value= LZString.decompressFromEncodedURIComponent(ltxP);
278+
if(amP) document.getElementById("asciimathedit").value= LZString.decompressFromEncodedURIComponent(amP);
279+
if(mmlP) document.getElementById("mmledit").value= LZString.decompressFromEncodedURIComponent(mmlP);
277280
</script>
278281

279282
<div id="flow">

0 commit comments

Comments
 (0)