all repos — h3rald @ e341a342171279421b0d2edfb759795c75d0c97f

The sources of https://h3rald.com

layouts/article_buttons.erb

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
-----
filter: erb
-----
<script type="text/javascript">
	var dzone_url = '<%= url_for @item %>';
	var dzone_title = '<%= @item[:title]%>';
	var dzone_blurb = '<%= @item[:summary] if @item[:summary] %>';
	var dzone_style = '2';
	var digg_url = '<%= url_for @item %>';
	var digg_skin = 'compact';
	var digg_window = 'new';
	var tweetmeme_style = 'compact';
	function delicious_counter(data) {
		var posts = data[0].total_posts;
		if (!posts) return;
		var text = posts+" bookmarks";
		if (posts == 1) { text = posts+" bookmark" };
		document.getElementById('delcounter').innerHTML = text;
	}
</script>
<ul class="article-buttons">
	<li><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></li>
	<li><script type="text/javascript" src="http://www.reddit.com/button.js?t=1"></script></li>
	<li><script type="text/javascript" src="http://widgets.dzone.com/links/widgets/zoneit.js"></script> </li>
	<li><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></li>
	<li><a href="http://www.stumbleupon.com/submit?url=<%= url_for @item %>"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_su_gray.gif" alt=""></a></li>
	<li>
	<span id="delcounter">0 bookmarks</span><img src="http://static.delicious.com/img/delicious.small.gif" /><a href="http://delicious.com/post?url=<%= url_for @item %>&amp;title=<%= @item[:title]%>">Save</a>
	</li>
</ul>