diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-01 16:45:30 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-01 16:45:30 +0200 |
commit | 9f008e64ce401673c878b1098f4db41d66d1c56a (patch) | |
tree | d0f54e1ce8f052c81905ca53bb1ee3b6d4714236 /static | |
parent | f01369628016ba3038cccac77ba54bcd6be6630b (diff) | |
download | jnfilter-9f008e64ce401673c878b1098f4db41d66d1c56a.tar.gz jnfilter-9f008e64ce401673c878b1098f4db41d66d1c56a.tar.bz2 jnfilter-9f008e64ce401673c878b1098f4db41d66d1c56a.zip |
feat: Add option to change feed's metadatav1.0.0
Diffstat (limited to 'static')
-rw-r--r-- | static/index.html | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/static/index.html b/static/index.html index 25341fe..266aff6 100644 --- a/static/index.html +++ b/static/index.html @@ -108,7 +108,7 @@ a { } main { - width: 40%; + width: 50%; margin: 0 auto; } @@ -181,6 +181,18 @@ main { <div class="section"> <input class="form-ctl" type="checkbox" onchange="updateList(this)" id="parceiro" /><a>Papo de Parceiro</a> </div> + <hr/> + <div class="section"> + <input class="form-ctl" type="checkbox" onchange="updateTag(this)" /> + <a>Mudar metadata</a> + </div> + <div class="section"> + <p> Caso você use um agregador que gerencie o feed para você + (como pocketcast), talvez você precise habilitar esta opção para + mudar o metadata do feed, fazendo assim com que ele seja + reconhecido como um feed único. + </p> + </div> <div class="section"> <a id="feedUrl" href="https://jnfilter.gabrielgio.me?q=mamicas" type="textbox">https://jnfilter.gabrielgio.me</a> </div> @@ -188,6 +200,7 @@ main { <script> var feedUrl = document.getElementById("feedUrl") var fields = new Set() +var tag = false function updateFeedUrl() { if (fields.size == 0) { @@ -195,6 +208,15 @@ function updateFeedUrl() { } else { url = "https://jnfilter.gabrielgio.me?q="+[...fields].join(',') } + + if (tag) { + if (fields.size == 0) { + url += "?tag=true" + } else { + url += "&tag=true" + } + } + feedUrl.textContent = url feedUrl.href = url } @@ -207,6 +229,11 @@ function updateList(elem) { } updateFeedUrl() } + +function updateTag(elem) { + tag = elem.checked + updateFeedUrl() +} </script> </body> </html> |