‘). AppendTo ($ (‘ .fb_socialContainer ‘)); // September FB = undefined is Necessary Because there is a conflict Among sdk used by the FB Like button // and old share button That may Already be included in the page FB = undefined; GooglePlusOne} var = $ (‘
‘). AppendTo ($ (‘.google_socialContainer’)); $ (‘ Recommend on Google ‘). AppendTo ($ (‘.google_socialContainer’)); onGoogleSDKGot var = function () {gapi.plusone.render ($ (“#googlePlusOne”.) get (0), {“size”, “medium”, “href”: ‘http://www.edilportale.com’ , “count”: “true”}); }; if (typeof (gapi)! = ‘undefined’) {onGoogleSDKGot.call (); .ajax} Else {$ ({async: false, type: “GET”, url: “https://apis.google.com/js/plusone.js”, data: null, error: function (date, textStatus, jqXHR) {}, success: function (data, textStatus, jqXHR) {onGoogleSDKGot.call ();}, dataType: ‘script’}); }; twetterFollow var = $ (”) .appendTo ($ (‘.twitter_socialContainer’));
extractParamFromUri var = function (uri, paramName) {
if (! uri) {
return;
}
var uri = uri.split (‘#’) [0]; // Remove anchor.
var parts = uri.split (‘?’); // Check for query params.
if (parts.length == 1) {
return;
}
var query = decodeURI (parts [1]);
Find // url param.
paramName + = ‘=’;
var params = query.split (‘& amp;’);
for (var i = 0, param, param = params [i]; ++ i) {
if (param.indexOf (paramName) === 0) {
return unescape (param.split (‘=’) [1]);
}
}
};
onTwitterSDKGot var = function () {
try {
twttr.events.unbind (‘follow’, null);
}
catch (e) {}
twttr.events.bind (‘follow’, function (event) {
// Debugger;
if (event) {
var TargetURL;
if (event.target & amp; & amp; event.target.nodeName == ‘IFRAME’) {
TargetURL = extractParamFromUri (event.target.src, ‘url’);
}
_gaq.push (['_ trackSocial', 'twitter', 'tweet', TargetURL]);
}
});
};
$ .ajax ({
async: false,
type: “GET”,
url: “http://platform.twitter.com/widgets.js”
Date: null,
error: function (date, textStatus, jqXHR) {
},
success: function (data, textStatus, jqXHR) {
//onTwitterSDKGot.call ();
},
dataType: ‘script’
});
// Debugger;
facebookLike var = $ (‘ ‘). appendTo ($ (‘ .fb_socialContainer ‘)); onFacebookSDKGot var = function () {FB.init ({appId: ‘132,616,766,822,932’, status: true, cookie: true, XFBML: true}); FB.XFBML.parse ($ (‘#fbEdilLike’.) Get (0)); FbLoginStatus // function (response) {// debugger; FB.getLoginStatus (function (response) {if (response.status! = “Unknown”) {$ (‘.fb_socialContainer’). Css ({‘height’: ’70px’}) $ (‘.newSocialContainer’). css ({‘height’: ‘205px’});} else {$ (‘.fb_socialContainer’). css ({‘height’: ’25px’}) $ (‘.newSocialContainer’). css ({‘height ‘:’ 160px ‘});}}); //} //FB.getLoginStatus(fbLoginStatus); }; cultureExtended = ‘en_US’; if (typeof (FB)! = ‘undefined’) {onFacebookSDKGot.call (); .ajax} Else {$ ({async: false, type: “GET”, url: “https://connect.facebook.net/” cultureExtended + + “/all.js”, data: null, error: function ( date, textStatus, jqXHR) {}, success: function (data, textStatus, jqXHR) {onFacebookSDKGot.call ();}, dataType: ‘script’}); }} $ (Window) .load (function () {setTimeout (showSocialButtons, 200);});
extractParamFromUri var = function (uri, paramName) {
if (! uri) {
return;
}
var uri = uri.split (‘#’) [0]; // Remove anchor.
var parts = uri.split (‘?’); // Check for query params.
if (parts.length == 1) {
return;
}
var query = decodeURI (parts [1]);
Find // url param.
paramName + = ‘=’;
var params = query.split (‘& amp;’);
for (var i = 0, param, param = params [i]; ++ i) {
if (param.indexOf (paramName) === 0) {
return unescape (param.split (‘=’) [1]);
}
}
};
onTwitterSDKGot var = function () {
try {
twttr.events.unbind (‘follow’, null);
}
catch (e) {}
twttr.events.bind (‘follow’, function (event) {
// Debugger;
if (event) {
var TargetURL;
if (event.target & amp; & amp; event.target.nodeName == ‘IFRAME’) {
TargetURL = extractParamFromUri (event.target.src, ‘url’);
}
_gaq.push (['_ trackSocial', 'twitter', 'tweet', TargetURL]);
}
});
};
$ .ajax ({
async: false,
type: “GET”,
url: “http://platform.twitter.com/widgets.js”
Date: null,
error: function (date, textStatus, jqXHR) {
},
success: function (data, textStatus, jqXHR) {
//onTwitterSDKGot.call ();
},
dataType: ‘script’
});
// Debugger;
facebookLike var = $ (‘
No comments:
Post a Comment