mirror of
https://github.com/bvanroll/little_people_firebase.git
synced 2025-08-28 19:32:40 +00:00
letsgo
This commit is contained in:
@@ -15,19 +15,17 @@
|
||||
to avoid connecting the SDK to running emulators.
|
||||
-->
|
||||
<script defer src="/__/firebase/init.js?useEmulator=true"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
padding: 2em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="people">
|
||||
<h1>Fake People</h1>
|
||||
<div class="container" style="padding-top: 1em; padding-left: 3em" id="people">
|
||||
|
||||
</div>
|
||||
|
||||
@@ -52,18 +50,17 @@
|
||||
rootRef.once('value', function(snapshot){
|
||||
snapshot.forEach(function(d) {
|
||||
var v = d.val();
|
||||
peopleList.innerHTML += `<div class="card">
|
||||
|
||||
<h5 class="card-header">${v.firstName} ${v.lastName}</h5>
|
||||
<h6>Gender:</h6>
|
||||
peopleList.innerHTML += `<div style="margin-bottom: 7em">
|
||||
<h3 class="card-header">${v.firstName} ${v.lastName}</h3>
|
||||
<h4>Gender:</h4>
|
||||
<p>${v.gender}</p>
|
||||
<h6>Age:</h6>
|
||||
<h4>Age:</h4>
|
||||
<p>${v.age}</p>
|
||||
<h6>Current Country of Residence:</h6>
|
||||
<h4>Current Country of Residence:</h4>
|
||||
<p>${v.country}</p>
|
||||
<h6>Job:</h3>
|
||||
<h4>Job:</h4>
|
||||
<p>${v.job}</p>
|
||||
<h6>Bio:</h6>
|
||||
<h4>Bio:</h4>
|
||||
<p>${v.bio}</p>
|
||||
</div>`;
|
||||
console.log(d.val());
|
||||
|
Reference in New Issue
Block a user