Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

gngfxn

css

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<style>
div
{
   width:100px;
   height:75px;
   background-color:red;
   border:1px solid black;
}
#div2
{
   transform:rotate(30deg);
   background-color:yellow;
}
</style>
</head>
<body>
<div>Hello, World!</div>
<div id="div2">Hello, CSS3!</div>
</body>
</html>

Online CSS Editor

css

Mary Rose de Vega <!DOCTYPE html>
<html>list of best practice docs sice 1998  
<title>Web Page Design</title>
<head>puro love lang!
<style>
div
{
   width:100px;
   height:75px;
   background-color:red;
   border:1px solid black;
}
#div2
{
   transform:rotate(30deg);
   -ms-transform:rotate(30deg); /* IE 9 */
   -moz-transform:rotate(30deg); /* Firefox */
   -webkit-transform:rotate(30deg); /* Safari and Chrome */
   -o-transform:rotate(30deg); /* Opera */
   background-color:yellow;
}
</style>
</head>
<body>
<div>Hello, Jay-r Castaneda! </div>
<div id="div2">Hello, CSS3 Mary Rose de Vega! </div>
</body>
</html>

rahul

css

<!DOCTYPE html>
<html>
<head>
	<title>project</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="p1.css">
	<link rel="stylesheet" type="text/css" href="help.html">
	<style type="text/css">
	
	
	
body{
	
	background-repeat:no-repeat;
	background-size: cover;
	background-position: center ;
	background-size:auto auto;
}
.heading{
	background: linear-gradient(to top, #33ccff 1%, #00ff00 100%);
	max-width:auto;
	height:400px;
	text-align: center;
	font-size:40px;
	color:white;
	word-spacing:200px;
	

}
.img1{

	background-color:silver;
	border-radius: 50%;
	height:100px;
	max-width:100px;

}
.img1:hover{
	background-color: red;
	border-radius:50%;


}
.list2{
	height:auto;
	width:250px;
	border:outset 5px ;
	float: left;
	font-size: 30px;
	position:fixed;
}

.list1{
	height:auto;
	width:250px;
	border:outset 5px ;
	float: right;
	font-size:30px;
	position:;

	
}
.list3{
	position:fixed;
	height:800px;
	width:725px;
	border:dashed 10px lime;
	margin-left:300px;
	margin-right: 25%;
	
	

}
ul a:hover{
	color:yellow;

}

/*login avtar css  */
/* Full-width input fields */
input[type=text], input[type=password] {
  width:96%;
  padding: 15px;
  margin: 5px 0 22px 0;
  display: inline-block;
  border: none;
  background: #f1f1f1;
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for all buttons */
.sidenav{
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

.sidenav:hover {
  opacity:1;
}

/* Extra styles for the cancel button */
.cancelbtn {
  padding: 14px 20px;
  background-color: #f44336;
}

/* Float cancel and signup buttons and add an equal width */
.cancelbtn, .signupbtn {
  float: left;
  width: 50%;
}

/* Add padding to container elements */
.container {
  padding: 16px;
  border-radius:40px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left:200px;
  top: 0;
  width:50%; /* Full width */
  height:auto; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color:transparent;
  padding-top: 50px;

  
}

/* Modal Content/Box */
.modal-content {
  background-color:silver;
  background-position: center;


  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* Style the horizontal ruler */
hr {
  border: 3px solid #f1f1f1;
  margin-bottom: 25px;
}
 
/* The Close Button (x) */
.close {
  position:absolute;
  right:0px;
  top:19px;
  font-size:40px;
  font-weight: bold;
  color:yellow;
}

.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
  .cancelbtn, .signupbtn {
     width: 100%;
  }
}


/*navbar*/


.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 200px;
}

.sidebar a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #f1f1f1;
}

.sidebar .closebtn {
  position:absolute;
  background-color:silver;
  top:150px;
  width:0px;
  height:50%;
  right: 0px;
  font-size:0px;
  margin-left: 50px;
  border-radius: 40px;
}

#rightnav{
	background-color:red;

}




.main {
  transition: margin-left .5s;
  padding:30px;

}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidebar {padding-top: 15px;}
  .sidebar a {font-size: 18px;}
}


/*menu-------------------------------------*/
.menu{
	
	width:auto;
	height:auto;
	background-color:black;
	color:white;
	border:inset 5px ;
	border-radius: 20px;
	margin:0px;
}

#link a{
	
	font-size: 30px;
	height: auto;
	width: auto;
	text-decoration: none;
	padding: 10px;
	margin: 5px;
	background-color:white;
	color:black;
	border:outset 3px white;
}
#link a:hover{
	 text-shadow:3px 4px 10px ;
	 font-weight: 3px;
	font-size: 35px;

}


/*menu-------------------------------------*/


/*top nav*/
.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-y: hidden;
  transition: 0.9s;
}

.overlay-content {
  position: relative;
  top: 20%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtnn {
 
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay {overflow-y: auto;}
  .overlay a {font-size: 20px}
  .overlay .closebtnn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}
.down{
width:100%;
height:10px;
background-color:silver;
text-align:center;
border-radius:40px;
padding-top: 5px;

}
		
	</style>
</head>
<body>	<footer>
	
			<div id="mySidebar" class="sidebar">
			  <a href="javascript:void(0)" class="closebtn"onmouseover="closeNav()"></a>
			  <a href="#">About</a>
			  <a href="#">Services</a>
			  <a href="#">Clients</a>
			  <a href="#">Contact</a>
			</div>

			<div class="menu">
			
			<span style="font-size:30px;cursor:pointer" onmouseover="openNave()"><div class="down"></div></span>



						<div id="myNav" class="overlay">
   <div class="overlay-content">
    <a href="#">About</a>
    <a href="#">Services</a>
    <a href="#">Clients</a>
    <a href="#">Contact</a>
    <a href="javascript:void(0)" class="closebtnn" onmouseover="closeNave()">
    <div class="down"></div>
    </a>
   </div>
</div>




			<div class="main">
			  
			 	<div id="link">
			 	  <a  onmouseover="openNav()"> ☰>>>></a>
				  <a href="#">About</a>
				  <a href="#">Services</a>
				  <a href="#">Clients</a>
				  <a href="#">Contact</a>
				</div>
			</div>	
		</div>  


		</footer>
				<div class="list1">
				<ul>
					<a href=""><li>Kishore Nath Gpta</li></a><br>
					<a href=""><li>Kishore Nath Gpta</li></a><br>
					<a href=""><li>Kishore Nath Gpta</li></a><br>
					<a href=""><li>Prince kumar Gupta</li></a><br>
					<a href=""><li>Kishore Nath Gpta</li></a>
				</ul>
				</div>

					<div class="list2">
				<ul>
					<li>Rahul Kumar Ranjan</li>
					<li>Hemant Kumar Gupta </li>
					<li>Kishore Nath Gpta</li>
					<li>Prince kumar Gupta</li>
					<li>Md. Faizan</li>
					<li>Akansha Mittal</li>
				</ul>
				</div>

					<div class="list3">

						On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.
									





			<a onclick="document.getElementById('id01').style.display='block'">
		<img class="img1" src="me_waiting_for_login_avatar_183026.png">
	     </a><br>
				</div>

				
	

		

	   


	
						
	

	

<div id="id01" class="modal">
 
  <form class="modal-content" action="/action_page.php">
  	<span onclick="document.getElementById('id01').style.display='none'" class="close" title="Close Modal">&times;</span>

    <div class="container">


      <h1>Sign Up</h1>
      <p>Please fill in this form to create an account.</p>
      <hr>
      <label for="email"><b>Email</b></label>
      <input type="text" placeholder="Enter Email" name="email" required><br>

      <label for="psw"><b>Password</b></label>
      <input type="password" placeholder="Enter Password" name="psw" required><br>

      <label for="psw-repeat"><b>Repeat Password</b></label>
      <input type="password" placeholder="Repeat Password" name="psw-repeat" required><br>
      
      <label>
        <input type="checkbox" checked="checked" name="remember" style="margin-bottom:15px"> Remember me
      </label>

      <p>By creating an account you agree to our <a href="#" style="color:dodgerblue">Terms & Privacy</a>.</p>

      <div class="clearfix">
        <button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
        <button type="submit" class="signupbtn">Sign Up</button>
      </div>
    </div>
  </form>
</div>

<script>
// Get the modal
var modal = document.getElementById('id01');

// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
  if (event.target == modal) {
    modal.style.display = "none";
  }
}
</script>


		<script>
			function openNav() {
			  document.getElementById("mySidebar").style.width = "250px";
			  document.getElementById("main").style.marginLeft = "250px";
			}

			function closeNav() {
			  document.getElementById("mySidebar").style.width = "0";
			  document.getElementById("main").style.marginLeft= "0";
			}
		</script>


/*topnav*/

		<script>
function openNave() {
  document.getElementById("myNav").style.height = "65%";
}

function closeNave() {
  document.getElementById("myNav").style.height = "0%";
}
</script>

</body>
</html>

Online CSS Editor

css

<html>
    <head>
        <style>
            div {
                margin: 20px;
                padding: 10px;
                width: 300px;
                height: 100px;
                border: 5px solid pink;
                outline: 5px solid green;
                outline-offset: 15px;
            }
        </style>
    </head>
    
    <body>
        <div>TutorialsPoint</div>
    </body>
</html>

Online CSS Editor

css

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<style>
div
{
   width:100px;
   height:75px;
   background-color:red;
   border:1px solid black;
}
#div2
{
   transform:rotate(30deg);
   -ms-transform:rotate(30deg); /* IE 9 */
   -moz-transform:rotate(30deg); /* Firefox */
   -webkit-transform:rotate(30deg); /* Safari and Chrome */
   -o-transform:rotate(30deg); /* Opera */
   background-color:yellow;
}
</style>
</head>
<body>
<div>Hello, World!</div>
<div id="div2">Hello, CSS3!</div>
</body>
</html>

Online CSS Editor

css

temporary
.chat_window{
	/* margin-left: 50%; */
	height: calc(100vh - 120px);
}
.messages{
	height: calc(100vh - 210px);
}

.messages .message.left .text {
    color: black !important;
    font-weight: inherit;
}

#msg_input{
    color: black;
}

.img_div{
	margin: 5px;
	border: 1px solid #ccc;
    float: left;
	width: 100px;
	height: 100px;
}
.img_div:hover {
	border: 1px solid #777;
}

.zoom{
	width: 100%;
	height: 100%;
}

/* .overlay{
	position: absolute; 
  bottom: 0; 
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1; 
  width: 100px;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: justify;
}

#img1:hover .overlay{
    opacity: 1;
} */

/* .zoom:hover {
	transition: all 0.5s linear;
    opacity: 0.7;
} */

/* #main_div .slide{
	display: inline-block;
} */

Online CSS Editor

css

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<style>
div
{
   width:100px;
   height:75px;
   background-color:red;
   border:1px solid black;
}
#div2
{
   transform:rotate(30deg);
   -ms-transform:rotate(30deg); /* IE 9 */
   -moz-transform:rotate(30deg); /* Firefox */
   -webkit-transform:rotate(30deg); /* Safari and Chrome */
   -o-transform:rotate(30deg); /* Opera */
   background-color:yellow;
}
</style>
</head>
<body>
<div>Hello, World!</div>
<div id="div2">Hello, CSS3!</div>
</body>
</html>

Online CSS Editor

css

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<style>
div
{
   width:100px;
   height:75px;
   background-color:red;
   border:1px solid black;
}
#div2
{
   transform:rotate(50deg);
   -ms-transform:rotate(50deg); /* IE 9 */
   -moz-transform:rotate(50deg); /* Firefox */
   -webkit-transform:rotate(50deg); /* Safari and Chrome */
   -o-transform:rotate(50deg); /* Opera */
   background-color:yellow;
}
#div3
{
   transform:rotate(30deg);
   -ms-transform:rotate(30deg); /* IE 9 */
   -moz-transform:rotate(30deg); /* Firefox */
   -webkit-transform:rotate(30deg); /* Safari and Chrome */
   -o-transform:rotate(30deg); /* Opera */
   background-color:cyan;
}

</style>
</head>
<body>
<div>Hello, World!</div>
<div id="div2">Hello, CSS3!</div>
<div id="div3">Hello, CSS4!</div>
</body>
</html>

AweLife

css

<style>
  * {
      background-color: rgb(50, 50,50);
      color: white;
  }
  .title { 
  }
</style>
<h1 class="title">Welcome to AweLife! The Awesome Life Simulator</h1>
<h3>By Hype Games</h3>
<button onclick="ageButton()">Add Age</button>
<button onclick="collegeButton()">Law</button>
<button onclick="collegeButton1()">Computer Science</button>
<button onclick="collegeButton2()">Nursing</button>
<button onclick="collegeButton3()">Education</button>
<button onclick="collegeButton4()">Business</button>
<button onclick="collegeButton5()">Communication</button>
<button onclick="dropOut()">Drop Out</button>
<button onclick="lawJob1()">Lawyer</button>

<p id = "test"></p> <p id = "test0"></p> <p id = "test00"></p>
<p id = "test1"></p> <p id = "test2"></p> <p id = "test3"></p> 
<p id = "test4"></p> <p id = "test44"></p> <p id = "test5"></p> 
<p id = "test6"></p> <p id = "test7"></p> <p id = "test8"></p> 
<p id = "test9"></p> <p id = "test10"></p> <p id = "test11"></p> 
<p id = "test12"></p>

<script>

const name = Math.floor(Math.random()*100)

if (name < 10) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Gregory Manches! You were born a male in New York City in the USA."
} else if (name < 20) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Amelia Suesin! You were born a female in London in the UK."
} else if (name < 30) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Donny Crabdople! You were born a male in Toronto which is in Canada."
} else if (name < 40) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Lisa Phososon! You were born a female in Manila in the Philippines."
} else if (name < 50) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Maraiah Dangle! You were born a female in Little Rock in the USA"
} else if (name < 60) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Evan Hughes! You were born a male in Portland in the USA"
} else if (name < 70) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Tara Carter! You were born a female in St. Paul in the USA"
} else if (name < 80) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Juan Fernando! You were born a male in Tijuana in Mexico"
} else if (name < 90) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Saima Lieb! You were born a female in Tel Aviv in Israel"
} else if (name < 100) {
    document.getElementById("test0").innerText = "Hello! Welcome to life, Steve Eaden! You were born a male in Los Angeles in the USA"
}

//Generates Parent Names and Ages
const dadAge = Math.floor(Math.random()*35+18)
const parentAge = Math.floor(Math.random()*35+15)

var momName = ["Susan Dandelion","Mary Wrengworth","Kelly Amaimo","Patricia Boizen","Beatrice Treenut"]
var dadName = ["Mark Twainy","Walter Udalo","Henry Elope","Richard Watson","Clark Jenglewhisp"]
var job = ["Dentist","Construction Worker","Engineer","Computer Programmer","Graphic Designer","Nurse","Business Manager","Trucker","Social Media Manager","Teacher","Author"]

if (name < 5) {
    document.getElementById("test00").innerText = "Your mom is "+momName[0]+" and is "+parentAge+". Your dad is "+dadName[0]+" and is "+dadAge+". Your mom is a "+job[0]+". Your dad is a "+job[1]+"."
} else if (name > 5 && name < 10) {
    document.getElementById("test00").innerText = "Your mom is "+momName[1]+" and is "+parentAge+". Your dad is "+dadName[1]+" and is "+dadAge+". Your mom is a "+job[2]+". Your dad is a "+job[0]+"."
} else if (name > 10 && name < 15) {
    document.getElementById("test00").innerText = "Your mom is "+momName[2]+" and is "+parentAge+". Your dad is "+dadName[2]+" and is "+dadAge+". Your mom is a "+job[3]+". Your dad is a "+job[4]+"."
} else if (name > 15 && name < 20) {
    document.getElementById("test00").innerText = "Your mom is "+momName[3]+" and is "+parentAge+". Your dad is "+dadName[3]+" and is "+dadAge+". Your mom is a "+job[4]+". Your dad is a "+job[6]+"."
} else if (name > 20 && name < 25) {
    document.getElementById("test00").innerText = "Your mom is "+momName[4]+" and is "+parentAge+". Your dad is "+dadName[4]+" and is "+dadAge+". Your mom is a "+job[7]+". Your dad is a "+job[9]+"."
} else if (name > 25 && name < 30) {
    document.getElementById("test00").innerText = "Your mom is "+momName[0]+" and is "+parentAge+". Your dad is "+dadName[1]+" and is "+dadAge+". Your mom is a "+job[1]+". Your dad is a "+job[3]+"."
} else if (name > 30 && name < 35) {
    document.getElementById("test00").innerText = "Your mom is "+momName[2]+" and is "+parentAge+". Your dad is "+dadName[0]+" and is "+dadAge+". Your mom is a "+job[9]+". Your dad is a "+job[8]+"."
} else if (name > 35 && name < 40) {
    document.getElementById("test00").innerText = "Your mom is "+momName[0]+" and is "+parentAge+". Your dad is "+dadName[3]+" and is "+dadAge+". Your mom is a "+job[2]+". Your dad is a "+job[5]+"."
} else if (name > 450 && name < 45) {
    document.getElementById("test00").innerText = "Your mom is "+momName[4]+" and is "+parentAge+". Your dad is "+dadName[0]+" and is "+dadAge+". Your mom is a "+job[7]+". Your dad is a "+job[10]+"."
} else if (name > 45 && name < 50) {
    document.getElementById("test00").innerText = "Your mom is "+momName[1]+" and is "+parentAge+". Your dad is "+dadName[2]+" and is "+dadAge+". Your mom is a "+job[4]+". Your dad is a "+job[10]+"."
} else if (name > 50 && name < 55) {
    document.getElementById("test00").innerText = "Your mom is "+momName[3]+" and is "+parentAge+". Your dad is "+dadName[1]+" and is "+dadAge+". Your mom is a "+job[7]+". Your dad is a "+job[4]+"."
} else if (name > 55 && name < 60) {
    document.getElementById("test00").innerText = "Your mom is "+momName[1]+" and is "+parentAge+". Your dad is "+dadName[4]+" and is "+dadAge+". Your mom is a "+job[5]+". Your dad is a "+job[6]+"."
} else if (name > 60 && name < 65) {
    document.getElementById("test00").innerText = "Your mom is "+momName[2]+" and is "+parentAge+". Your dad is "+dadName[1]+" and is "+dadAge+". Your mom is a "+job[1]+". Your dad is a "+job[8]+"."
} else if (name > 65 && name < 70) {
    document.getElementById("test00").innerText = "Your mom is "+momName[3]+" and is "+parentAge+". Your dad is "+dadName[2]+" and is "+dadAge+". Your mom is a "+job[2]+". Your dad is a "+job[10]+"."
} else if (name > 70 && name < 75) {
    document.getElementById("test00").innerText = "Your mom is "+momName[2]+" and is "+parentAge+". Your dad is "+dadName[4]+" and is "+dadAge+". Your mom is a "+job[10]+". Your dad is a "+job[3]+"."
} else if (name > 75 && name < 80) {
    document.getElementById("test00").innerText = "Your mom is "+momName[3]+" and is "+parentAge+". Your dad is "+dadName[1]+" and is "+dadAge+". Your mom is a "+job[9]+". Your dad is a "+job[7]+"."
} else if (name > 80 && name < 85) {
    document.getElementById("test00").innerText = "Your mom is "+momName[2]+" and is "+parentAge+". Your dad is "+dadName[3]+" and is "+dadAge+". Your mom is a "+job[4]+". Your dad is a "+job[9]+"."
} else if (name > 85 && name < 90) {
    document.getElementById("test00").innerText = "Your mom is "+momName[3]+" and is "+parentAge+". Your dad is "+dadName[4]+" and is "+dadAge+". Your mom is a "+job[9]+". Your dad is a "+job[10]+"."
} else if (name > 90 && name < 95) {
    document.getElementById("test00").innerText = "Your mom is "+momName[4]+" and is "+parentAge+". Your dad is "+dadName[1]+" and is "+dadAge+". Your mom is a "+job[4]+". Your dad is a "+job[4]+"."
} else if (name > 95 && name < 100) {
    document.getElementById("test00").innerText = "Your mom is "+momName[2]+" and is "+parentAge+". Your dad is "+dadName[4]+" and is "+dadAge+". Your mom is a "+job[4]+". Your dad is a "+job[4]+"."
}


let age = 0

function ageButton() {
    document.getElementById("test").innerText = ++age
    //Generates Death Statements
    if (name < 10 && age === 35) {
        document.writeln("You died from small pox.")
    }
    if (name < 20 && age === 85) {
        document.writeln("You died of old age, The best way to go.")
    }
    if (name < 30 && age === 73) {
        document.writeln("You died from an infectous disease known as Mumps.")
    }
    if (name < 40 && age === 105) {
        document.writeln("You died from an alergic reaction to cake.")
    }
    if (name < 50 && age === 47) {
        document.writeln("You died from being hit by a car.")
    }
    if (name < 60 && age === 57) {
        document.writeln("You died from standing in the middle of a warfeild in Russia.")
    }
    if (name < 70 && age === 78) {
        document.writeln("You died from being kicked out of your house and starving")
    }
    if (name < 80 && age === 83) {
        document.writeln("You died of old age, The best way to go.")
    }
    if (name < 90 && age === 134) {
        document.writeln("You died of EXTREME old age, You were the oldest living person.")
    }
    if (name < 100 && age === 95) {
        document.writeln("You died of old age, The best way to go.")
    }
    
    //Generates School Statements
    if (age === 5) {
        document.getElementById("test1").style.color = "red"
        document.getElementById("test1").innerText="You started elementary school."
    }
    if (age === 14) {
        document.getElementById("test2").style.color = "red"
        document.getElementById("test2").innerText = "You started high school."
    }
    if (age === 18) {
        document.getElementById("test3").style.color = "red"
        document.getElementById("test3").innerText = "You graduated high school. Time to go to college (If you wish to not go to college, just add an age)."
    }
    if (age === 22) {
        document.getElementById("test5").style.color = "red"
        document.getElementById("test5").innerText = "You graduated from college (If you didn't go to college or you dropped out, just ignore this cause you're a loser)."
    }
    //Generates Moms Death Statements
    if (name < 10 && age === 30) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died of old age. You went to her funeral."    
    }
    if (name > 20 && name < 30 && age === 38) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died of old age. You went to her funeral."    
    }
    if (name > 30 && name < 40 && age === 23) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died of lung cancer. You went to her funeral."    
    }
    if (name > 40 && name < 50 && age === 46) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died from being hit by a car. You went to her funeral."    
    }
    if (name > 50 && name < 60 && age === 56) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died of a heart attack. You went to her funeral."    
    }
    if (name > 60 && name < 70 && age === 16) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died of rectum cancer. You went to her funeral."    
    }
    if (name > 70 && name < 80 && age === 32) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died of old age. You went to her funeral."    
    }
    if (name > 80 && name < 90 && age === 6) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died from getting stabbed in an alleyway like Batman's parents. You went to her funeral."    
    }
    if (name > 90 && name < 100 && age === 41) {
        document.getElementById("test10").style.color = "orange"
        document.getElementById("test10").innerText = "Your mom died of old age. You went to her funeral."    
    }
    //Generates Dads Death Statements
    if (name < 10 && age === 37) {
        document.getElementById("test11").style.color = "orange"
        document.getElementById("test11").innerText = "Your dad died of old age. You went to his funeral."    
    }
    if (name > 10 && name < 20 && age === 34) {
        document.getElementById("test11").style.color = "orange"
        document.getElementById("test11").innerText = "Your dad died of Cardiac Arrest. You went to his funeral."    
    }
    if (name > 20 && name < 30 && age === 43) {
        document.getElementById("test11").style.color = "orange"
        document.getElementById("test11").innerText = "Your dad died from a Jigsaw Trap, So sad. You went to his funeral."    
    }
    if (name > 30 && name < 40 && age === 57) {
        document.getElementById("test11").style.color = "orange"
        document.getElementById("test11").innerText = "Your dad died from the bubonic plague. You went to his funeral."    
    }
    if (name > 40 && name < 50 && age === 53) {
        document.getElementById("test11").style.color = "orange"
        document.getElementById("test11").innerText = "Your dad died from being rammed by a deer. You went to his funeral."    
    }
    if (name > 80 && name < 100 && age === 44) {
        document.getElementById("test11").style.color = "orange"
        document.getElementById("test11").innerText = "Your dad died of old age. You went to his funeral."    
    }
}

//Generates College Options

function collegeButton() {
    if (age === 18) {
        document.getElementById("test4").style.color = "red"
        document.getElementById("test4").innerText = "You went to school for Law."
    }
}

function collegeButton1() {
    if (age === 18) {
        document.getElementById("test4").style.color = "red"
        document.getElementById("test4").innerText = "You went to school for Computer Science."
    }
}

function collegeButton2() {
    if (age === 18) {
        document.getElementById("test4").style.color = "red"
        document.getElementById("test4").innerText = "You went to school for Nursing."
    }
}

function collegeButton3() {
    if (age === 18) {
        document.getElementById("test4").style.color = "red"
        document.getElementById("test4").innerText = "You went to school for Education."
    }
}

function collegeButton4() {
    if (age === 18) {
        document.getElementById("test4").style.color = "red"
        document.getElementById("test4").innerText = "You went to school for Business."
    }
}

function collegeButton5() {
    if (age === 18) {
        document.getElementById("test4").style.color = "red"
        document.getElementById("test4").innerText = "You went to school for Communication."
    }
}

function dropOut() {
    if (age > 18 && age < 22) {
        document.getElementById("test44").style.color = "red"
        document.getElementById("test44").innerText = "You dropped out of school."
    }
}

function lawJob1() {
    if (age === 22) {
        document.getElementById("test12").style.color = "red"
        document.getElementById("test12").innerText = "You became a Lawyer. Your salary is $89,354."
    }
}

</script>

Online CSS Editor

css

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<style>
div
{
   width:100px;
   height:75px;
   background-color:red;
   border:1px solid black;
}
#div2
{
   transform:rotate(30deg);
   -ms-transform:rotate(30deg); /* IE 9 */
   -moz-transform:rotate(30deg); /* Firefox */
   -webkit-transform:rotate(30deg); /* Safari and Chrome */
   -o-transform:rotate(30deg); /* Opera */
   background-color:yellow;
}
</style>
</head>
<body>
<div>Hello, World!</div>
<div id="div2">Hello, CSS3!</div>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.