Skip to content

Commit 08eb042

Browse files
author
Rafael J. Staib
committed
Add facebook like button
1 parent 9ccfd4c commit 08eb042

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ <h2>A powerful jQuery wizard plugin that supports accessibility and HTML5.</h2>
3535
<div class="share">
3636
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://rstaib.github.io/jquery-steps/" data-text="jQuery Steps" data-via="RafaelStaib" data-hashtags="jquerysteps">Tweet</a>
3737
<iframe src="http://ghbtns.com/github-btn.html?user=rstaib&repo=jquery-steps&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
38+
<div class="fb-like" data-href="http://rstaib.github.io/jquery-steps" data-send="false" data-layout="button_count" data-width="110" data-show-faces="false" data-font="arial"></div>
3839
</div>
3940
</div>
4041
</header>
@@ -103,10 +104,14 @@ <h3>License</h3>
103104
</div>
104105
</div>
105106

107+
<div id="fb-root"></div>
106108
<script>
107-
// GitHub Star Button
109+
// Twitter Star Button
108110
!function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js, fjs); } }(document, 'script', 'twitter-wjs');
109111

112+
// Facebook Like Button
113+
(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
114+
110115
// Google Analytics
111116
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
112117
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

0 commit comments

Comments
 (0)