put social share links back into footer

This commit is contained in:
Tyler Renelle 2013-02-09 10:40:05 -05:00
parent f49a532fcd
commit aaf94d9a4d
2 changed files with 18 additions and 1 deletions

View file

@ -34,6 +34,8 @@ loadJavaScripts = (model) ->
# Each file getsload asyncronously via $.getScript, so it doesn't bog page-load
unless model.get('_view.mobileDevice')
$.getScript("https://s7.addthis.com/js/250/addthis_widget.js#pubid=lefnire");
# Google Charts
$.getScript "https://www.google.com/jsapi", ->
# Specifying callback in options param is vital! Otherwise you get blank screen, see http://stackoverflow.com/a/12200566/362790

View file

@ -362,7 +362,22 @@
<!-- Footer -->
<footer class=footer>
<div class=container>
{#unless equal(_view.nodeEnv, 'production')}
{#if equal(_view.nodeEnv, 'production')}
<table class=pull-right><tr>
<td><!-- Github -->
<iframe src="/github-btns/github-btn.html?user=lefnire&repo=habitrpg&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="85px" height="20px"></iframe>
</td>
<td>
<div class="addthis_toolbox addthis_default_style "
addthis:url="http://habitrpg.com"
addthis:title="HabitRPG - Gamify Your Life">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet" tw:via="lefnire"></a>
</div>
</td>
</tr></table>
{else}
<div class='pull-right'>
<button class='btn' x-bind="click:emulateNextDay">Emulate Next Day</button>
<button class='btn' x-bind="click:cheat">Add GP & Exp</button>