Skip to content

Instantly share code, notes, and snippets.

@dannyfritz
Last active August 29, 2015 14:06
Show Gist options
  • Save dannyfritz/76f1d077bf2eabb60abd to your computer and use it in GitHub Desktop.
Save dannyfritz/76f1d077bf2eabb60abd to your computer and use it in GitHub Desktop.
My Website!
var $body = $(document.body);
var $welcome = $('<h1>My Website!!!</h1>');
$body.append($welcome);
var $awesome = $('<p>This is so awesome!</p>');
$body.append($awesome);
<!DOCTTYPE html>
<html>
<head>
<title>My Website!</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
<script src="app.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment