diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-01-05 04:18:34 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-01-05 04:19:56 +0000 |
| commit | 51182152518407a9fb55e511eafc5fd24d52dff1 (patch) | |
| tree | 2ba80416a97e78657eea4a7509407a0eb4564e41 /laravel/public | |
| parent | 4492535d2a36287b92e31e0af4e82be9c14bef9e (diff) | |
| download | prosongsa-51182152518407a9fb55e511eafc5fd24d52dff1.tar.gz | |
* Gemini Song Page: Add chord symbols
Diffstat (limited to 'laravel/public')
| -rwxr-xr-x | laravel/public/chord.svg | 4 | ||||
| l--------- | laravel/public/public | 1 | ||||
| -rwxr-xr-x | laravel/public/song.gmi.php | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/laravel/public/chord.svg b/laravel/public/chord.svg new file mode 100755 index 0000000..4b62993 --- /dev/null +++ b/laravel/public/chord.svg @@ -0,0 +1,4 @@ +#!/bin/sh +printf "20 image/svg+xml\r\n" +# TODO: Strip the preceding slash from $PATH_INFO +ccharter $QUERY_STRING $PATH_INFO diff --git a/laravel/public/public b/laravel/public/public new file mode 120000 index 0000000..945c9b4 --- /dev/null +++ b/laravel/public/public @@ -0,0 +1 @@ +. \ No newline at end of file diff --git a/laravel/public/song.gmi.php b/laravel/public/song.gmi.php index e4a84d6..2535ca2 100755 --- a/laravel/public/song.gmi.php +++ b/laravel/public/song.gmi.php @@ -29,6 +29,9 @@ printf("30 " . Song::inRandomOrder()->first()->id . "\r\n");return; <?= $song->textTranspose(getenv('QUERY_STRING')??'') ?> ``` +<?php foreach($song->chords as $symbol => $tabs): ?> +=> /chord.svg/<?=$symbol?>?<?=$tabs[0]?> <?= $symbol ?> chord symbol +<?php endforeach; ?> => mailto:zachdecook+songs@gmail.com?subject=<?= rawurlencode(json_encode([ |
