facebook share button added

This commit is contained in:
Harry Bomrah 2014-02-21 17:04:24 +08:00
parent 112958ac18
commit 0587c118d1
2 changed files with 9 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -39,3 +39,12 @@
</div> </div>
<%= share_links(@bulletin, 'announcement') %> <%= share_links(@bulletin, 'announcement') %>
<a href="" target="_blank" class="fb-share-button">
<%= image_tag("announcement/fbn.png",:width=>30, :height=>30) %>
</a>
<script type="text/javascript">
(function(){
$(".fb-share-button").attr("href","https://www.facebook.com/sharer/sharer.php?u=" + window.location.href);
})();
</script>