Guest User

Untitled

a guest
Sep 17th, 2014
35
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
  10.                   // + data.name + '<img style="width:10px;height:10px;" src="'+data.gender+'.png">'
  11.                   + '<br><small>' + data.age + ', ' + data.country + '</small><br>' + '</div></div></div>'),
  12.                 maxTimeout = 4000,
  13.                 minimumTimeout = 1000,
  14.               $('#equadox-nick-box').prepend(create);
  15.               $('.equadox-nick-social-area').last().fadeOut(400);
  16.               setTimeout(function() {
  17.                 try {
  18.                   $('.equadox-nick-social-area').last().remove();
  19.                 } catch (error) {
  20.                   alert("error")
  21.                 }
  22.               }, 400);
  23.               setTimeout(function() {
  24.                 try {
  25.                   $('.eq-appear-social-pic-new').animate({
  26.                     width: 'toggle'
  27.                   }, 350).removeClass('eq-appear-social-pic-new');
  28.                 } catch (error) {
  29.                   alert("error")
  30.                 }
  31.               }, 400);
  32.               i += 1;
  33.               if (i >= 5) {
  34.                 timeouter = Math.floor(Math.random() * maxTimeout);
  35.                 if (timeouter <= minimumTimeout) timeouter = minimumTimeout;
  36.               } else timeouter = 400;
  37.               setTimeout(function() {
  38.                 try {
  39.                   this.loop();
  40.                 } catch (error) {
  41.                   alert("error")
  42.                 }
  43.               }.bind(eq_social_slider), timeouter);
  44.             } catch (error) {
  45.               alert("error")
  46.             }
  47.           });
  48.         } catch (error) {
  49.           alert("error")
  50.         }
  51.       }
  52.     };
  53.     try {
  54.       eq_social_slider.loop();
  55.     } catch (error) {
  56.       alert("error")
  57.     }
  58.   } catch (error) {
  59.     alert("error")
  60.   }
  61. };
  62. try {
  63.   eq_social_slideA();
  64. } catch (error) {
  65.   alert("error")
  66. }
Advertisement
Add Comment
Please, Sign In to add comment