-
Notifications
You must be signed in to change notification settings - Fork 0
/
userdata.html
42 lines (39 loc) · 1.57 KB
/
userdata.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<!-- <script src="https://www.gstatic.com/firebasejs/6.6.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.6.2/firebase-firestore.js"></script> -->
<!-- <script>
function getParam(name, url) {
if (!url) url = window.location.href;
//url = decodeURI(url);
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
</script> -->
</head>
<script>
// firebase.initializeApp({
// apiKey: 'AIzaSyB355FvOaCYwxukfOOGdC7W-T1lQg7LCws',
// authDomain: 'kokonioru-f4765.firebaseapp.com',
// projectId: 'kokonioru-f4765'
// });
var db = firebase.firestore();
console.log(getParam('ido'));
console.log(getParam('keido'));
console.log(getParam('state'));
console.log(getParam('text'));
// db.collection("users").get().then((querySnapshot) => {
// querySnapshot.forEach((doc) => {
// console.log(`${doc.id} => ${doc.data().first}`);
// });
// });
</script>
<body>
</body>
</html>