Skip to content

Conversation

@NekoNinaUwU
Copy link

i added a simple feature wished by some other people. when you click on the status banner, a new tab will be opened with the heatmap from spaceall. the hover for last change feature is still there.


<div class="club-status-wrapper">
<a href="https://mapall.space/heatmap/show.php?id=Entropia" target="_blank" rel="noopener noreferrer"></a>
<span class="club-status"></span>
Copy link
Member

@DO1JLR DO1JLR Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich frag mal ganz naiv, sollte sich das </a> nicht eher nach dem <span class="club-status"></span> Schließen?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disclaimer, wenig Ahnung von HTML. Daher naiv zurückgefragt; wieso? Bzw kommt drauf an, so viel ich weiß?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Man möchte ja den Teil den man anklickt innerhalb des <a> tags haben. Und das ist ja eigentlich diese Club Status anzeige...

Beispiel:

<a href="http://example.com">Dieser Text führt nach example.com</a>

Copy link
Member

@pascalwittler pascalwittler Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vielleicht ergänzend ein bisschen Kontext:

<span class="club-status"></span> ist das Element, in welches per Javascript nach Abfrage der SpaceAPI das Wort "geöffnet" bzw. "geschlossen" geschrieben wird und welches, ebenfalls per Javascript, eine zusätzliche Klasse erhält, um die grüne oder rote Hintergrundfarbe zu setzen.

Es könnte also auch das <span> durch den vorgeschlagenen <a>-Tag mit der Klasse club-status ersetzt werden.

@pascalwittler
Copy link
Member

Besteht der Wunsch noch bzw. hat jemand die Vorschläge umgesetzt?

@NekoNinaUwU
Copy link
Author

Umgesetzt bisher nicht, aber würds gern noch machen. Ich setz mich später nochmal ran, sofern das nicht jemand anders schnell umschreibt ^^
danke für den Reminder

@pascalwittler
Copy link
Member

Hier nochmal ein kleiner Reminder 🤩

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

Successfully merging this pull request may close these issues.

3 participants