diff --git a/index.xml b/index.xml index a82e277..f6d2636 100644 --- a/index.xml +++ b/index.xml @@ -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>Om STHLM-MESHhttps://sthlm-mesh.se/about/Mon, 01 Jan 0001 00:00:00 +0000https://sthlm-mesh.se/about/<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> diff --git a/js/messages.js b/js/messages.js index 72c7bcb..897086d 100644 --- a/js/messages.js +++ b/js/messages.js @@ -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(); diff --git a/messages/index.html b/messages/index.html index c923ada..c778a11 100644 --- a/messages/index.html +++ b/messages/index.html @@ -1,5 +1,5 @@ Meddelanden | STHLM-MESH -

Senaste meddelanden

\ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index 56667c2..b593d43 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://sthlm-mesh.se/docs/settings/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/docs/device_role/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/docs/position/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/blog/2025/meetup-1-oktober-sundbyberg/2025-09-24T19:44:30+02:00https://sthlm-mesh.se/blog/2025/%C3%B6verg%C3%A5ng-till-mediumfast-den-27-september/2025-09-21T22:33:53+02:00https://sthlm-mesh.se/blog/2025/meshtastic-p%C3%A5-sec-t/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2025/meetup-19-augusti-telefonplan/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2025/meetup-8-april-sundbyberg/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2024/meetup-4-september-sundbyberg/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2024/meetup-15-maj-urban-deli/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2025-08-24T19:47:51+02:00https://sthlm-mesh.se/docs/mqtt/2025-03-31T19:16:34+02:00https://sthlm-mesh.se/blog/meetups/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/docs/neighbor_info/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/blog/past-meetups/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/docs/kartor/2025-03-08T20:11:28+01:00https://sthlm-mesh.se/docs/hardware/2025-04-21T12:00:04+02:00https://sthlm-mesh.se/docs/solar_nodes/2025-04-21T01:54:22+02:00https://sthlm-mesh.se/docs/communities/2025-02-23T20:48:06+01:00https://sthlm-mesh.se/categories/https://sthlm-mesh.se/docs/2025-03-03T22:48:04+01:00https://sthlm-mesh.se/messages/2025-09-28T21:23:33+02:00https://sthlm-mesh.se/about/2025-02-23T18:02:23+01:00https://sthlm-mesh.se/status/2025-10-19T09:18:01+02:00https://sthlm-mesh.se/2025-09-21T21:23:50+02:00https://sthlm-mesh.se/tags/ \ No newline at end of file +https://sthlm-mesh.se/docs/settings/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/docs/device_role/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/docs/position/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/blog/2025/meetup-1-oktober-sundbyberg/2025-09-24T19:44:30+02:00https://sthlm-mesh.se/blog/2025/%C3%B6verg%C3%A5ng-till-mediumfast-den-27-september/2025-09-21T22:33:53+02:00https://sthlm-mesh.se/blog/2025/meshtastic-p%C3%A5-sec-t/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2025/meetup-19-augusti-telefonplan/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2025/meetup-8-april-sundbyberg/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2024/meetup-4-september-sundbyberg/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2024/meetup-15-maj-urban-deli/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/blog/2025-08-24T19:47:51+02:00https://sthlm-mesh.se/docs/mqtt/2025-03-31T19:16:34+02:00https://sthlm-mesh.se/blog/meetups/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/docs/neighbor_info/2025-09-28T18:34:50+02:00https://sthlm-mesh.se/blog/past-meetups/2025-09-21T20:27:22+02:00https://sthlm-mesh.se/docs/kartor/2025-03-08T20:11:28+01:00https://sthlm-mesh.se/docs/hardware/2025-04-21T12:00:04+02:00https://sthlm-mesh.se/docs/solar_nodes/2025-04-21T01:54:22+02:00https://sthlm-mesh.se/docs/communities/2025-02-23T20:48:06+01:00https://sthlm-mesh.se/categories/https://sthlm-mesh.se/docs/2025-03-03T22:48:04+01:00https://sthlm-mesh.se/messages/2025-11-02T11:29:51+01:00https://sthlm-mesh.se/about/2025-02-23T18:02:23+01:00https://sthlm-mesh.se/status/2025-10-19T09:18:01+02:00https://sthlm-mesh.se/2025-09-21T21:23:50+02:00https://sthlm-mesh.se/tags/ \ No newline at end of file