Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed images/aloo-matar.jpg
Binary file not shown.
Binary file not shown.
Binary file added images/cookbook-144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cookbook-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cookbook-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cookbook-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/pretzel-shape.jpg
Binary file not shown.
18 changes: 18 additions & 0 deletions list-recipes.js → index.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 6 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
<head>
<title>Recipe Book</title>

<!-- pwa -->
<link rel="manifest" href="manifest.json" crossorigin="use-credentials"/>

<!-- basics -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel="icon" type="image/png" href="http://www.jeffreythompson.org/graphics/favicon.png">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" type="image/png" href="images/cookbook-192.png">

<!-- font and styles -->
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,700,700i,900" rel="stylesheet">
Expand Down Expand Up @@ -57,6 +61,6 @@

<!-- javascript does the rest :) -->
<script src="utils.js"></script>
<script src="list-recipes.js"></script>
<script src="index.js"></script>
</html>

28 changes: 28 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"short_name": "Recipe Book",
"name": "Recipe Book",
"icons": [{
"src": "images/cookbook-48.png",
"type": "image/png",
"sizes": "48x48"
},
{
"src": "images/cookbook-96.png",
"type": "image/png",
"sizes": "96x96"
},
{
"src": "images/cookbook-144.png",
"type": "image/png",
"sizes": "144x144"
},
{
"src": "images/cookbook-192.png",
"type": "image/png",
"sizes": "192x192"
}],
"display": "standalone",
"orientation": "portrait",
"start_url": "index.php",
"background_color": "#78909c"
}
19 changes: 0 additions & 19 deletions recipe-template.md

This file was deleted.

File renamed without changes.
6 changes: 3 additions & 3 deletions recipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<!-- basics -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel="icon" type="image/png" href="http://www.jeffreythompson.org/graphics/favicon.png">
<link rel="icon" type="image/png" href="images/cookbook-192.png">

<!-- font and styles -->
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,700,700i,900,900i" rel="stylesheet">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
Expand Down Expand Up @@ -89,6 +89,6 @@

<!-- parses and displays recipe -->
<script src="utils.js"></script>
<script src="create-recipe.js"></script>
<script src="recipe.js"></script>
</html>

47 changes: 0 additions & 47 deletions recipes/aloo-matar.md

This file was deleted.

35 changes: 0 additions & 35 deletions recipes/austro-hungarian-cream-of-horseradish-soup.md

This file was deleted.

34 changes: 0 additions & 34 deletions recipes/baba-ganoush.md

This file was deleted.

52 changes: 0 additions & 52 deletions recipes/bagels.md

This file was deleted.

17 changes: 0 additions & 17 deletions recipes/barbeque-sauce.md

This file was deleted.

24 changes: 0 additions & 24 deletions recipes/beef-tacos.md

This file was deleted.

27 changes: 0 additions & 27 deletions recipes/bhindi-fry.md

This file was deleted.

Loading