diff --git a/static/img/icon/android-icon-144x144.png b/static/img/icon/android-icon-144x144.png new file mode 100644 index 0000000..a1a7d28 Binary files /dev/null and b/static/img/icon/android-icon-144x144.png differ diff --git a/static/img/icon/android-icon-192x192.png b/static/img/icon/android-icon-192x192.png new file mode 100644 index 0000000..6519844 Binary files /dev/null and b/static/img/icon/android-icon-192x192.png differ diff --git a/static/img/icon/android-icon-36x36.png b/static/img/icon/android-icon-36x36.png new file mode 100644 index 0000000..dee1685 Binary files /dev/null and b/static/img/icon/android-icon-36x36.png differ diff --git a/static/img/icon/android-icon-48x48.png b/static/img/icon/android-icon-48x48.png new file mode 100644 index 0000000..6d72ceb Binary files /dev/null and b/static/img/icon/android-icon-48x48.png differ diff --git a/static/img/icon/android-icon-72x72.png b/static/img/icon/android-icon-72x72.png new file mode 100644 index 0000000..895a5cb Binary files /dev/null and b/static/img/icon/android-icon-72x72.png differ diff --git a/static/img/icon/android-icon-96x96.png b/static/img/icon/android-icon-96x96.png new file mode 100644 index 0000000..fd954d8 Binary files /dev/null and b/static/img/icon/android-icon-96x96.png differ diff --git a/static/img/icon/apple-icon-114x114.png b/static/img/icon/apple-icon-114x114.png new file mode 100644 index 0000000..7e27c80 Binary files /dev/null and b/static/img/icon/apple-icon-114x114.png differ diff --git a/static/img/icon/apple-icon-120x120.png b/static/img/icon/apple-icon-120x120.png new file mode 100644 index 0000000..44e3051 Binary files /dev/null and b/static/img/icon/apple-icon-120x120.png differ diff --git a/static/img/icon/apple-icon-144x144.png b/static/img/icon/apple-icon-144x144.png new file mode 100644 index 0000000..a1a7d28 Binary files /dev/null and b/static/img/icon/apple-icon-144x144.png differ diff --git a/static/img/icon/apple-icon-152x152.png b/static/img/icon/apple-icon-152x152.png new file mode 100644 index 0000000..9057e04 Binary files /dev/null and b/static/img/icon/apple-icon-152x152.png differ diff --git a/static/img/icon/apple-icon-180x180.png b/static/img/icon/apple-icon-180x180.png new file mode 100644 index 0000000..0f9a41a Binary files /dev/null and b/static/img/icon/apple-icon-180x180.png differ diff --git a/static/img/icon/apple-icon-57x57.png b/static/img/icon/apple-icon-57x57.png new file mode 100644 index 0000000..e2e0985 Binary files /dev/null and b/static/img/icon/apple-icon-57x57.png differ diff --git a/static/img/icon/apple-icon-60x60.png b/static/img/icon/apple-icon-60x60.png new file mode 100644 index 0000000..046759b Binary files /dev/null and b/static/img/icon/apple-icon-60x60.png differ diff --git a/static/img/icon/apple-icon-72x72.png b/static/img/icon/apple-icon-72x72.png new file mode 100644 index 0000000..895a5cb Binary files /dev/null and b/static/img/icon/apple-icon-72x72.png differ diff --git a/static/img/icon/apple-icon-76x76.png b/static/img/icon/apple-icon-76x76.png new file mode 100644 index 0000000..2f4fdc4 Binary files /dev/null and b/static/img/icon/apple-icon-76x76.png differ diff --git a/static/img/icon/apple-icon-precomposed.png b/static/img/icon/apple-icon-precomposed.png new file mode 100644 index 0000000..4092aae Binary files /dev/null and b/static/img/icon/apple-icon-precomposed.png differ diff --git a/static/img/icon/apple-icon.png b/static/img/icon/apple-icon.png new file mode 100644 index 0000000..4092aae Binary files /dev/null and b/static/img/icon/apple-icon.png differ diff --git a/static/img/icon/favicon-16x16.png b/static/img/icon/favicon-16x16.png new file mode 100644 index 0000000..a962911 Binary files /dev/null and b/static/img/icon/favicon-16x16.png differ diff --git a/static/img/icon/favicon-32x32.png b/static/img/icon/favicon-32x32.png new file mode 100644 index 0000000..f3f835d Binary files /dev/null and b/static/img/icon/favicon-32x32.png differ diff --git a/static/img/icon/favicon-96x96.png b/static/img/icon/favicon-96x96.png new file mode 100644 index 0000000..fd954d8 Binary files /dev/null and b/static/img/icon/favicon-96x96.png differ diff --git a/static/img/icon/favicon.ico b/static/img/icon/favicon.ico new file mode 100644 index 0000000..310fe28 Binary files /dev/null and b/static/img/icon/favicon.ico differ diff --git a/static/img/icon/ms-icon-144x144.png b/static/img/icon/ms-icon-144x144.png new file mode 100644 index 0000000..a1a7d28 Binary files /dev/null and b/static/img/icon/ms-icon-144x144.png differ diff --git a/static/img/icon/ms-icon-150x150.png b/static/img/icon/ms-icon-150x150.png new file mode 100644 index 0000000..5cebc01 Binary files /dev/null and b/static/img/icon/ms-icon-150x150.png differ diff --git a/static/img/icon/ms-icon-310x310.png b/static/img/icon/ms-icon-310x310.png new file mode 100644 index 0000000..aaf0bd6 Binary files /dev/null and b/static/img/icon/ms-icon-310x310.png differ diff --git a/static/img/icon/ms-icon-70x70.png b/static/img/icon/ms-icon-70x70.png new file mode 100644 index 0000000..8f8aea2 Binary files /dev/null and b/static/img/icon/ms-icon-70x70.png differ diff --git a/static/index.html b/static/index.html index 42baa1a..7dd8677 100644 --- a/static/index.html +++ b/static/index.html @@ -5,15 +5,31 @@ OSS 110'Metz - + - - - + + + + + + + + + + + + + + + + + + +
@@ -43,7 +59,7 @@

OSS 110'Metz est une organisation rempli d'espions qualifiés pour remplir presque toutes vos demandes ! - Cliquez sur le bouton ci-dessus puis suivez les instructions. Attention, un compte Rezo + Cliquez sur le bouton ci-dessus puis suivez les instructions. Attention, un compte Rezo est nécessaire afin de garantir l'identité des demandeurs !

@@ -71,10 +87,10 @@ - + - \ No newline at end of file + diff --git a/static/js/main.js b/static/js/main.js index ce0de74..77e6703 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1,5 +1,10 @@ $(window).on("load", function() { + /* Register the Service Worker */ + if ('serviceWorker' in navigator) { + navigator.serviceWorker.register('./js/sw.js'); + } + /* load timer */ window.setInterval(function() { var time = $("#timer").text(); @@ -24,4 +29,4 @@ $(window).on("load", function() { second: '2-digit' })); }, 1000); -}); \ No newline at end of file +}); diff --git a/static/manifest.json b/static/manifest.json new file mode 100644 index 0000000..ec83a15 --- /dev/null +++ b/static/manifest.json @@ -0,0 +1,40 @@ +{ + "name": "OSS110METZ", + "short_name": "O1M", + "icons": [{ + "src": "img/icon/android-icon-36x36.png", + "sizes": "36x36", + "type": "image\/png", + "density": "0.75" + }, { + "src": "img/icon/android-icon-48x48.png", + "sizes": "48x48", + "type": "image\/png", + "density": "1.0" + }, { + "src": "img/icon/android-icon-72x72.png", + "sizes": "72x72", + "type": "image\/png", + "density": "1.5" + }, { + "src": "img/icon/android-icon-96x96.png", + "sizes": "96x96", + "type": "image\/png", + "density": "2.0" + }, { + "src": "img/icon/android-icon-144x144.png", + "sizes": "144x144", + "type": "image\/png", + "density": "3.0" + }, { + "src": "img/icon/android-icon-192x192.png", + "sizes": "192x192", + "type": "image\/png", + "density": "4.0" + }], + "lang": "fr-FR", + "start_url": "/", + "display": "standalone", + "background_color": "black", + "theme_color": "black" +} diff --git a/static/sw.js b/static/sw.js new file mode 100644 index 0000000..0c8d3d2 --- /dev/null +++ b/static/sw.js @@ -0,0 +1,21 @@ +var cacheName = 'o1m'; +var filesToCache = [ + '/', + '/index.html' +]; + +self.addEventListener('install', function(e) { + e.waitUntil( + caches.open(cacheName).then(function(cache) { + return cache.addAll(filesToCache); + }) + ); +}); + +self.addEventListener('fetch', function(e) { + e.respondWith( + caches.match(e.request).then(function(response) { + return response || fetch(e.request); + }) + ); +});