"Share Facebook/Google+/ Other jQuery Bootstrap "
Bootstrap 3.3.0 Snippet by progjonner

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> </div> </div> <br /><br /><br /><br /> <footer></footer>
.social:hover { -webkit-transform: scale(1.1); -moz-transform: scale(1.1); -o-transform: scale(1.1); } .social { -webkit-transform: scale(0.8); /* Browser Variations: */ -moz-transform: scale(0.8); -o-transform: scale(0.8); -webkit-transition-duration: 0.5s; -moz-transition-duration: 0.5s; -o-transition-duration: 0.5s; } /* Multicoloured Hover Variations */ #social-fb:hover { color: #3B5998; } #social-tw:hover { color: #4099FF; } #social-gp:hover { color: #d34836; } #social-em:hover { color: #f39c12; } #social-ln:hover { color: #66b3ff; }
$(document).ready(function(){ if(!$('#fontAwesome').length){ $('head').append($('<link/>',{'href':'//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css','rel':'stylesheet','id':'fontAwesome'})); } var data = [ { 'href':'https://www.facebook.com/', 'id':'social-fb', 'class':'fa fa-facebook-square fa-3x social', 'title':'Facebook' }, { 'href':'https://twitter.com/bootsnipp', 'id':'social-tw', 'class':'fa fa-twitter-square fa-3x social', 'title':'Twitter' }, { 'href':'https://plus.google.com/', 'id':'social-gp', 'class':'fa fa-google-plus-square fa-3x social', 'title':'G+' }, { 'href':'https://ie.linkedin.com/', 'id':'social-ln', 'class':'fa fa-linkedin-square fa-3x social', 'title':'Linkedin' }, { 'href':'mailto:info@gmail.com', 'id':'social-em', 'class':'fa fa-envelope-square fa-3x social', 'title':'Email Me' } ]; function info(elm, collection){ $(elm).append($('<div/>',{'class':'container','id':'container-footer'})); $('#container-footer').append($('<div/>',{'class':'text-center center-block','id':'center-block'})); $('#center-block').append($('<div/>',{'class':'container','id':'share'})); $('#share').append($('<div/>',{'class':'row','id':'share-row'})); $('#share-row').append($('<div/>',{'class':'col-lg-4 col-md-4 col-sm-4 col-xs-4 col-lg-4-offset-4 col-md-4-offset-4 col-sm-4-offset-4','id':'facebook'})); $('#share-row').append($('<div/>',{'class':'col-lg-4 col-md-4 col-sm-4 col-xs-4 col-lg-4-offset-4 col-md-4-offset-4 col-sm-4-offset-4','id':'links'})); $('#share-row').append($('<div/>',{'class':'col-lg-4 col-md-4 col-sm-4 col-xs-4 col-lg-4-offset-4 col-md-4-offset-4 col-sm-4-offset-4','id':'google'})); for(var x in collection){ $('#links').append($('<a/>',{'href':collection[x].href,'data-toggle':'tooltip','title':collection[x].title, 'html':'<i id="'+collection[x].id+'" class="'+collection[x].class+'"/>'})); } setTimeout(function(){ if(!$('#google-script').length){ $('head').append($('<script/>',{'src':'https://apis.google.com/js/platform.js','async':true,'defer':true,'id':'google-script'})); } $('#google').append($('<div/>',{'class':'g-plus', 'data-action':'share', 'data-annotation':'bubble', 'data-height':24, 'data-href':'http://myhomenetwork.zapto.org'})); $('#facebook').append($('<iframe/>',{ 'src':'https://www.facebook.com/plugins/share_button.php?href=http%3A%2F%2Fmyhomenetwork.zapto.org&layout=button_count&size=large&mobile_iframe=true&appId=1829551920661477&width=60&height=22', 'width':'60', 'height':'22', 'style':'border:none;overflow:hidden', 'scrolling':'no', 'frameborder':0, 'allowTransparency':true})); }, 500); };//end /* *Load */ info('footer',data); });

Related: See More


Questions / Comments: