Guest User

Untitled

a guest
Sep 17th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var eq_social_slideA = function eq_social_sliderB() {
  2.   try {
  3.     var i = 0;
  4.     var eq_social_slider = {
  5.       loop: function loop(data) {
  6.         try {
  7.           $.getJSON('?equadox_getsocial=1', function(data) {
  8.             try {
  9.               var create = $('<div class="equadox-nick-social-area eq-appear-social-pic-new">' + '<div class="socimgdiv">' + '<img class="socimg" src="' + data.pic + '">' + '<div class="infotxt">' + data.name  + '<br><small>' + data.age + ', ' + data.country + '</small><br>' + '</div></div></div>'),
  10.                 maxTimeout = 4000,
  11.                 minimumTimeout = 1000;
  12.               $('#equadox-nick-box').prepend(create);
  13.               $('.equadox-nick-social-area').last().fadeOut(400);
  14.               setTimeout(function() {
  15.                 try {
  16.                   $('.equadox-nick-social-area').last().remove();
  17.                 } catch (error) {
  18.                   alert("error")
  19.                 }
  20.               }, 400);
  21.               setTimeout(function() {
  22.                 try {
  23.                   $('.eq-appear-social-pic-new').animate({
  24.                     width: 'toggle'
  25.                   }, 350).removeClass('eq-appear-social-pic-new');
  26.                 } catch (error) {
  27.                   alert("error")
  28.                 }
  29.               }, 400);
  30.               i += 1;
  31.               if (i >= 5) {
  32.                 timeouter = Math.floor(Math.random() * maxTimeout);
  33.                 if (timeouter <= minimumTimeout) timeouter = minimumTimeout;
  34.               } else timeouter = 400;
  35.               setTimeout(function() {
  36.                 try {
  37.                   this.loop();
  38.                 } catch (error) {
  39.                   alert("error")
  40.                 }
  41.               }.bind(eq_social_slider), timeouter);
  42.             } catch (error) {
  43.               alert("error")
  44.             }
  45.           });
  46.         } catch (error) {
  47.           alert("error")
  48.         }
  49.       }
  50.     };
  51.     try {
  52.       eq_social_slider.loop();
  53.     } catch (error) {
  54.       alert("error")
  55.     }
  56.   } catch (error) {
  57.     alert("error")
  58.   }
  59. };
  60. try {
  61.   eq_social_slideA();
  62. } catch (error) {
  63.   alert("error")
  64. }
Advertisement
Add Comment
Please, Sign In to add comment