Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
p32929 committed Feb 23, 2024
1 parent 194b108 commit 5fdc91c
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 119 deletions.
8 changes: 4 additions & 4 deletions flutter_service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ const RESOURCES = {"assets/AssetManifest.bin": "693635b5258fe5f1cda720cf224f158c
"icons/Icon-512.png": "3e2be3f5b677bfbc07d57295f39b47a3",
"icons/Icon-maskable-192.png": "25c013b92c946ebcca9f757744ec6246",
"icons/Icon-maskable-512.png": "3e2be3f5b677bfbc07d57295f39b47a3",
"index.html": "287804bc6894beb3ee1829750a9f504b",
"/": "287804bc6894beb3ee1829750a9f504b",
"index_1.html": "a81876cc44a998d31845e070338f1200",
"index.css": "2368182744340c920ce53e7578a3e10a",
"index.html": "d03293afe7083b7e4707089c741ffedc",
"/": "d03293afe7083b7e4707089c741ffedc",
"main.dart.js": "7d94b3a2a8207f2b50be3a45dea47d28",
"manifest.json": "38b0623b07d15f5662c9db0af3bec374",
"manifest.json": "46daaf4a67a3a611d6477be436511541",
"spinner_animation.svg": "5c5ddcb7a4cd4414f2b2eb95fa981b9e",
"version.json": "cebafaeca0cb86e89f940d0ecb49d0a6"};
// The application shell files that are downloaded before a service worker can
Expand Down
55 changes: 55 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.spinner {
position: fixed;
height: 3em;
width: 3em;
margin: auto;
top: 0;
left: 0;
bottom: 0;
right: 0;
}

.spinner1,
.spinner2 {
width: 100%;
height: 100%;
border-radius: 50%;
opacity: 0.6;
position: absolute;
top: 0;
left: 0;
-webkit-animation: sk-bounce 2.0s infinite ease-in-out;
animation: sk-bounce 2.0s infinite ease-in-out;
background-color: #90CAF9;
}

.spinner2 {
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {

0%,
100% {
-webkit-transform: scale(0.0)
}

50% {
-webkit-transform: scale(1.0)
}
}

@keyframes sk-bounce {

0%,
100% {
transform: scale(0.0);
-webkit-transform: scale(0.0);
}

50% {
transform: scale(1.0);
-webkit-transform: scale(1.0);
}
}
42 changes: 19 additions & 23 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<!-- 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="duas" />
<meta name="apple-mobile-web-app-title" content="infmath" />
<link rel="apple-touch-icon" href="icons/Icon-192.png" />

<!-- Favicon -->
Expand All @@ -32,38 +32,34 @@
<title>MathFinity</title>
<link rel="manifest" href="manifest.json" />

<link rel="stylesheet" href="index.css" type="text/css" />

<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = "3579659576";
const serviceWorkerVersion = "3402397578";
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>

<body>
<img src="spinner_animation.svg" />
<script src="main.dart.js" type="application/javascript"></script>
<div class="spinner">
<div class="spinner1"></div>
<div class="spinner2"></div>
</div>

<script>
if ("serviceWorker" in navigator) {
window.addEventListener("flutter-first-frame", function () {
navigator.serviceWorker.register("flutter_service_worker.js");
navigator.serviceWorker.register("flutter_service_worker.js");
});
}
window.addEventListener("load", function (ev) {
// Download main.dart.js
_flutter.loader
.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
})
.then(function (engineInitializer) {
return engineInitializer.initializeEngine();
})
.then(function (appRunner) {
return appRunner.runApp();
});
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function (engineInitializer) {
engineInitializer.initializeEngine().then(function (appRunner) {
appRunner.runApp();
});
},
});
});
</script>
</body>
Expand Down
59 changes: 0 additions & 59 deletions index_1.html

This file was deleted.

66 changes: 33 additions & 33 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"name": "MathInfinity",
"short_name": "MathInfinity",
"start_url": ".",
"display": "standalone",
"background_color": "#hexcode",
"theme_color": "#hexcode",
"description": "A new Flutter project.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
"name": "MathFinity",
"short_name": "MathFinity",
"start_url": ".",
"display": "standalone",
"background_color": "#hexcode",
"theme_color": "#hexcode",
"description": "A new Flutter project.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}

0 comments on commit 5fdc91c

Please sign in to comment.