Skip to content

Commit 2adbfbd

Browse files
committed
Deploying to gh-pages from @ 585c6d9 🚀
0 parents  commit 2adbfbd

10 files changed

+55
-0
lines changed

cellular_automata-6ab39b98065f02c.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
2.75 MB
Binary file not shown.

icon-1024.png

314 KB
Loading

icon-256.png

47.2 KB
Loading

icon-64eac2d4d5b0993b.ico

170 Bytes
Binary file not shown.

icon_ios_touch_192.png

20.6 KB
Loading

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!doctype html><meta content="text/html; charset=utf-8" http-equiv=Content-Type><meta content="width=device-width,initial-scale=1.0,user-scalable=no" name=viewport><title>Cellular Automata</title><script type=module>import a,*as b from"/cellular-automata/cellular_automata-6ab39b98065f02c.js";a(`/cellular-automata/cellular_automata-6ab39b98065f02c_bg.wasm`);window.wasmBindings=b</script><base href=/cellular-automata/><link href=/cellular-automata/icon-64eac2d4d5b0993b.ico integrity=sha384-VaeGL6J7Lz4TIWmM9WhlwN7nl_hCIL7QEQ2jIVCDL22NPdO410NuHE1yEqM1s0DN rel=icon><link href=manifest.json rel=manifest><link href=icon_ios_touch_192.png rel=apple-touch-icon><meta media="(prefers-color-scheme: light)" content=white name=theme-color><meta media="(prefers-color-scheme: dark)" content=#404040 name=theme-color><style>html{touch-action:manipulation}body{background:#909090}@media (prefers-color-scheme:dark){body{background:#404040}}html,body{width:100%;height:100%;overflow:hidden;margin:0!important;padding:0!important}canvas{margin-left:auto;margin-right:auto;display:block;position:absolute;top:0%;left:50%;transform:translate(-50%)}.centered{color:#f0f0f0;text-align:center;margin-left:auto;margin-right:auto;font-family:Ubuntu-Light,Helvetica,sans-serif;font-size:24px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.lds-dual-ring{width:24px;height:24px;display:inline-block}.lds-dual-ring:after{content:" ";border:3px solid #fff;border-color:#fff #0000;border-radius:50%;width:24px;height:24px;margin:0;animation:1.2s linear infinite lds-dual-ring;display:block}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}</style><link as=fetch crossorigin href=/cellular-automata/cellular_automata-6ab39b98065f02c_bg.wasm integrity=sha384-MIpo-ERSY4vIgRIBuD6ibLyhpcDPS4ZPPIvfS2p5QTDE1jvYyvxtHIHiXAUxFFc4 rel=preload type=application/wasm><link crossorigin href=/cellular-automata/cellular_automata-6ab39b98065f02c.js integrity=sha384-oazcL5rPppkISBU-VuntGTiToz2mgJBNcB5MGjGdg68Ur2u1dyZQKI7ezhsvrbFd rel=modulepreload></head><body><canvas id=the_canvas_id></canvas><script>if(`serviceWorker` in navigator&&window.location.hash!==`#dev`){window.addEventListener(`load`,(()=>{navigator.serviceWorker.register(`sw.js`)}))}</script> #dev</body></html>

manifest.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "egui Template PWA",
3+
"short_name": "egui-template-pwa",
4+
"icons": [
5+
{
6+
"src": "./icon-256.png",
7+
"sizes": "256x256",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "./maskable_icon_x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png",
14+
"purpose": "any maskable"
15+
},
16+
{
17+
"src": "./icon-1024.png",
18+
"sizes": "1024x1024",
19+
"type": "image/png"
20+
}
21+
],
22+
"lang": "en-US",
23+
"id": "/index.html",
24+
"start_url": "./index.html",
25+
"display": "standalone",
26+
"background_color": "white",
27+
"theme_color": "white"
28+
}

maskable_icon_x512.png

128 KB
Loading

sw.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
var cacheName = 'egui-template-pwa';
2+
var filesToCache = [
3+
'./',
4+
'./index.html',
5+
'./eframe_template.js',
6+
'./eframe_template_bg.wasm',
7+
];
8+
9+
/* Start the service worker and cache all of the app's content */
10+
self.addEventListener('install', function (e) {
11+
e.waitUntil(
12+
caches.open(cacheName).then(function (cache) {
13+
return cache.addAll(filesToCache);
14+
})
15+
);
16+
});
17+
18+
/* Serve cached content when offline */
19+
self.addEventListener('fetch', function (e) {
20+
e.respondWith(
21+
caches.match(e.request).then(function (response) {
22+
return response || fetch(e.request);
23+
})
24+
);
25+
});

0 commit comments

Comments
 (0)