Commit f1fa2b6e authored by Anna Kutschka's avatar Anna Kutschka

deploy on firebase

parent d228b1b9
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
firebase-debug.log*
# Firebase cache
.firebase/
# Firebase config
# Uncomment this if you'd like others to create their own Firebase project.
# For a team working on the same Firebase project(s), it is recommended to leave
# it commented so all members can deploy to the same project(s) in .firebaserc.
# .firebaserc
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
Firework App by Kutschka
Link to website:
\ No newline at end of file
Link to website: https://firework-90e08.firebaseapp.com
\ No newline at end of file
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
......@@ -19,6 +19,7 @@
Paul | aerotwist
-->
<body>
<!-- Hiding library elements in the DOM is fun -->
......@@ -30,34 +31,13 @@
<main id="welcome-back" class="isPaused">
<h1>Welcome back!</h1>
</main>
<button id="getAppButton">GET THE APP</button>
</body>
<button id="getAppButton">GET THE APP</button>
<!-- FIREBASE -->
<!-- Firebase App is always required and must be first -->
<script src="/__/firebase/5.9.0/firebase-app.js"></script>
<!-- Add additional services that you want to use -->
<script src="/__/firebase/5.9.0/firebase-auth.js"></script>
<script src="/__/firebase/init.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCgisLyIBfsPiqBP0AirPcyom902INyN3I",
authDomain: "firework-90e08.firebaseapp.com",
databaseURL: "https://firework-90e08.firebaseio.com",
projectId: "firework-90e08",
storageBucket: "firework-90e08.appspot.com",
messagingSenderId: "1067766241067"
};
firebase.initializeApp(config);
</script>
<script src="js/requestanimframe.js"></script>
<script src="js/fireworks.js"></script>
<script src="js/defferPrompt.js"></script>
<script src="js/deferredPrompt.js"></script>
<script>
if ('serviceWorker' in navigator) {
......
......@@ -11,7 +11,6 @@ window.addEventListener('beforeinstallprompt', function(e) {
return false;
});
btnSave.addEventListener('click', function() {
if(deferredPrompt !== undefined) {
// The user has had a positive interaction with our app and Chrome
......
this.addEventListener('fetch', function (event) {
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment