mirror of
https://github.com/Roslund/sthlm-mesh.git
synced 2026-08-06 17:02:56 +02:00
deploy: 5820d02e92
This commit is contained in:
@@ -178,22 +178,6 @@ Detta har gjort WisBlock RAK4631 det självklara valet vid bygget av en solnod.&
|
||||
<span class="badge rounded-pill bg-dark">?</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-toolbar mb-2" role="toolbar" aria-label="Channel toolbar">
|
||||
<div class="btn-group btn-group-sm me-2" role="group" aria-label="Channel filter">
|
||||
<input type="radio" class="btn-check" name="btnchannel" id="channelAll" autocomplete="off" checked>
|
||||
<label class="btn btn-outline-primary" for="channelAll">Alla</label>
|
||||
</div>
|
||||
<div class="btn-group btn-group-sm me-2" role="group" aria-label="Basic radio toggle button group">
|
||||
<input type="radio" class="btn-check" name="btnchannel" id="channelMediumFast" data-channel="MediumFast" autocomplete="off">
|
||||
<label class="btn btn-outline-primary" for="channelMediumFast">MediumFast</label>
|
||||
|
||||
<input type="radio" class="btn-check" name="btnchannel" id="channelLongFast" data-channel="LongFast" autocomplete="off">
|
||||
<label class="btn btn-outline-primary" for="channelLongFast">LongFast</label>
|
||||
</div>
|
||||
<div data-bs-toggle="tooltip" data-bs-placement="right" title="Filtrera på kanal eller visa alla.">
|
||||
<span class="badge rounded-pill bg-dark">?</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="loading"><p>Loading...</p></description></item><item><title>Om STHLM-MESH</title><link>https://sthlm-mesh.se/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://sthlm-mesh.se/about/</guid><description><link rel="preload" as="image" href="https://sthlm-mesh.se/about/background-sunset_hu_e3de9a257b7b9dc5.jpeg" media="(max-width: 1200px)">
|
||||
<link rel="preload" as="image" href="https://sthlm-mesh.se/about/background-sunset_hu_91e95a2bc8ac4fa2.jpeg" media="(min-width: 1200px)">
|
||||
<style>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
document.addEventListener("DOMContentLoaded", async function () {
|
||||
const messagesContainer = document.getElementById("messages");
|
||||
const radioButtons = document.querySelectorAll("input[name='btnradio']");
|
||||
const channelRadioButtons = document.querySelectorAll("input[name='btnchannel']");
|
||||
const loadingDiv = document.getElementById("loading");
|
||||
const messagesList = document.createElement("div");
|
||||
messagesList.style="max-height:70vh;overflow: auto;"
|
||||
@@ -26,23 +25,11 @@ document.addEventListener("DOMContentLoaded", async function () {
|
||||
radio.addEventListener("change", fetchMessages);
|
||||
});
|
||||
|
||||
channelRadioButtons.forEach(radio => {
|
||||
radio.addEventListener("change", fetchMessages);
|
||||
});
|
||||
|
||||
|
||||
async function fetchMessages() {
|
||||
try {
|
||||
let url = "https://map.sthlm-mesh.se/api/v1/text-messages?order=desc&count=300";
|
||||
const selectedRadio = document.querySelector("input[name='btnradio']:checked");
|
||||
const selectedChannel = document.querySelector("input[name='btnchannel']:checked");
|
||||
|
||||
if (selectedChannel) {
|
||||
const channelId = selectedChannel.getAttribute('data-channel');
|
||||
if (channelId) {
|
||||
url += `&channel_id=${encodeURIComponent(channelId)}`;
|
||||
}
|
||||
}
|
||||
|
||||
const response = await fetch(url);
|
||||
const data = await response.json();
|
||||
|
||||
+2
-6
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://sthlm-mesh.se/docs/settings/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/device_role/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/position/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meetup-1-oktober-sundbyberg/</loc><lastmod>2025-09-24T19:44:30+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/%C3%B6verg%C3%A5ng-till-mediumfast-den-27-september/</loc><lastmod>2025-09-21T22:33:53+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meshtastic-p%C3%A5-sec-t/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meetup-19-augusti-telefonplan/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meetup-8-april-sundbyberg/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2024/meetup-4-september-sundbyberg/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2024/meetup-15-maj-urban-deli/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/</loc><lastmod>2025-08-24T19:47:51+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/mqtt/</loc><lastmod>2025-03-31T19:16:34+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/meetups/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/neighbor_info/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/past-meetups/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/kartor/</loc><lastmod>2025-03-08T20:11:28+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/hardware/</loc><lastmod>2025-04-21T12:00:04+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/solar_nodes/</loc><lastmod>2025-04-21T01:54:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/communities/</loc><lastmod>2025-02-23T20:48:06+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/categories/</loc></url><url><loc>https://sthlm-mesh.se/docs/</loc><lastmod>2025-03-03T22:48:04+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/messages/</loc><lastmod>2025-09-28T21:23:33+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/about/</loc><lastmod>2025-02-23T18:02:23+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/status/</loc><lastmod>2025-10-19T09:18:01+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/</loc><lastmod>2025-09-21T21:23:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/tags/</loc></url></urlset>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://sthlm-mesh.se/docs/settings/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/device_role/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/position/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meetup-1-oktober-sundbyberg/</loc><lastmod>2025-09-24T19:44:30+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/%C3%B6verg%C3%A5ng-till-mediumfast-den-27-september/</loc><lastmod>2025-09-21T22:33:53+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meshtastic-p%C3%A5-sec-t/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meetup-19-augusti-telefonplan/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2025/meetup-8-april-sundbyberg/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2024/meetup-4-september-sundbyberg/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/2024/meetup-15-maj-urban-deli/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/</loc><lastmod>2025-08-24T19:47:51+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/mqtt/</loc><lastmod>2025-03-31T19:16:34+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/meetups/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/neighbor_info/</loc><lastmod>2025-09-28T18:34:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/blog/past-meetups/</loc><lastmod>2025-09-21T20:27:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/kartor/</loc><lastmod>2025-03-08T20:11:28+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/hardware/</loc><lastmod>2025-04-21T12:00:04+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/solar_nodes/</loc><lastmod>2025-04-21T01:54:22+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/communities/</loc><lastmod>2025-02-23T20:48:06+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/categories/</loc></url><url><loc>https://sthlm-mesh.se/docs/</loc><lastmod>2025-03-03T22:48:04+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/messages/</loc><lastmod>2025-11-02T11:29:51+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/about/</loc><lastmod>2025-02-23T18:02:23+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/status/</loc><lastmod>2025-10-19T09:18:01+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/</loc><lastmod>2025-09-21T21:23:50+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/tags/</loc></url></urlset>
|
||||
Reference in New Issue
Block a user