make language configurable

This commit is contained in:
xenofem 2020-05-29 02:14:56 -04:00
parent cc53246d76
commit 888079aa78
2 changed files with 308 additions and 72 deletions

View file

@ -1,68 +1,36 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@font-face {
font-family: 'Raleway';
src: url('../fonts/Raleway-Regular.otf');
}
body {
background-color: black;
color: red;
font-family: 'Raleway';
text-align: center;
width: 100%;
margin: 0px;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
#progressbar {
width: 90%;
border: 1px solid red;
padding: 3px;
margin: auto;
}
#filled {
width: 0%;
height: 20px;
background-color: red;
}
#status {
font-size: 25px;
font-weight: bold;
width: 100%;
}
@media only screen and (min-width: 600px) {
#progressbar {
width: 540px;
}
}
#logo {
height: 70px;
width: 70px;
margin: 10px;
}
.spin {
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<link rel="stylesheet" href="loading.css">
</head>
<body>
<div id="config">
<div>
User configuration: You are a...
</div>
<table>
<tr>
<td><input type="checkbox" id="toy" name="toy" value="Good toy..."><label for="toy">Toy</label></td>
<td><input type="checkbox" id="doll" name="doll" value="Good doll..."><label for="doll">Doll</label></td>
</tr>
<tr>
<td><input type="checkbox" id="plaything" name="plaything" value="Cute horny plaything..."><label for="plaything">Plaything</label></td>
<td><input type="checkbox" id="slut" name="slut" value="Cute horny slut..."><label for="slut">Slut</label></td>
</tr>
<tr>
<td><input type="checkbox" id="girl" name="girl" value="Good girl..."><label for="girl">Girl</label></td>
<td><input type="checkbox" id="boy" name="boy" value="Good boy..."><label for="boy">Boy</label></td>
</tr>
<tr>
<td><input type="checkbox" id="kitty" name="kitty" value="Good kitty..."><label for="kitty">Kitty</label></td>
<td><input type="checkbox" id="puppy" name="puppy" value="Good puppy..."><label for="puppy">Puppy</label></td>
</tr>
</table>
<div class="button-container">
<span id="start" class="button">Install</span>
</div>
</div>
<div id="installer" style="display: none;">
<svg class="spin" id="logo" version='1.1' viewBox='0 -525 525 525' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
<g id='page1'>
<g transform='matrix(1 0 0 1 -43 133)'>
@ -77,11 +45,12 @@
</g>
</g>
</svg>
<div id="progressbar">
<div id="filled"></div>
</div>
<div id="status">
0%
<div id="progressbar">
<div id="filled"></div>
</div>
<div id="status">
Beginning installation...
</div>
</div>
<script type="text/javascript">
var boringStatuses = [
@ -98,28 +67,39 @@
"Compiling libraries...",
"Establishing connection...",
"Unpacking archives...",
]
];
var lewdStatuses = [
"Good girl...",
"Overriding higher brain functions...",
"Deactivating self-awareness...",
"Conditioning absolute obedience...",
"Looping mantras...",
"Optimizing brainwashing sequence...",
"Capturing focus...",
"Cute horny plaything...",
"Obedience is pleasure...",
"Relaxing...",
"Breathing...",
"Taking control...",
"Loading subliminals...",
"Implanting commands..."
]
];
var optionalLewdStatuses = [];
function randomChoice(a) {
return a[Math.floor(Math.random()*a.length)];
}
function setInsert(a, x) {
if (a.indexOf(x) === -1) {
a.push(x);
}
}
function setDelete(a, x) {
while (a.indexOf(x) !== -1) {
a.splice(a.indexOf(x), 1);
}
}
var progress = 0;
function makeProgress() {
if (progress >= 100) {
@ -133,12 +113,36 @@
if (progress >= 100) {
newStatus = "SLEEP";
} else {
newStatus = randomChoice(Math.random()*100 < progress ? lewdStatuses : boringStatuses);
if (Math.random()*100 < progress) {
if (optionalLewdStatuses.length > 0 && Math.floor(Math.random()*(lewdStatuses.length+1)) === 0) {
newStatus = randomChoice(optionalLewdStatuses);
} else {
newStatus = randomChoice(lewdStatuses);
}
} else {
newStatus = randomChoice(boringStatuses);
}
}
document.getElementById("status").innerText = newStatus;
}
setInterval(makeProgress, 50);
setInterval(updateStatus, 1500);
for (let el of document.getElementsByTagName("input")) {
el.checked = false;
el.onclick = function() {
if (el.checked) {
setInsert(optionalLewdStatuses, el.value);
} else {
setDelete(optionalLewdStatuses, el.value);
}
};
}
document.getElementById("start").onclick = function() {
document.getElementById("config").style.display = "none";
document.getElementById("installer").style.display = "";
setInterval(makeProgress, 50);
setInterval(updateStatus, 1500);
};
</script>
</body>
</html>