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
@media all and (display-mode: standalone){ | |
… | |
} |
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
{ | |
"display": "fullscreen", | |
"orientation": "landscape" | |
} |
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
{ | |
"icons": [{ | |
"src": "icon/lowres", | |
"sizes": "64x64", | |
"type": "image/webp" | |
}, { | |
"src": "icon/hd_small", | |
"sizes": "64x64" | |
}, { | |
"src": "icon/hd_hi", |
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
{ | |
"name": "Моё вообще улётное фотоприложение", | |
"short_name": "Фотки" | |
} |
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
{ | |
"lang": "ru", | |
"dir": "ltr", | |
"name": "Супергонщик 3000", | |
"description": "Потрясающая футуристичная гоночная игра из будущего!", | |
"short_name": "Гонщик3K", | |
"icons": [{ | |
"src": "icon/lowres.webp", | |
"sizes": "64x64", | |
"type": "image/webp" |
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
{ | |
"name": "Супергонщик 3000", | |
"icons": [{ | |
"src": "icon/lowres.png", | |
"sizes": "64x64" | |
}] | |
} |
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
<link rel="manifest" href="/manifest.json"> |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name wsd.events www.wsd.events; | |
return 301 https://wsd.events$request_uri; | |
} | |
server { | |
listen 443 ssl http2; |
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
importScripts('idb-keyval.js'); | |
const VERSION = 'v1'; | |
self.addEventListener('install', function (e) { | |
self.skipWaiting(); | |
e.waitUntil( | |
caches.open(VERSION).then(function (cache) { | |
return cache.addAll([ | |
'./', |
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
// Проверяем поддержку сервис-воркера | |
if ('serviceWorker' in navigator) { | |
// Регистрируем сервис-воркер | |
navigator.serviceWorker.register('./service-worker.js'); | |
form.addEventListener('submit', function (e) { | |
let formData = new FormData(form); | |
// Отправляем сообщение в фоне | |
navigator.serviceWorker.ready.then(function (swRegistration) { | |
idbKeyval.set('comment', commentArea.value); |