daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(sSession = sKey){
  2.             aPeople.slice(this.jPerson);
  3.         }
  4.    
  5. $("#btnSkip").click(function() {
  6.     $.getJSON('include/users.txt', function(aPeople){
  7.  
  8.             var getPerson = function(id) {
  9.                 var jPerson = aPeople[id]
  10.                 var sID = jPerson.id
  11.                 var sName = jPerson.name
  12.                 var sImage = jPerson.picture                
  13.                 var sSession = $('#mySession').text()
  14.                 var sKey = jPerson.key
  15.  
  16.                 console.log(jPerson)
  17.  
  18.                 if(sSession = sKey){
  19.                     aPeople.slice(this.jPerson);
  20.                 }
  21.  
  22.                 console.log(aPeople)
  23.  
  24.  
  25.                 $('#sName').text(sName)
  26.                 $('#sImg').attr('src', sImage)
  27.  
  28.                 //TO START COUNT AGAIN
  29.  
  30.                 if(aPeople.length -1 == personIndex){
  31.                     personIndex = 0
  32.                 }else{
  33.                     personIndex = personIndex + 1
  34.                 }    
  35.             }
  36.                 getPerson(personIndex);
  37.  
  38.                 $( '#sName' ).fadeIn( 'slow' )
  39.                 $( '#sImg' ).fadeIn( 'slow' )
  40.                 })
  41.             })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top