Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<!DOCTYPE html>
<html>
<head>
<!-- Compiled and minified CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/css/materialize.min.css">
<title>Factorial</title>
</head>
<style>
#content {
text-align: center;
width: 800px;
margin: 20px auto;
padding: 10px 80px;
}
body {
background-color: white;
font-family: 'Roboto', sans-serif;
}
#factorial-header {
color: #ff1744;
font-weight: lighter;
}
h4 {
color: black;
padding: 5px;
font-weight: lighter;
}
#miniHead {
font-weight: 300;
}
#evaluation {
margin: auto;
margin-bottom: 50px;
margin-top: 30px;
width: 500px;
height: 226px;
min-height: 226px;
overflow: hidden;
}
#evaluation:hover {
cursor: pointer;
}
#num {
font-weight: 300;
margin-left: 7px;
width: 200px;
}
#profileLink {
position: absolute;
bottom: 10px;
right: 10px;
font-family: 'Roboto', sans-serif;
font-weight: lighter;
}
</style>
<body>
<div class="z-depth-4" id="content">
<h1 id="factorial-header">Factorial Calculator</h1>
<h4>Computes the factorial of a number</h4>
<div>
<span id="miniHead">Compute Factorial:</span> <input id="num" type="text"><br />
<a onclick="calculate_fact()" class="waves-effect waves-light btn"><i class="material-icons left">cloud</i>calculate</a>
</div>
<div class="z-depth-1" onclick="expand_eval()" id="evaluation">
</div>
<p id="profileLink">
Github: <a href="http://github.com/jup13001">Profile</a>
</p>
</div>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/js/materialize.min.js"></script>
<script src="fact.js"></script>
</body>
</div>
</html>