Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(sSession = sKey){
- aPeople.slice(this.jPerson);
- }
- $("#btnSkip").click(function() {
- $.getJSON('include/users.txt', function(aPeople){
- var getPerson = function(id) {
- var jPerson = aPeople[id]
- var sID = jPerson.id
- var sName = jPerson.name
- var sImage = jPerson.picture
- var sSession = $('#mySession').text()
- var sKey = jPerson.key
- console.log(jPerson)
- if(sSession = sKey){
- aPeople.slice(this.jPerson);
- }
- console.log(aPeople)
- $('#sName').text(sName)
- $('#sImg').attr('src', sImage)
- //TO START COUNT AGAIN
- if(aPeople.length -1 == personIndex){
- personIndex = 0
- }else{
- personIndex = personIndex + 1
- }
- }
- getPerson(personIndex);
- $( '#sName' ).fadeIn( 'slow' )
- $( '#sImg' ).fadeIn( 'slow' )
- })
- })
Add Comment
Please, Sign In to add comment