-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
102 lines (59 loc) · 2.14 KB
/
script.js
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "MY API KEY",
authDomain: "babalift-417115.firebaseapp.com",
databaseURL: "https://babalift-417115-default-rtdb.europe-west1.firebasedatabase.app",
projectId: "babalift-417115",
storageBucket: "babalift-417115.appspot.com",
messagingSenderId: "10551868809",
appId: "1:10551868809:web:4c04a9f33034b25667b558"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
*/
/*
// THIS ARE JUST SOME EXERCISES
function useCallback(callback) { //i can pass a function as well as a parameter like a var or let string
callback("Hello");
}
useCallback(value => console.log(value)) // anonymous arrow function that takes a value and logs it to the console
//same as
useCallback(function (value) {console.log(value)})
function questa(funct)
{
funct()
}
questa(()=> console.log("questa"))
//SAME AS:
function print(value) {
console.log(value)
}
useCallback(print)
//SAME AS
let callback = print
callback("Helloooo")
var sum = 2 + 3;
*/
function showInput() {
document.getElementById("central").style.display = "none";
document.getElementById("emailBox").style.display = "block";
// document.getElementById("inputContainer").style.display = "block" ; // Show the input container
}
function showConfirmation() {
var pickupPoint = document.getElementById("email").value; // Get the value of the input field
document.getElementById("confirmation").style.display = "flex"; // Show the confirmation text
document.getElementById("confirmation").innerText = "..." + pickupPoint; // Display the confirmation text
}
/*
function openModal() {
document.getElementById("modal").style.display = "flex";
}
function closeModal() {
document.getElementById("modal").style.display = "none";
}
*/