diff --git a/images/aloo-matar.jpg b/images/aloo-matar.jpg deleted file mode 100644 index 18cad92..0000000 Binary files a/images/aloo-matar.jpg and /dev/null differ diff --git a/images/austro-hungarian-cream-of-horseradish-soup.jpg b/images/austro-hungarian-cream-of-horseradish-soup.jpg deleted file mode 100644 index e8d0d6b..0000000 Binary files a/images/austro-hungarian-cream-of-horseradish-soup.jpg and /dev/null differ diff --git a/images/cookbook-144.png b/images/cookbook-144.png new file mode 100755 index 0000000..441c10e Binary files /dev/null and b/images/cookbook-144.png differ diff --git a/images/cookbook-192.png b/images/cookbook-192.png new file mode 100755 index 0000000..bf9b585 Binary files /dev/null and b/images/cookbook-192.png differ diff --git a/images/cookbook-48.png b/images/cookbook-48.png new file mode 100755 index 0000000..d6f2538 Binary files /dev/null and b/images/cookbook-48.png differ diff --git a/images/cookbook-96.png b/images/cookbook-96.png new file mode 100755 index 0000000..2f45725 Binary files /dev/null and b/images/cookbook-96.png differ diff --git a/images/pretzel-shape.jpg b/images/pretzel-shape.jpg deleted file mode 100644 index e19bb76..0000000 Binary files a/images/pretzel-shape.jpg and /dev/null differ diff --git a/list-recipes.js b/index.js similarity index 74% rename from list-recipes.js rename to index.js index 6cce20a..0c7a1cb 100644 --- a/list-recipes.js +++ b/index.js @@ -1,3 +1,21 @@ +'use strict' + ++function() { + if (!('serviceWorker' in navigator)) { + alert('This Browser does not support ServiceWorkers.') + return + } + if (navigator.serviceWorker.controller) { + console.info('ServiceWorker runs') + return + } + console.info('Registering ServiceWorker ...') + navigator.serviceWorker + .register('./serviceworker.js') + .catch(function(err) { + console.error('ServiceWorker has not been registered!', err) + }) +}() // once document is loaded, load list of markdown files // and generate table of contents, plus a quick-nav list diff --git a/index.php b/index.php index 098820e..e4d2fc3 100644 --- a/index.php +++ b/index.php @@ -3,10 +3,14 @@