Initial commit

merge-requests/1/head
Kevin Py 2 years ago
commit fc47b49cb3

@ -0,0 +1,2 @@
# Black Screen
Just a black web page

@ -0,0 +1,3 @@
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', { scope: '/' });
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Black Screen</title>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='description' content='Just a black web page'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel='canonical' href='https://blackscreen.app/'>
<link rel="manifest" href="manifest.webmanifest">
<link rel="stylesheet" href="style.css">
<meta name='mobile-web-app-capable' content='yes'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta name='application-name' content='Black screen'>
<meta name='apple-mobile-web-app-status-bar-style' content='black'>
<meta name='apple-mobile-web-app-title' content='Black screen'>
<link rel='icon' sizes='192x192' href='/images/icon-192x192.png'>
<link rel='apple-touch-icon' href='/images/icon-192x192.png'>
<meta name='msapplication-TileImage' content='/images/icon-144x144.png'>
<meta name='msapplication-TileColor' content='#000000'>
<meta name='theme-color' content='#000000'>
<meta property='og:title' content='Black screen'>
<meta property='og:type' content='website'>
<meta property='og:image' content='https://blackscreen.app/images/icon-192x192.png'>
<meta property='og:url' content='https://blackscreen.app'>
<meta property='og:description' content='Just a black web page'>
<meta name='twitter:card' content='summary'>
<meta name='twitter:url' content='https://blackscreen.app'>
<meta name='twitter:title' content='Black screen'>
<meta name='twitter:description' content='Just a black web page'>
<meta name='twitter:image' content='https://blackscreen.app/images/icon-192x192.png'>
<meta name='twitter:creator' content='@pyxeldev'>
<script id="myownstats" data-mos-id="blackscreen" src="https://myownstats.com/tag.js" async defer></script>
</head>
<body>
</body>
</html>

@ -0,0 +1,31 @@
{
"manifest_version": 2,
"name": "Black Screen",
"version": "1.0",
"description": "Just a black web page",
"homepage_url": "https://blackscreen.app",
"chrome_url_overrides": {
"newtab": "index.html"
},
"page_action": {
"default_title": "Black screen",
"default_popup": "index.html",
"default_icon": {
"16": "images/icon-16x16.png",
"32": "images/icon-32x32.png",
"48": "images/icon-48x48.png",
"128": "images/icon-128x128.png"
}
},
"icons": {
"16": "images/icon-16x16.png",
"32": "images/icon-32x32.png",
"48": "images/icon-48x48.png",
"128": "images/icon-128x128.png"
},
"background": {
"service_worker": "background.js",
"type": "module"
},
"content_security_policy": "script-src 'self' https://myownstats.com; object-src 'self'"
}

@ -0,0 +1,79 @@
{
"name": "Black screen",
"short_name": "Blackscreen",
"description": "Just a black web page",
"icons": [
{
"src": "/images/icon-48x48.png",
"type": "image/png",
"sizes": "48x48"
},
{
"src": "/images/icon-72x72.png",
"type": "image/png",
"sizes": "72x72"
},
{
"src": "/images/icon-96x96.png",
"type": "image/png",
"sizes": "96x96"
},
{
"src": "/images/icon-144x144.png",
"type": "image/png",
"sizes": "144x144"
},
{
"src": "/images/icon-192x192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "/images/icon-512x512.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "/images/icon-48x48.png",
"type": "image/png",
"sizes": "48x48",
"purpose": "maskable"
},
{
"src": "/images/icon-72x72.png",
"type": "image/png",
"sizes": "72x72",
"purpose": "maskable"
},
{
"src": "/images/icon-96x96.png",
"type": "image/png",
"sizes": "96x96",
"purpose": "maskable"
},
{
"src": "/images/icon-144x144.png",
"type": "image/png",
"sizes": "144x144",
"purpose": "maskable"
},
{
"src": "/images/icon-192x192.png",
"type": "image/png",
"sizes": "192x192",
"purpose": "maskable"
},
{
"src": "/images/icon-512x512.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "maskable"
}
],
"start_url": "/",
"scope": "/",
"display": "standalone",
"background_color": "#000000",
"theme_color": "#000000"
}

@ -0,0 +1,8 @@
{
"name": "@pyxeldev/blackscreen",
"version": "1.0.0",
"description": "Just a black web page",
"author": "Kevin Py",
"license": "MIT",
"keywords": ["black", "screen", "app"]
}

@ -0,0 +1,5 @@
# www.robotstxt.org/
# Allow crawling of all content
User-agent: *
Disallow:

@ -0,0 +1,3 @@
html {
background-color: #000000;
}

28
sw.js

@ -0,0 +1,28 @@
const version = '1.0.0';
const cacheName = `blackscreen-${version}`;
self.addEventListener('install', e => {
e.waitUntil(
caches.open(cacheName).then(cache => {
return cache.addAll([
`/`,
`/index.html`
])
.then(() => self.skipWaiting());
})
);
});
self.addEventListener('activate', event => {
event.waitUntil(self.clients.claim());
});
self.addEventListener('fetch', event => {
event.respondWith(
caches.open(cacheName)
.then(cache => cache.match(event.request, { ignoreSearch: true }))
.then(response => {
return response || fetch(event.request);
})
);
});
Loading…
Cancel
Save