Browse Source

Add index for linking to both anagram games.

master
Daniel Perelman 2 years ago
parent
commit
a658310214
7 changed files with 124 additions and 8 deletions
  1. +69
    -0
      build_qr.sh
  2. +1
    -0
      source
  3. +2
    -0
      www/bagels/description
  4. +0
    -0
      www/bagels/offline
  5. +1
    -0
      www/crossword/description
  6. +0
    -0
      www/crossword/offline
  7. +51
    -8
      www/index.html

+ 69
- 0
build_qr.sh View File

@@ -0,0 +1,69 @@
#!/bin/sh

cat > www/index.html <<DOC
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>A Weird Imagination anagram games</title>
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
</head>
<body>
<header>
<nav>
Back to
<a href="../">all web apps</a>
</nav>
</header>
<h1>Anagram Games</h1>
<ul class="apps">
DOC

for app in $(find www -mindepth 1 -maxdepth 1 -type d -exec basename {} \;)
do
if [ "$app" != "wordlist" -a "$app" != "static" ]
then
qrencode -o "../root/www/static/qr/anagram-games-${app}.png" "https://apps.aweirdimagination.net/anagram-games/${app}/"
if [ -f "www/$app/description" ]
then
description=$(cat "www/$app/description")
else
description=$app
fi
if [ -f "www/$app/offline" ]
then
offline=" offline"
else
offline=""
fi
cat >> www/index.html <<DOC
<li>
<div class="app">
<div class="qr">
<a href="/static/qr/anagram-games-${app}.png">
<img class="qr" src="/static/qr/anagram-games-${app}.png"/>
</a>
</div>
<div class="text$offline">
<a href="$app/">$app</a>:
$description
</div>
</div>
</li>
DOC
fi
done

cat >> www/index.html <<DOC
</ul>
<footer>
Web apps by
<a href="https://aweirdimagination.net/~perelman/">Daniel
Perelman</a>,
author of the blog <a href="https://aweirdimagination.net/">A Weird
Imagination</a>.
</footer>
</body>
</html>
DOC

+ 1
- 0
source View File

@@ -0,0 +1 @@
https://git.aweirdimagination.net/perelman/anagram-games

+ 2
- 0
www/bagels/description View File

@@ -0,0 +1,2 @@
Guess words for clues on the secret word of whether letters are in the
right place or in the secret word at all.

+ 0
- 0
www/bagels/offline View File


+ 1
- 0
www/crossword/description View File

@@ -0,0 +1 @@
Crossword puzzles clued only by available letters.

+ 0
- 0
www/crossword/offline View File


+ 51
- 8
www/index.html View File

@@ -1,11 +1,54 @@
<!doctype html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta http-equiv="refresh" content="0; url=bagels/" />
</head>
<body>
Redirecting to <a href="bagels/">bagels/</a>&hellip;
</body>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>A Weird Imagination anagram games</title>
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
</head>
<body>
<header>
<nav>
Back to
<a href="../">all web apps</a>
</nav>
</header>
<h1>Anagram Games</h1>
<ul class="apps">
<li>
<div class="app">
<div class="qr">
<a href="/static/qr/anagram-games-crossword.png">
<img class="qr" src="/static/qr/anagram-games-crossword.png"/>
</a>
</div>
<div class="text offline">
<a href="crossword/">crossword</a>:
Crossword puzzles clued only by available letters.
</div>
</div>
</li>
<li>
<div class="app">
<div class="qr">
<a href="/static/qr/anagram-games-bagels.png">
<img class="qr" src="/static/qr/anagram-games-bagels.png"/>
</a>
</div>
<div class="text offline">
<a href="bagels/">bagels</a>:
Guess words for clues on the secret word of whether letters are in the
right place or in the secret word at all.
</div>
</div>
</li>
</ul>
<footer>
Web apps by
<a href="https://aweirdimagination.net/~perelman/">Daniel
Perelman</a>,
author of the blog <a href="https://aweirdimagination.net/">A Weird
Imagination</a>.
</footer>
</body>
</html>

Loading…
Cancel
Save