Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix index view

  • Loading branch information...
commit 6f5fa74377031b788ac8d9d857d0d3d08af17bd7 1 parent 763c832
@travisjeffery authored
Showing with 17 additions and 16 deletions.
  1. +11 −0 public/javascripts/clicky.js
  2. +6 −16 views/index.jade
View
11 public/javascripts/clicky.js
@@ -0,0 +1,11 @@
+var clicky_site_ids = clicky_site_ids || [];
+clicky_site_ids.push(66594577);
+(function() {
+ var s = document.createElement('script');
+ s.type = 'text/javascript';
+ s.async = true;
+ s.src = '//static.getclicky.com/js';
+ ( document.getElementsByTagName('head')[0] ||
+ document.getElementsByTagName('body')[0] ).appendChild( s );
+
+})();
View
22 views/index.jade
@@ -1,4 +1,5 @@
-h1 Urban Dictionary (Unofficial) API
+h1
+ | Urban Dictionary (Unofficial) API
p
| Use it by sending requests to:
@@ -9,19 +10,8 @@ code
p
| — <a href="http://travisjeffery.com/">Travis Jeffery</a>
-<a href="https://twitter.com/travisjeffery" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @travisjeffery</a>
-<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+a(href="https://twitter.com/travisjeffery", data-show-count="false", data-size="large", class="twitter-follow-button") Follow @travisjeffery
-<script type="text/javascript">
-var clicky_site_ids = clicky_site_ids || [];
-clicky_site_ids.push(66594577);
-(function() {
- var s = document.createElement('script');
- s.type = 'text/javascript';
- s.async = true;
- s.src = '//static.getclicky.com/js';
- ( document.getElementsByTagName('head')[0] ||
- document.getElementsByTagName('body')[0] ).appendChild( s );
-
-})();
-</script>
+script !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+
+script(src="/javascripts/clicky.js")
Please sign in to comment.
Something went wrong with that request. Please try again.