-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (69 loc) · 2.67 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
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<base href="/" />
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project.">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Victor Flores Portafolio">
<link rel="shortcut icon" href="icons/favi.png" type="image/x-icon">
<link rel="icon" href="icons/favi.png" type="image/x-icon">
<title>Victor Flores Salgado</title>
<!-- ... -->
<script type="application/javascript" src="/assets/packages/flutter_inappwebview_web/assets/web/web_support.js"
defer></script>
<!-- ... -->
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script src="https://www.gstatic.com/firebasejs/8.6.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.1/firebase-storage.js"></script>
<script>
const firebaseConfig = {
apiKey: "AIzaSyDylT-3yPslpWHdTClnCvxOh3Xr-LeOnN8",
authDomain: "portafolio-37dbb.firebaseapp.com",
databaseURL: "https://portafolio-37dbb-default-rtdb.firebaseio.com",
projectId: "portafolio-37dbb",
storageBucket: "portafolio-37dbb.appspot.com",
messagingSenderId: "918345712799",
appId: "1:918345712799:web:4c5fb8c8cdbe20c7e20eaa",
measurementId: "G-4SP6N5TJJ7"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script src="main.dart.js" type="application/javascript"></script>
<script>
let useHtml = true;
window.addEventListener('load', function (ev) {
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function (engineInitializer) {
let config = {
renderer: useHtml ? "html" : "canvaskit",
};
engineInitializer.initializeEngine(config).then(function (appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body>
</html>