Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add Custom Texts and Logo #115

Open
herbetom opened this issue May 15, 2020 · 2 comments
Open

Feature: Add Custom Texts and Logo #115

herbetom opened this issue May 15, 2020 · 2 comments

Comments

@herbetom
Copy link
Member

It would be nice to have some sort of customization options. For example for a welcome Text in which a Community could link their preferred communication channel, their Gluon Site Repo and thinks like that. Also i could imagine that a table with Hardware recommendations could be a nice feature.

Probably this could be achieved by providing a option to define some custom html sections and importing them with JS on page load. How that looks (especially on slow connections) would need to be tested.

@herbetom
Copy link
Member Author

For eample i wanted to have a little more explanation to the Veraltete Geräte anzeigen Block. So i had to create a fork and add that:

Freifunk-Rhein-Neckar@af93211

Shure, in this case i could have used the link feature, but i wanted the text on the download page and not on another page. Also the need for this text should disappear in the nearer future, but the possibilty for some custom html above Schritt 1: Wähle Dein Routermodell would be nice.

@citronalco
Copy link

citronalco commented Oct 13, 2023

Falls hier jemand drüberstoplert:

Um die Texte zu ändern braucht's keinen Fork. Man kann die Texte auch ändern, indem man an's Ende der config.js ein bisschen Javascript schreibt.

Beispiel:

[...]

 // füge Hinweis unter "Erst mit der Freifunk-Firmware...."-Text hinzu
var xpath = "//p[contains(text(),'Erst mit der Freifunk-Firmware')]";
var e = document.evaluate(xpath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
e.innerHTML = e.innerHTML + " \
<p> \
Um einen zukunftssicheren und problemlosen Betrieb sicherzustellen \
und Fehlkäufe zu vermeiden, stellen wir hier keine Firmware mehr \
bereit für Geräte mit nur 4 MByte Flash und/oder nur 32 MByte RAM. \
</p>";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants