-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69f7975
commit 90de84f
Showing
13 changed files
with
74 additions
and
57 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const cacheName = "Polygonus-Wild Boar Throw-0.2.0"; | ||
const contentToCache = [ | ||
"Build/docs.loader.js", | ||
"Build/docs.framework.js", | ||
"Build/docs.data", | ||
"Build/docs.wasm", | ||
"TemplateData/style.css" | ||
|
||
]; | ||
|
||
self.addEventListener('install', function (e) { | ||
console.log('[Service Worker] Install'); | ||
|
||
e.waitUntil((async function () { | ||
const cache = await caches.open(cacheName); | ||
console.log('[Service Worker] Caching all: app shell and content'); | ||
await cache.addAll(contentToCache); | ||
})()); | ||
}); | ||
|
||
self.addEventListener('fetch', function (e) { | ||
e.respondWith((async function () { | ||
let response = await caches.match(e.request); | ||
console.log(`[Service Worker] Fetching resource: ${e.request.url}`); | ||
if (response) { return response; } | ||
|
||
response = await fetch(e.request); | ||
const cache = await caches.open(cacheName); | ||
console.log(`[Service Worker] Caching new resource: ${e.request.url}`); | ||
cache.put(e.request, response.clone()); | ||
return response; | ||
})()); | ||
}); |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
body { padding: 0; margin: 0 } | ||
#unity-container { position: absolute } | ||
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) } | ||
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% } | ||
#unity-canvas { background: #231F20 } | ||
.unity-mobile #unity-canvas { width: 100%; height: 100% } | ||
#unity-container { position: fixed; width: 100%; height: 100%; } | ||
#unity-canvas { width: 100%; height: 100%; background: #231F20 } | ||
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none } | ||
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center } | ||
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center } | ||
#unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center } | ||
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center } | ||
#unity-footer { position: relative } | ||
.unity-mobile #unity-footer { display: none } | ||
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center } | ||
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px } | ||
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center } | ||
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none } |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Wild Boar Throw", | ||
"short_name": "Wild Boar Throw", | ||
"start_url": "index.html", | ||
"display": "fullscreen", | ||
"background_color": "#231F20", | ||
"theme_color": "#000", | ||
"description": "", | ||
"icons": [{ | ||
"src": "TemplateData/icons/unity-logo-dark.png", | ||
"sizes": "144x144", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}] | ||
} |