-
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
Showing
51 changed files
with
10,899 additions
and
2 deletions.
There are no files selected for viewing
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,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" | ||
} |
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,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; | ||
} | ||
})()); | ||
}); |
Oops, something went wrong.