Skip to content

Instantly share code, notes, and snippets.

@sherbondy
Created January 31, 2010 06:27
Show Gist options
  • Save sherbondy/290930 to your computer and use it in GitHub Desktop.
Save sherbondy/290930 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>A Javascript Hack, For Neven</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>
<body>
{block:Posts}
<p>A post.</p>
<p class="author">Posted by <span class="{PostAuthorName}">{PostAuthorName}</span></p>
{/block:Posts}
<script type="text/javascript">
$(function() {
// have one of these for each contributor
$(".author .tooepic").text("Ethan Sherbondy");
$(".author .john-appleseed").text("John Appleseed");
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment