generated from rabira-hierpa/revit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (126 loc) · 4.23 KB
/
index.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://api.tiles.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.css"
rel="stylesheet"
/>
<link
href="https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.css"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.3.0/mapbox-gl-draw.css"
type="text/css"
/>
<!-- update the version number as needed -->
<script defer src="/__/firebase/9.10.0/firebase-app-compat.js"></script>
<!-- include only the Firebase features as you need -->
<script defer src="/__/firebase/9.10.0/firebase-auth-compat.js"></script>
<script
defer
src="/__/firebase/9.10.0/firebase-database-compat.js"
></script>
<script
defer
src="/__/firebase/9.10.0/firebase-firestore-compat.js"
></script>
<script
defer
src="/__/firebase/9.10.0/firebase-functions-compat.js"
></script>
<script
defer
src="/__/firebase/9.10.0/firebase-messaging-compat.js"
></script>
<script defer src="/__/firebase/9.10.0/firebase-storage-compat.js"></script>
<script
defer
src="/__/firebase/9.10.0/firebase-analytics-compat.js"
></script>
<script
defer
src="/__/firebase/9.10.0/firebase-remote-config-compat.js"
></script>
<script
defer
src="/__/firebase/9.10.0/firebase-performance-compat.js"
></script>
<!--
initialize the SDK after all desired features are loaded, set useEmulator to false
to avoid connecting the SDK to running emulators.
-->
<script defer src="/__/firebase/init.js?useEmulator=true"></script>
<style>
body {
margin: 0;
font-family: Helvetica, Arial, sans-serif;
}
.control-panel {
position: absolute;
top: 0;
right: 0;
max-width: 320px;
background: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
padding: 12px 24px;
margin: 20px;
font-size: 13px;
line-height: 2;
color: #6b6b76;
text-transform: uppercase;
outline: none;
overflow-y: scroll;
}
</style>
<title>Fire Maps</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const loadEl = document.querySelector("#load");
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
// // The Firebase SDK is initialized and available here!
//
// firebase.auth().onAuthStateChanged(user => { });
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
// firebase.firestore().doc('/foo/bar').get().then(() => { });
// firebase.functions().httpsCallable('yourFunction')().then(() => { });
// firebase.messaging().requestPermission().then(() => { });
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
// firebase.analytics(); // call to activate
// firebase.analytics().logEvent('tutorial_completed');
// firebase.performance(); // call to activate
//
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
try {
let app = firebase.app();
let features = [
"auth",
"database",
"firestore",
"functions",
"messaging",
"storage",
"analytics",
"remoteConfig",
"performance",
].filter((feature) => typeof app[feature] === "function");
loadEl.textContent = `Firebase SDK loaded with ${features.join(
", "
)}`;
} catch (e) {
console.error(e);
loadEl.textContent =
"Error loading the Firebase SDK, check the console.";
}
});
</script>
</body>
</html>