Concatenate Facebook Like/Tweet/+1 social buttons javascript for external loading - repost
€8-30 EUR
Cancelled
Posted over 10 years ago
€8-30 EUR
Paid on delivery
I need you to modify the following blocks of code, respectively, Facebook Like , Twitter Tweet and Google +1 social plugins. All the javascript used should be placed into 1 .js file that I can use instead of calls for 3 separate buttons.
Do not use external tools such as AddThis, ShareThis etc.
Javascript/jQuery only - If you use jQuery you will have to include it in the single file.
Google Javascript:
(function() {
var po = [login to view URL]('script');
[login to view URL] = 'text/javascript'; [login to view URL] = true;
[login to view URL] = '[login to view URL]';
var s = [login to view URL]('script')[0];
[login to view URL](po, s);
})
();
Facebook Javascript:
[login to view URL] = function() {
[login to view URL](FB);
};
(function(d, s, id) {
var js, fjs = [login to view URL](s)[0];
if ([login to view URL](id)) return;
js = [login to view URL](s); [login to view URL] = id;
[login to view URL] = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=xxxxxxxxxxxxxxxx";
[login to view URL](js, fjs);
}(document, 'script', 'facebook-jssdk'));
Twitter Javascript:
!function(d,s,id){
var js,fjs=[login to view URL](s)[0],p=/^http:/.test([login to view URL])?'http':'https';
if(![login to view URL](id)) {
js=[login to view URL](s);
js.id=id;
js.src=p+'://plat`enter code here`[login to view URL]';
[login to view URL](js,fjs);
}
}
(document, 'script', 'twitter-wjs');