Skip to content

Commit

Permalink
Add Xen Wiki links for terms
Browse files Browse the repository at this point in the history
  • Loading branch information
inthar-raven committed Sep 13, 2024
1 parent 8001895 commit 8978b2a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
20 changes: 16 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,10 @@ <h1>Ternary scale properties</h1>
</tr>
<tr>
<td>
filtering for monotone MOS properties<br />
filtering for
<a href="https://en.xen.wiki/w/Monotone-MOS_scale" target="_blank"
>monotone MOS properties</a
><br />
<!-- Using radio buttons because I don't know how to get checkboxes to work with Actix. -->
<input
type="checkbox"
Expand Down Expand Up @@ -568,7 +571,11 @@ <h1>Ternary scale properties</h1>
</tr>
<tr>
<td>
guided generator sequence of length<!--
guided
<a href="https://en.xen.wiki/w/Generator_sequence" target="_blank"
>generator sequence</a
>
of length<!--
GGS stands for "guided generator sequence";
it is a GS that tempers to a single period MOS generator chain.
Using underscores for `name`s since Actix expects that instead of hyphens.-->
Expand All @@ -592,7 +599,10 @@ <h1>Ternary scale properties</h1>
</tr>
<tr>
<td>
guide frame complexity
<a href="https://en.xen.wiki/w/Guide_frame" target="_blank"
>guide frame</a
>
complexity
<input
type="radio"
id="complexity-exactly"
Expand All @@ -618,7 +628,9 @@ <h1>Ternary scale properties</h1>
</tr>
<tr>
<td>
maximum variety
<a href="https://en.xen.wiki/w/Maximum_variety" target="_blank"
>maximum variety</a
>
<input
type="radio"
id="mv-exactly"
Expand Down
15 changes: 8 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,13 @@ stack()`
const ploidacot = currentProfile["ploidacot"];
const structure = currentProfile["structure"];
if (structure) {
el.innerHTML += `<b>Guide frame</b><br/><small>`;
el.innerHTML += `<b><a href="https://en.xen.wiki/w/Guide_frame
" target="_blank">Guide frame</a></b><br/><small>`;
let gsDisp =
`${structure["gs"].map((g) => ` ${alsoInCurrentTuning(g)}`)}`.slice(
1,
);
el.innerHTML += `Guided generator sequence of ${stepVectorLength(structure["gs"][0])}-steps: GS(${gsDisp})<br/>`; // TODO prettify
el.innerHTML += `Guided <a href="https://en.xen.wiki/w/Generator_sequence" target="_blank">generator sequence</a> of ${stepVectorLength(structure["gs"][0])}-steps: GS(${gsDisp})<br/>`; // TODO prettify
el.innerHTML += `Aggregate generator ${alsoInCurrentTuning(structure["aggregate"])}<br/>`; // TODO prettify
el.innerHTML += `Offsets ${structure["polyoffset"].map((g) => alsoInCurrentTuning(g))}<br/>`; // TODO prettify
el.innerHTML += `Multiplicity ${JSON.stringify(structure["multiplicity"])}<br/>`; // TODO prettify
Expand All @@ -495,9 +496,9 @@ stack()`
const shearString = shear === 0 ? "" : `${shear}-sheared `;
const cot = ploidacot["cot"];
const cotString = `${cot}-cot`;
el.innerHTML += `Detempered <a href="https://en.xen.wiki/w/Ploidacot" target="_blank">Ploidacot</a>: ${ploidString}${shearString}${cotString}<br/><br/>`; // TODO prettify
el.innerHTML += `Detempered <a href="https://en.xen.wiki/w/Ploidacot" target="_blank">Ploidacot</a>: ${ploidString}${shearString}${cotString}<br/><br/>`; // TODO prettify
}
el.innerHTML += `<b>Monotone MOS properties</b><br/>`;
el.innerHTML += `<b><a href="https://en.xen.wiki/w/Monotone-MOS_scale" target="_blank">Monotone MOS properties</a></b><br/>`;
el.innerHTML += currentProfile["lm"] ? `L = m<br/>` : "";
el.innerHTML += currentProfile["ms"] ? `m = s<br/>` : "";
el.innerHTML += currentProfile["s0"] ? `s = 0<br/>` : "";
Expand All @@ -509,11 +510,11 @@ stack()`
el.innerHTML += `None<br/>`;
}
if (currentProfile["chirality"] === "Achiral") {
el.innerHTML += `<br/>Chirality: Achiral`;
el.innerHTML += `<br/><a href="https://en.xen.wiki/w/Chirality" target="_blank">Chirality</a>: Achiral`;
} else {
el.innerHTML += `<br/>Chirality: ${currentProfile["chirality"]} (reversed: ${currentProfile["reversed"]})`;
el.innerHTML += `<br/><a href="https://en.xen.wiki/w/Chirality" target="_blank">Chirality</a>: ${currentProfile["chirality"]} (reversed: ${currentProfile["reversed"]})`;
}
el.innerHTML += `<br/>Maximum variety ${currentProfile["mv"]}</small>`;
el.innerHTML += `<br/><a href="https://en.xen.wiki/w/Maximum_variety" target="_blanMaximum variety</a> ${currentProfile["mv"]}</small>`;
}
}
}
Expand Down

0 comments on commit 8978b2a

Please sign in to comment.