You are on page 1of 1

<label for="myCheck">Completed:</label>

<input type="checkbox" id="myCheck" onclick="myFunction()">


<p id="text" style="display:none">THIS TASK IS COMPLETED!
</p>
function myFunction() {
var checkBox = document.getElementById("myCheck");
var text = document.getElementById("text");
if (checkBox.checked == true){
text.style.display = "block";
} else {
text.style.display = "none";
}
}

*{
margin:0;
padding:0;
background-color: black;
color:white;
}
.heading{
text-decoration:underline;
color:rgb(244, 244, 14);
font-style: italic;
padding:30px;
font-size:50px;
}
.heading img{
width:90px;
height:60px;
}
.container{
width: 100%;
height:100%;
}

.create{
padding:30px;
width:70%;
height:70%;
background-color: rgba(110, 56, 76, 0.5);
}
#form{
padding:10px;
width:50%;
height:50%;
background-color: rgba(255, 0, 93, 0.5);
}
#form input{
width:200px;
height:30px;
}
span{
color:white;
}

You might also like