Skip to content

Commit

Permalink
feat: edit firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanngocptn committed Dec 24, 2024
1 parent 9c6372a commit 7ed10d9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
21 changes: 0 additions & 21 deletions assets/js/firebase.js

This file was deleted.

24 changes: 23 additions & 1 deletion home.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,28 @@ <h3>💻 Quick Start</h3>
</p>
</footer>
<script src="./assets/js/script.js" defer></script>
<script src="./assets/js/firebase.js" type="module"></script>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/11.1.0/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/11.1.0/firebase-analytics.js";
// 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
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyArRxHZJUt4o2RxiLqX1yDSkuUd6ZFy45I",
authDomain: "nport-link.firebaseapp.com",
projectId: "nport-link",
storageBucket: "nport-link.firebasestorage.app",
messagingSenderId: "515584605320",
appId: "1:515584605320:web:88daabc8d77146c6e7f33d",
measurementId: "G-8MYXZL6PGD"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>
</body>
</html>

0 comments on commit 7ed10d9

Please sign in to comment.