var statusItem = document.querySelector("p#status"); var peopleList = document.querySelector("#people"); var pageSize = 100 var pageNum = (1 *pageSize) -1; document.addEventListener('DOMContentLoaded', function() { try { let app = firebase.app(); let features = [ 'database', 'storage' ].filter(feature => typeof app[feature] === 'function'); } catch (e) { console.error(e); } var database = firebase.database(); var rootRef = database.ref('/').orderByChild("lastName").startAt(pageNum).limitToFirst(pageSize); //const people = [] //console.log(peopleList) rootRef.once('value', function(snapshot){ console.log(snapshot) snapshot.forEach(function(d) { console.log(d) var v = d.val(); console.log(v) peopleList.innerHTML += `
${v.gender}
${v.age}
${v.country}
${v.job}
${v.bio}
${v.gender}
//${v.age}
//${v.country}
//${v.job}
//${v.bio}
//