about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-08-18 20:27:10 -0400
committerelioat <elioat@tilde.institute>2024-08-18 20:27:10 -0400
commite78bf7a21ad8dc2971e061eb01fd335739997c31 (patch)
treeaeb77a02ceee580d7c9f9c03019b84c2b39498a5
parentcef4955de167d20f38588da594ecd21ea663f028 (diff)
downloadtour-e78bf7a21ad8dc2971e061eb01fd335739997c31.tar.gz
*
-rw-r--r--js/lut-cam/android-icon-144x144.pngbin0 -> 3068 bytes
-rw-r--r--js/lut-cam/android-icon-192x192.pngbin0 -> 3253 bytes
-rw-r--r--js/lut-cam/android-icon-36x36.pngbin0 -> 1791 bytes
-rw-r--r--js/lut-cam/android-icon-48x48.pngbin0 -> 1953 bytes
-rw-r--r--js/lut-cam/android-icon-72x72.pngbin0 -> 2429 bytes
-rw-r--r--js/lut-cam/android-icon-96x96.pngbin0 -> 1993 bytes
-rw-r--r--js/lut-cam/apple-icon-114x114.pngbin0 -> 3027 bytes
-rw-r--r--js/lut-cam/apple-icon-120x120.pngbin0 -> 2916 bytes
-rw-r--r--js/lut-cam/apple-icon-144x144.pngbin0 -> 3068 bytes
-rw-r--r--js/lut-cam/apple-icon-152x152.pngbin0 -> 3882 bytes
-rw-r--r--js/lut-cam/apple-icon-180x180.pngbin0 -> 4656 bytes
-rw-r--r--js/lut-cam/apple-icon-57x57.pngbin0 -> 2258 bytes
-rw-r--r--js/lut-cam/apple-icon-60x60.pngbin0 -> 2291 bytes
-rw-r--r--js/lut-cam/apple-icon-72x72.pngbin0 -> 2429 bytes
-rw-r--r--js/lut-cam/apple-icon-76x76.pngbin0 -> 2572 bytes
-rw-r--r--js/lut-cam/apple-icon-precomposed.pngbin0 -> 3689 bytes
-rw-r--r--js/lut-cam/apple-icon.pngbin0 -> 3689 bytes
-rw-r--r--js/lut-cam/browserconfig.xml2
-rw-r--r--js/lut-cam/favicon-16x16.pngbin0 -> 1228 bytes
-rw-r--r--js/lut-cam/favicon-32x32.pngbin0 -> 1813 bytes
-rw-r--r--js/lut-cam/favicon-96x96.pngbin0 -> 1993 bytes
-rw-r--r--js/lut-cam/favicon.icobin0 -> 1150 bytes
-rw-r--r--js/lut-cam/index.html18
-rw-r--r--js/lut-cam/lut.js11
-rw-r--r--js/lut-cam/manifest.json41
-rw-r--r--js/lut-cam/ms-icon-144x144.pngbin0 -> 3068 bytes
-rw-r--r--js/lut-cam/ms-icon-150x150.pngbin0 -> 3884 bytes
-rw-r--r--js/lut-cam/ms-icon-310x310.pngbin0 -> 9141 bytes
-rw-r--r--js/lut-cam/ms-icon-70x70.pngbin0 -> 2518 bytes
-rw-r--r--js/lut-cam/service-worker.js43
30 files changed, 115 insertions, 0 deletions
diff --git a/js/lut-cam/android-icon-144x144.png b/js/lut-cam/android-icon-144x144.png
new file mode 100644
index 0000000..ae37a7e
--- /dev/null
+++ b/js/lut-cam/android-icon-144x144.png
Binary files differdiff --git a/js/lut-cam/android-icon-192x192.png b/js/lut-cam/android-icon-192x192.png
new file mode 100644
index 0000000..4fd03e4
--- /dev/null
+++ b/js/lut-cam/android-icon-192x192.png
Binary files differdiff --git a/js/lut-cam/android-icon-36x36.png b/js/lut-cam/android-icon-36x36.png
new file mode 100644
index 0000000..d5fbc51
--- /dev/null
+++ b/js/lut-cam/android-icon-36x36.png
Binary files differdiff --git a/js/lut-cam/android-icon-48x48.png b/js/lut-cam/android-icon-48x48.png
new file mode 100644
index 0000000..ae93a97
--- /dev/null
+++ b/js/lut-cam/android-icon-48x48.png
Binary files differdiff --git a/js/lut-cam/android-icon-72x72.png b/js/lut-cam/android-icon-72x72.png
new file mode 100644
index 0000000..89d3e98
--- /dev/null
+++ b/js/lut-cam/android-icon-72x72.png
Binary files differdiff --git a/js/lut-cam/android-icon-96x96.png b/js/lut-cam/android-icon-96x96.png
new file mode 100644
index 0000000..a4fcd87
--- /dev/null
+++ b/js/lut-cam/android-icon-96x96.png
Binary files differdiff --git a/js/lut-cam/apple-icon-114x114.png b/js/lut-cam/apple-icon-114x114.png
new file mode 100644
index 0000000..2a2af04
--- /dev/null
+++ b/js/lut-cam/apple-icon-114x114.png
Binary files differdiff --git a/js/lut-cam/apple-icon-120x120.png b/js/lut-cam/apple-icon-120x120.png
new file mode 100644
index 0000000..dd9823f
--- /dev/null
+++ b/js/lut-cam/apple-icon-120x120.png
Binary files differdiff --git a/js/lut-cam/apple-icon-144x144.png b/js/lut-cam/apple-icon-144x144.png
new file mode 100644
index 0000000..ae37a7e
--- /dev/null
+++ b/js/lut-cam/apple-icon-144x144.png
Binary files differdiff --git a/js/lut-cam/apple-icon-152x152.png b/js/lut-cam/apple-icon-152x152.png
new file mode 100644
index 0000000..c43bf96
--- /dev/null
+++ b/js/lut-cam/apple-icon-152x152.png
Binary files differdiff --git a/js/lut-cam/apple-icon-180x180.png b/js/lut-cam/apple-icon-180x180.png
new file mode 100644
index 0000000..f7435e7
--- /dev/null
+++ b/js/lut-cam/apple-icon-180x180.png
Binary files differdiff --git a/js/lut-cam/apple-icon-57x57.png b/js/lut-cam/apple-icon-57x57.png
new file mode 100644
index 0000000..7f5dfa5
--- /dev/null
+++ b/js/lut-cam/apple-icon-57x57.png
Binary files differdiff --git a/js/lut-cam/apple-icon-60x60.png b/js/lut-cam/apple-icon-60x60.png
new file mode 100644
index 0000000..3a6a826
--- /dev/null
+++ b/js/lut-cam/apple-icon-60x60.png
Binary files differdiff --git a/js/lut-cam/apple-icon-72x72.png b/js/lut-cam/apple-icon-72x72.png
new file mode 100644
index 0000000..89d3e98
--- /dev/null
+++ b/js/lut-cam/apple-icon-72x72.png
Binary files differdiff --git a/js/lut-cam/apple-icon-76x76.png b/js/lut-cam/apple-icon-76x76.png
new file mode 100644
index 0000000..9dc77b1
--- /dev/null
+++ b/js/lut-cam/apple-icon-76x76.png
Binary files differdiff --git a/js/lut-cam/apple-icon-precomposed.png b/js/lut-cam/apple-icon-precomposed.png
new file mode 100644
index 0000000..8e17e9c
--- /dev/null
+++ b/js/lut-cam/apple-icon-precomposed.png
Binary files differdiff --git a/js/lut-cam/apple-icon.png b/js/lut-cam/apple-icon.png
new file mode 100644
index 0000000..8e17e9c
--- /dev/null
+++ b/js/lut-cam/apple-icon.png
Binary files differdiff --git a/js/lut-cam/browserconfig.xml b/js/lut-cam/browserconfig.xml
new file mode 100644
index 0000000..c554148
--- /dev/null
+++ b/js/lut-cam/browserconfig.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8"?>
+<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
\ No newline at end of file
diff --git a/js/lut-cam/favicon-16x16.png b/js/lut-cam/favicon-16x16.png
new file mode 100644
index 0000000..9293108
--- /dev/null
+++ b/js/lut-cam/favicon-16x16.png
Binary files differdiff --git a/js/lut-cam/favicon-32x32.png b/js/lut-cam/favicon-32x32.png
new file mode 100644
index 0000000..b6b0694
--- /dev/null
+++ b/js/lut-cam/favicon-32x32.png
Binary files differdiff --git a/js/lut-cam/favicon-96x96.png b/js/lut-cam/favicon-96x96.png
new file mode 100644
index 0000000..a4fcd87
--- /dev/null
+++ b/js/lut-cam/favicon-96x96.png
Binary files differdiff --git a/js/lut-cam/favicon.ico b/js/lut-cam/favicon.ico
new file mode 100644
index 0000000..8ce4e6e
--- /dev/null
+++ b/js/lut-cam/favicon.ico
Binary files differdiff --git a/js/lut-cam/index.html b/js/lut-cam/index.html
index 02186c6..ac578c5 100644
--- a/js/lut-cam/index.html
+++ b/js/lut-cam/index.html
@@ -4,6 +4,24 @@
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>LUT Cam</title>
+    <meta name="description" content="lut cam is a web-based camera with a bunch of preset LUT profiles baked in for you to choose from. It produces images that look sort of like what you can get out of a single-use camera.">
+    <link rel="apple-touch-icon" sizes="57x57" href="apple-icon-57x57.png">
+    <link rel="apple-touch-icon" sizes="60x60" href="apple-icon-60x60.png">
+    <link rel="apple-touch-icon" sizes="72x72" href="apple-icon-72x72.png">
+    <link rel="apple-touch-icon" sizes="76x76" href="apple-icon-76x76.png">
+    <link rel="apple-touch-icon" sizes="114x114" href="apple-icon-114x114.png">
+    <link rel="apple-touch-icon" sizes="120x120" href="apple-icon-120x120.png">
+    <link rel="apple-touch-icon" sizes="144x144" href="apple-icon-144x144.png">
+    <link rel="apple-touch-icon" sizes="152x152" href="apple-icon-152x152.png">
+    <link rel="apple-touch-icon" sizes="180x180" href="apple-icon-180x180.png">
+    <link rel="icon" type="image/png" sizes="192x192"  href="android-icon-192x192.png">
+    <link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
+    <link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
+    <link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
+    <link rel="manifest" href="manifest.json">
+    <meta name="msapplication-TileColor" content="#ffffff">
+    <meta name="msapplication-TileImage" content="ms-icon-144x144.png">
+    <meta name="theme-color" content="#ffffff">
     <style>
         body, html {
             margin: 0;
diff --git a/js/lut-cam/lut.js b/js/lut-cam/lut.js
index 0bd7dae..ff2bb41 100644
--- a/js/lut-cam/lut.js
+++ b/js/lut-cam/lut.js
@@ -157,3 +157,14 @@ captureButton.addEventListener('click', () => {
     link.href = canvas.toDataURL('image/png');
     link.click();
 });
+
+if ('serviceWorker' in navigator) {
+    window.addEventListener('load', () => {
+        navigator.serviceWorker.register('/service-worker.js')
+        .then(registration => {
+            console.log('ServiceWorker registration successful with scope: ', registration.scope);
+        }, err => {
+            console.log('ServiceWorker registration failed: ', err);
+        });
+    });
+}
\ No newline at end of file
diff --git a/js/lut-cam/manifest.json b/js/lut-cam/manifest.json
new file mode 100644
index 0000000..1f51b17
--- /dev/null
+++ b/js/lut-cam/manifest.json
@@ -0,0 +1,41 @@
+{
+ "name": "Lut Cam",
+ "icons": [
+  {
+   "src": "\/android-icon-36x36.png",
+   "sizes": "36x36",
+   "type": "image\/png",
+   "density": "0.75"
+  },
+  {
+   "src": "\/android-icon-48x48.png",
+   "sizes": "48x48",
+   "type": "image\/png",
+   "density": "1.0"
+  },
+  {
+   "src": "\/android-icon-72x72.png",
+   "sizes": "72x72",
+   "type": "image\/png",
+   "density": "1.5"
+  },
+  {
+   "src": "\/android-icon-96x96.png",
+   "sizes": "96x96",
+   "type": "image\/png",
+   "density": "2.0"
+  },
+  {
+   "src": "\/android-icon-144x144.png",
+   "sizes": "144x144",
+   "type": "image\/png",
+   "density": "3.0"
+  },
+  {
+   "src": "\/android-icon-192x192.png",
+   "sizes": "192x192",
+   "type": "image\/png",
+   "density": "4.0"
+  }
+ ]
+}
\ No newline at end of file
diff --git a/js/lut-cam/ms-icon-144x144.png b/js/lut-cam/ms-icon-144x144.png
new file mode 100644
index 0000000..ae37a7e
--- /dev/null
+++ b/js/lut-cam/ms-icon-144x144.png
Binary files differdiff --git a/js/lut-cam/ms-icon-150x150.png b/js/lut-cam/ms-icon-150x150.png
new file mode 100644
index 0000000..d9edbdb
--- /dev/null
+++ b/js/lut-cam/ms-icon-150x150.png
Binary files differdiff --git a/js/lut-cam/ms-icon-310x310.png b/js/lut-cam/ms-icon-310x310.png
new file mode 100644
index 0000000..9512221
--- /dev/null
+++ b/js/lut-cam/ms-icon-310x310.png
Binary files differdiff --git a/js/lut-cam/ms-icon-70x70.png b/js/lut-cam/ms-icon-70x70.png
new file mode 100644
index 0000000..45b1734
--- /dev/null
+++ b/js/lut-cam/ms-icon-70x70.png
Binary files differdiff --git a/js/lut-cam/service-worker.js b/js/lut-cam/service-worker.js
new file mode 100644
index 0000000..3ed58c1
--- /dev/null
+++ b/js/lut-cam/service-worker.js
@@ -0,0 +1,43 @@
+const CACHE_NAME = 'lut-cam-cache-v1';
+const urlsToCache = [
+    '/',
+    './',
+    'index.html',
+    'lut.js',
+    'service-worker.js',
+    'android-icon-192x192.png',
+    'android-icon-512x512.png',
+    'favicon.ico',
+    'favicon-16x16.png',
+    'favicon-32x32.png',
+    'favicon-96x96.png',
+    'apple-icon-57x57.png',
+    'apple-icon-60x60.png',
+    'apple-icon-72x72.png',
+    'apple-icon-76x76.png',
+    'apple-icon-114x114.png',
+    'apple-icon-120x120.png',
+    'apple-icon-144x144.png',
+    'apple-icon-152x152.png'
+];
+
+self.addEventListener('install', event => {
+  event.waitUntil(
+    caches.open(CACHE_NAME)
+      .then(cache => {
+        return cache.addAll(urlsToCache);
+      })
+  );
+});
+
+self.addEventListener('fetch', event => {
+  event.respondWith(
+    caches.match(event.request)
+      .then(response => {
+        if (response) {
+          return response;
+        }
+        return fetch(event.request);
+      })
+  );
+});
\ No newline at end of file