Created
June 5, 2013 16:32
-
-
Save joyrexus/5715294 to your computer and use it in GitHub Desktop.
Web page w/ inline coffeescript.
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> | |
<meta charset="utf-8"> | |
<script src="http://joyrexus.spc.uchicago.edu/resources/coffee-script.js"></script> | |
<style> | |
body { | |
font-family: 'Helvetica Neue'; | |
font-weight: 100; | |
color: #555; | |
} | |
div { | |
display: block; | |
margin-top: 100px; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
#greet { | |
text-align: center; | |
font-size: 400px; | |
width: 450px; | |
} | |
</style> | |
<body> | |
<div id="greet"></div> | |
<script type="text/coffeescript"> | |
$ = (id) -> document.getElementById id | |
$('greet').innerText = "hi!" | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment