Clean up code, hide label if viewing.

This commit is contained in:
MeowcaTheoRange 2024-01-03 14:56:29 -06:00
parent bf5fe2a16b
commit f2fd0b441c
2 changed files with 3 additions and 28 deletions

View file

@ -93,21 +93,11 @@
<header>
<section>
<h1>Spectrum</h1>
<p>Like spectrum.avris.it, but a little more detailed.</p>
<p class="hideIfReadOnly">
Like spectrum.avris.it, but a little more detailed.
</p>
</section>
</header>
<!-- <section class="hideIfReadOnly">
<h2>Name</h2>
<p>What's your name? This will be used throughout the form.</p>
<label>
<input
id="spec-name"
type="text"
value=""
placeholder="[Subject Name Here]"
/>
</label>
</section> -->
<section>
<h2>Gender</h2>
<h3>Identity</h3>

View file

@ -1,5 +1,3 @@
// const nameElement = document.getElementById("spec-name");
const sliders = [
[
"spec-gen-idt",
@ -173,16 +171,6 @@ function triggerSliders(generate) {
);
createShareableURL();
});
// Update description on name change
// nameElement.addEventListener("input", () => {
// updateDescription(
// description[0],
// sliderElement.value,
// description[1](overrideElement)
// );
// createShareableURL();
// });
}
sliderElement.disabled = !func(overrideElement);
@ -232,9 +220,6 @@ function encode() {
return number.toString(36);
}
// test pattern (on): 100100011010100100100100100100 246a4924
// test pattern (off): 001000010000001000001000001000 8408208
function extract_ecfBIN(parsed_string) {
enc_s_gia.value = parseInt(parsed_string.substring(0, 3), 2);
enc_s_gi.value = parseInt(parsed_string.substring(3, 7), 2);