Skip to content

Instantly share code, notes, and snippets.

@SpEcHiDe
Created July 14, 2017 08:05
Show Gist options
  • Save SpEcHiDe/58b30e5a5751c922e14f4c65daecaab2 to your computer and use it in GitHub Desktop.
Save SpEcHiDe/58b30e5a5751c922e14f4c65daecaab2 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="ml">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags-->
<meta name="apple-mobile-web-app-capable" content="yes"/>
</head>
<body>
<script type="text/javascript" src="https://www.shrimadhavuk.me/js/vendor.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/firebasejs/4.1.3/firebase-app.js"></script>
<!-- <script type="text/javascript" src="https://www.gstatic.com/firebasejs/4.1.3/firebase-auth.js"></script> -->
<script type="text/javascript" src="https://www.gstatic.com/firebasejs/4.1.3/firebase-database.js"></script>
<!-- <script type="text/javascript" src="https://www.gstatic.com/firebasejs/4.1.3/firebase-messaging.js"></script> -->
<!-- <script type="text/javascript" src="https://www.gstatic.com/firebasejs/4.1.3/firebase-storage.js"></script> -->
<script type="text/javascript">
// Initialize Firebase
var config = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""
};
firebase.initializeApp(config);
</script>
<script type="text/javascript">
// https://stackoverflow.com/a/7346598/4723940
$.getJSON("en.bookfi.net.json", function(json) {
console.log(json); // this will show the info it in firebug console
var database = firebase.database();
firebase.database().ref("en_bookfi_net").set(json);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment