Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var eq_social_slideA = function eq_social_sliderB() {
- try {
- var i = 0;
- var eq_social_slider = {
- loop: function loop(data) {
- try {
- $.getJSON('?equadox_getsocial=1', function(data) {
- try {
- 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
- // + data.name + '<img style="width:10px;height:10px;" src="'+data.gender+'.png">'
- + '<br><small>' + data.age + ', ' + data.country + '</small><br>' + '</div></div></div>'),
- maxTimeout = 4000,
- minimumTimeout = 1000,
- $('#equadox-nick-box').prepend(create);
- $('.equadox-nick-social-area').last().fadeOut(400);
- setTimeout(function() {
- try {
- $('.equadox-nick-social-area').last().remove();
- } catch (error) {
- alert("error")
- }
- }, 400);
- setTimeout(function() {
- try {
- $('.eq-appear-social-pic-new').animate({
- width: 'toggle'
- }, 350).removeClass('eq-appear-social-pic-new');
- } catch (error) {
- alert("error")
- }
- }, 400);
- i += 1;
- if (i >= 5) {
- timeouter = Math.floor(Math.random() * maxTimeout);
- if (timeouter <= minimumTimeout) timeouter = minimumTimeout;
- } else timeouter = 400;
- setTimeout(function() {
- try {
- this.loop();
- } catch (error) {
- alert("error")
- }
- }.bind(eq_social_slider), timeouter);
- } catch (error) {
- alert("error")
- }
- });
- } catch (error) {
- alert("error")
- }
- }
- };
- try {
- eq_social_slider.loop();
- } catch (error) {
- alert("error")
- }
- } catch (error) {
- alert("error")
- }
- };
- try {
- eq_social_slideA();
- } catch (error) {
- alert("error")
- }
Advertisement
Add Comment
Please, Sign In to add comment