Skip to content

Instantly share code, notes, and snippets.

@Byloor
Byloor / Geometrizer.html
Last active Apr 24, 2017
Wiredelta Challenge (version 2)
View Geometrizer.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css">
<title>Geometrizer</title>
</head>
<body>
<div>
<div id="i">Create a Circle!!</div>
@Byloor
Byloor / send1.js
Last active Apr 24, 2017
Wiredelta challenge(version 1)
View send1.js
function CalculateAge(){
var birthYear = parseInt(document.getElementById('age1').value)
var currentYear = new Date().getFullYear();
var x = currentYear - birthYear;
var y=x-1;
if( x > -1)
document.getElementById('id1').innerHTML = "you are either " + y + " or " + x + " years old";
else
alert("invalid input")
}
You can’t perform that action at this time.