Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Adds Social Share
Browse files Browse the repository at this point in the history
  • Loading branch information
asmedrano committed Oct 3, 2012
1 parent d568b62 commit 5512981
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions html5-boilerplate/js/main.js
@@ -1,3 +1,18 @@
$(function(){

$(".facebook-btn").click(function(e){
e.preventDefault();
fb_share();
});

$(".tweet-btn").click(function(e){
e.preventDefault();
twitter_share();
});

});


function fb_share() { function fb_share() {
var url= location.href; var url= location.href;
var title= document.title; var title= document.title;
Expand Down
7 changes: 7 additions & 0 deletions style.css
Expand Up @@ -23,10 +23,17 @@ HTML Boilerplate styles can be found in the html5-boilerplate/css directory.
float: left; float: left;
} }


img.alignleft{
padding-right:10px;
}

.alignright { .alignright {
float: right; float: right;
} }





.wp-caption { .wp-caption {
border: 1px solid #ddd; border: 1px solid #ddd;
text-align: center; text-align: center;
Expand Down

0 comments on commit 5512981

Please sign in to comment.