Skip to content

Instantly share code, notes, and snippets.

@joyrexus
Created June 5, 2013 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joyrexus/5715294 to your computer and use it in GitHub Desktop.
Save joyrexus/5715294 to your computer and use it in GitHub Desktop.
Web page w/ inline coffeescript.
<!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