Skip to content
Browse files

Adds Social Share

  • Loading branch information...
1 parent d568b62 commit 5512981c22864ce6a96eb8b3b3f592fff6de3dbc @asmedrano committed
Showing with 22 additions and 0 deletions.
  1. +15 −0 html5-boilerplate/js/main.js
  2. +7 −0 style.css
View
15 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() {
var url= location.href;
var title= document.title;
View
7 style.css
@@ -23,10 +23,17 @@ HTML Boilerplate styles can be found in the html5-boilerplate/css directory.
float: left;
}
+img.alignleft{
+ padding-right:10px;
+}
+
.alignright {
float: right;
}
+
+
+
.wp-caption {
border: 1px solid #ddd;
text-align: center;

0 comments on commit 5512981

Please sign in to comment.
Something went wrong with that request. Please try again.