JSFiddle - React, Tailwind, and code Playground
by nsatija
HTML
<div id="background">
</div>
<div id="target"></div>
<div id="testDisplay">
<div id="content">
<div id="patient1"></div>
<br>
<br>
<br>
<div id="patient2"></div>
<br>
<br>
<br>
<div id="patient3"></div>
<br>
<br>
<br>
</div>
</div>
CSS
html {
height: 100%;
}
body {
margin: auto;
height: 100%;
width: 100%;
}
.inverted {
background-color: black;
filter: invert(100%);
}
.inverted2 {
filter: invert(100%);
}
.duochrome {
background-color: red;
}
.background {
position: fixed;
top: 0px;
left: 0px;
width: 50%;
height: 100%;
background-color: rgb(0, 210, 5);
z-index: -1;
}
#testDisplay {
position: absolute;
width: 100%;
height: 100%;
display: table;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
#content {
display: table-cell;
text-align: center;
vertical-align: middle;
}
.target {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 100px;
height: 100px;
background-color: black;
border-radius: 50px;
}
.tumble400 img {
height: 2000%;
margin-left: 18px;
margin-right: 18px;
}
.tumble300 img {
height: 1500%;
margin-left: 18px;
margin-right: 18px;
;
}
.tumble200 img {
height: 1000%;
margin-left: 18px;
margin-right: 18px;
}
.tumble100 img {
height: 500%;
margin-left: 18px;
margin-right: 18px;
}
.tumble80 img {
height: 400%;
margin-left: 18px;
margin-right: 18px;
}
.tumble70 img {
height: 350%;
margin-left: 35px;
margin-right: 35px;
}
.tumble60 img {
height: 300%;
margin-right: 35px;
margin-left: 35px;
}
.tumble50 img {
height: 250%;
margin-right: 35px;
margin-left: 35px;
}
.tumble40 img {
height: 200%;
margin-right: 35px;
padding-left: 35px;
}
.tumble30 img {
height: 150%;
margin-right: 35px;
padding-left: 35px;
}
.tumble25 img {
height: 125%;
margin-right: 35px;
padding-left: 35px;
}
.tumble20 img {
margin-right: 35px;
height: 100%;
margin-left: 35px;
}
#patientChart2 img {
margin-left: 35px;
}
JavaScript
if (!localStorage.storeSize) {
var currentZoom = 40;
} else {
$("#content").css('font-size', localStorage.storeSize);
$("#content").css('height', localStorage.storeSize);
}
function grow() {
currentZoom += 1;
$("#content").css('font-size', currentZoom + 'px');
$("#content").css('height', currentZoom + 'px');
localStorage.setItem("storeSize", currentZoom);
}
function shrink() {
currentZoom -= 1;
$("#content").css('font-size', currentZoom + 'px');
$("#content").css('height', currentZoom + 'px');
localStorage.setItem("storeSize", currentZoom);
}
function reset() {
localStorage.removeItem("storeSize");
}
firstLine = document.getElementById("patient1");
secondLine = document.getElementById("patient2");
thirdLine = document.getElementById("patient3");
function increment400() {
secondLine.className = ("tumble400");
document.getElementById("patient2").innerHTML = opener.egg + opener.dori;
}
function increment300() {
secondLine.className = ("tumble300");
document.getElementById("patient2").innerHTML = opener.egg + opener.dori;
}
function increment200() {
secondLine.className = ("tumble200");
document.getElementById("patient2").innerHTML = opener.egg + opener.dori;
}
function increment100() {
secondLine.className = ("tumble100");
document.getElementById("patient2").innerHTML = opener.egg + opener.dori;
}
function increment80() {
secondLine.className = ("tumble80");
document.getElementById("patient2").innerHTML = opener.egg + opener.dori;
}
function increment70() {
secondLine.className = ("tumble70");
document.getElementById("patient2").innerHTML = opener.egg + opener.dori;
}
function increment60() {
secondLine.className = ("tumble60");
document.getElementById("patient2").innerHTML = opener.egg + opener.dori;
}
function increment50() {
secondLine.className = ("tumble50");
document.getElementById("patient2").innerHTML = opener.egg +...