Created
June 22, 2011 04:06
-
-
Save creationix/1039480 to your computer and use it in GitHub Desktop.
Simple HTML App template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Box(width, height) { | |
this.width = width; | |
this.height = height; | |
} | |
Box.prototype.getArea = function () { | |
return this.width * this.height; | |
} | |
var box = new Box(3, 5); | |
var area = box.getArea(); | |
document.body.innerText = "The area is " + area; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Sample Page</title> | |
<link rel="stylesheet" href="style.css"/> | |
</head> | |
<body> | |
<script src="app.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
color: #faa; | |
background-color: #333; | |
font-size: 100px; | |
text-align: center; | |
padding: 40px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment