Saturday, 22 June 2019

Display Data in HTML using Firebase

<!DOCTYPE html> <html> <head> <title>Sandbox</title> <meta charset="UTF-8" /> <script src="https://www.gstatic.com/firebasejs/6.2.2/firebase-app.js"> </script> <script src="https://www.gstatic.com/firebasejs/3.1.0/firebase-database.js"> </script> </head> <body> <script> // Your web app's Firebase configuration var firebaseConfig = { apiKey: "", authDomain: "", databaseURL: "", projectId: "", storageBucket: "", messagingSenderId: "", appId: "" }; firebase.initializeApp(firebaseConfig); var dbRef = firebase.database().ref().child('text'); dbRef.on('value', snap => console.log(snap.val())); </script> </body> </html>

No comments:

Setup Windows Local Account without the Internet

During the Windows setup,  On the WiFi screen, press SHIFT + F10  or  FN + SHIFT + F10  This will open the command prompt window with admini...