Clean up code, hide label if viewing.
This commit is contained in:
parent
bf5fe2a16b
commit
f2fd0b441c
2 changed files with 3 additions and 28 deletions
16
index.html
16
index.html
|
@ -93,21 +93,11 @@
|
||||||
<header>
|
<header>
|
||||||
<section>
|
<section>
|
||||||
<h1>Spectrum</h1>
|
<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>
|
</section>
|
||||||
</header>
|
</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>
|
<section>
|
||||||
<h2>Gender</h2>
|
<h2>Gender</h2>
|
||||||
<h3>Identity</h3>
|
<h3>Identity</h3>
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// const nameElement = document.getElementById("spec-name");
|
|
||||||
|
|
||||||
const sliders = [
|
const sliders = [
|
||||||
[
|
[
|
||||||
"spec-gen-idt",
|
"spec-gen-idt",
|
||||||
|
@ -173,16 +171,6 @@ function triggerSliders(generate) {
|
||||||
);
|
);
|
||||||
createShareableURL();
|
createShareableURL();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update description on name change
|
|
||||||
// nameElement.addEventListener("input", () => {
|
|
||||||
// updateDescription(
|
|
||||||
// description[0],
|
|
||||||
// sliderElement.value,
|
|
||||||
// description[1](overrideElement)
|
|
||||||
// );
|
|
||||||
// createShareableURL();
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sliderElement.disabled = !func(overrideElement);
|
sliderElement.disabled = !func(overrideElement);
|
||||||
|
@ -232,9 +220,6 @@ function encode() {
|
||||||
return number.toString(36);
|
return number.toString(36);
|
||||||
}
|
}
|
||||||
|
|
||||||
// test pattern (on): 100100011010100100100100100100 246a4924
|
|
||||||
// test pattern (off): 001000010000001000001000001000 8408208
|
|
||||||
|
|
||||||
function extract_ecfBIN(parsed_string) {
|
function extract_ecfBIN(parsed_string) {
|
||||||
enc_s_gia.value = parseInt(parsed_string.substring(0, 3), 2);
|
enc_s_gia.value = parseInt(parsed_string.substring(0, 3), 2);
|
||||||
enc_s_gi.value = parseInt(parsed_string.substring(3, 7), 2);
|
enc_s_gi.value = parseInt(parsed_string.substring(3, 7), 2);
|
||||||
|
|
Loading…
Reference in a new issue