summaryrefslogtreecommitdiff
path: root/pages/bitset.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/bitset.inc')
-rw-r--r--pages/bitset.inc13
1 files changed, 10 insertions, 3 deletions
diff --git a/pages/bitset.inc b/pages/bitset.inc
index a777b60..309bab8 100644
--- a/pages/bitset.inc
+++ b/pages/bitset.inc
@@ -46,7 +46,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
<div data-bs-toggle="tooltip" title="Value reserved for future use" id="binary-bit-10" class="font-monospace tooltip-nohelp text-muted" style="text-align: center;cursor: pointer;">0</div>
<div data-bs-toggle="tooltip" title="Persecutor" id="binary-bit-11" class="font-monospace tooltip-nohelp" style="color:#197387;text-align: center;cursor: pointer;">0</div>
<div data-bs-toggle="tooltip" title="Leader" id="binary-bit-12" class="font-monospace tooltip-nohelp" style="text-align: center;cursor: pointer;color:#877e19;">0</div>
- <div data-bs-toggle="tooltip" title="Value reserved for future use" id="binary-bit-13" class="text-muted font-monospace tooltip-nohelp" style="text-align: center;cursor: pointer;">0</div>
+ <div data-bs-toggle="tooltip" title="Enable sexual features" id="binary-bit-13" class="font-monospace tooltip-nohelp" style="text-align: center;cursor: pointer;">0</div>
<div data-bs-toggle="tooltip" title="Preemptive sexual consent" id="binary-bit-14" class="font-monospace tooltip-nohelp" style="color: rgb(59,196,46);text-align: center;cursor: pointer;">0</div>
<div data-bs-toggle="tooltip" title="Fronts less frequently" id="binary-bit-15" class="font-monospace tooltip-nohelp" style="color: #198754;text-align: center;cursor: pointer;">0</div>
<div data-bs-toggle="tooltip" title="Non verbal in real life" id="binary-bit-16" class="font-monospace tooltip-nohelp" style="color: #20c997;text-align: center;cursor: pointer;">0</div>
@@ -164,6 +164,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
let polyamorous2 = binString.substring(19, 20) !== "0";
let alignment1 = binString.substring(20, 24);
let alignment2 = binString.substring(25 + 16, 29 + 16);
+ let sexualFeatures = binString.substring(12, 13) !== "0";
document.getElementById("value-0").value = sharedMemory;
document.getElementById("value-1").value = little;
@@ -183,6 +184,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
document.getElementById("value-23").checked = polyamorous2;
document.getElementById("value-24").value = alignment1;
document.getElementById("value-25").value = alignment2;
+ document.getElementById("value-26").checked = sexualFeatures;
setColors();
}
@@ -242,6 +244,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
let val23 = document.getElementById("value-23").checked;
let val24 = document.getElementById("value-24").value;
let val25 = document.getElementById("value-25").value;
+ let val26 = document.getElementById("value-26").checked;
let val0bin = parseInt(val0).toString(2);
val0bin = val0bin.length === 1 ? "0" + val0bin : val0bin;
@@ -261,7 +264,6 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
let val7bin = "0";
let val8bin = "0";
let val15bin = "0";
- let val19bin = "0";
let val5bin = val5 ? "1" : "0";
let val6bin = val6 ? "1" : "0";
@@ -274,8 +276,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
let val21bin = val21 ? "1" : "0";
let val22bin = val22 ? "1" : "0";
let val23bin = val23 ? "1" : "0";
+ let val26bin = val26 ? "1" : "0";
- let bin = "0000000000" + val21bin + val20bin + val19bin + val18bin + val17bin + val16bin + val11bin + val22bin + val23bin + val24bin + val0bin + val4bin + val1bin + val5bin + val6bin + val7bin + val8bin + val2bin + val3bin + val25bin + val9bin + val10bin + val15bin;
+ let bin = "0000000000" + val21bin + val20bin + val26bin + val18bin + val17bin + val16bin + val11bin + val22bin + val23bin + val24bin + val0bin + val4bin + val1bin + val5bin + val6bin + val7bin + val8bin + val2bin + val3bin + val25bin + val9bin + val10bin + val15bin;
console.log(bin, parseInt(bin, 2));
@@ -404,6 +407,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
Fictive
</label><br>
<label style="margin-bottom:5px;">
+ <input type="checkbox" id="value-26" onchange="updateFromSelection();">
+ Enable sexual features (for littles/younger only)
+ </label><br>
+ <label style="margin-bottom:5px;">
<input type="checkbox" id="value-18" onchange="updateFromSelection();">
Preemptive sexual consent
</label><br>