Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Add click for new excuse
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbassett committed Jul 21, 2014
1 parent 4aae177 commit c5be941
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/html.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ <h1>{{ excuse }}</h1>
</nav>
</footer>

<script>
function excuses(excuse) {
$("h1").text(excuse.excuse)
}

$(document).click(function(){
var s = document.createElement("script");
s.src = "//codingexcuses.com?jsonp";
$("head").append(s);
});
</script>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
Expand Down

0 comments on commit c5be941

Please sign in to comment.