Skip to content

Commit

Permalink
v0.13 Beta Test
Browse files Browse the repository at this point in the history
  • Loading branch information
SamToki committed Jan 18, 2025
1 parent 7dcd43c commit 217f6e6
Show file tree
Hide file tree
Showing 51 changed files with 10,899 additions and 2 deletions.
Binary file added PREVIEW/二维码 QR code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PREVIEW/封面 Cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PREVIEW/预览 Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PROJECT/GPS-PFD/audio/Boeing_10.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_100.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_1000.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_20.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_200.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_2500.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_30.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_300.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_40.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_400.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_50.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_500.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_AirspeedLow.mp3
Binary file not shown.
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_Minimums.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Boeing_Overspeed.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Common_BankAngle.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Common_DontSink.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Common_GlideSlope.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Common_PullUp.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/audio/Common_SinkRate.mp3
Binary file not shown.
Binary file added PROJECT/GPS-PFD/docs/GPS-PFD 说明文档.pdf
Binary file not shown.
Binary file added PROJECT/GPS-PFD/images/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PROJECT/GPS-PFD/images/Icon_Large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PROJECT/GPS-PFD/images/Icon_Maskable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PROJECT/GPS-PFD/images/Icon_Small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PROJECT/GPS-PFD/images/Preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,223 changes: 2,223 additions & 0 deletions PROJECT/GPS-PFD/index.html

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions PROJECT/GPS-PFD/manifests/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"lang": "zh-CN",
"name": "GPS-PFD",
"short_name": "GPS-PFD",
"icons": [
{
"src": "../images/Icon.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "../images/Icon_Large.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "../images/Icon_Maskable.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "maskable"
}
],

"description": "利用 GPS 与传感器,在移动设备上模拟飞机驾驶舱的 PFD。这是一个试验性项目。",
"screenshots": [
{
"src": "../images/Preview.jpg",
"type": "image/jpg",
"sizes": "1280x720"
}
],

"display": "standalone",
"background_color": "#A0E0FF"
}
79 changes: 79 additions & 0 deletions PROJECT/GPS-PFD/script_ServiceWorker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
// For SamToki.github.io/GPS-PFD
// Released under GNU GPL v3 open source license.
// © 2025 SAM TOKI STUDIO

// Initialization
// Declare variables
"use strict";
// Unsaved
const CacheName = "GPS-PFD_v0.13";

// Listeners
// Service worker (https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps-chromium/how-to/#step-5---add-a-service-worker)
self.addEventListener("install", Event => {
Event.waitUntil((async() => {
const CacheContent = await caches.open(CacheName);
CacheContent.addAll([
"index.html",
"images/Icon_Small.png",
"../styles/common.css",
"../styles/common_Dark.css",
"../styles/common_Genshin.css",
"../styles/common_HighContrast.css",
"styles/style.css",
"styles/style_Dark.css",
"styles/style_Genshin.css",
"styles/style_HighContrast.css",
// "styles/style_PFD???.css",
"../scripts/common.js",
"../scripts/common_UserDataRepairer.js",
"scripts/script.js",
"manifests/manifest.json",
"images/Icon.png",
"images/Icon_Large.png",
"images/Icon_Maskable.png",
"images/Preview.jpg",
"../cursors/BTRAhoge.cur",
"../cursors/Genshin.cur",
"../cursors/GenshinFurina.cur",
"../cursors/GenshinNahida.cur",
"../images/Background.jpg",
"../audio/Beep.mp3",
"audio/Boeing_10.mp3",
"audio/Boeing_20.mp3",
"audio/Boeing_30.mp3",
"audio/Boeing_40.mp3",
"audio/Boeing_50.mp3",
"audio/Boeing_100.mp3",
"audio/Boeing_200.mp3",
"audio/Boeing_300.mp3",
"audio/Boeing_400.mp3",
"audio/Boeing_500.mp3",
"audio/Boeing_1000.mp3",
"audio/Boeing_2500.mp3",
"audio/Boeing_AirspeedLow.mp3",
"audio/Boeing_ApproachingMinimums.mp3",
"audio/Boeing_Minimums.mp3",
"audio/Boeing_Overspeed.mp3",
"audio/Common_BankAngle.mp3",
"audio/Common_DontSink.mp3",
"audio/Common_GlideSlope.mp3",
"audio/Common_PullUp.mp3",
"audio/Common_SinkRate.mp3",
"docs/GPS-PFD 说明文档.pdf"
]);
})());
});
self.addEventListener("fetch", Event => {
Event.respondWith((async() => {
const CacheContent = await caches.open(CacheName);
const CachedResponse = await CacheContent.match(Event.request);
if(CachedResponse) {
return CachedResponse;
} else {
const FetchResponse = await fetch(Event.request);
CacheContent.put(Event.request, FetchResponse.clone());
return FetchResponse;
}
})());
});
Loading

0 comments on commit 217f6e6

Please sign in to comment.