-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add stabile political message to dashboard
- Loading branch information
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
document.addEventListener("DOMContentLoaded", () => { | ||
const dialog = document.getElementById("stabile-message"); | ||
|
||
// close dialog when clicked | ||
const close = () => dialog.style.display = "none"; | ||
dialog.addEventListener("click", close); | ||
|
||
// alternatively, also close dialog after 20 seconds | ||
setTimeout(close, 20 * 1000); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import random | ||
|
||
from django import template | ||
|
||
register = template.Library() | ||
|
||
|
||
possible_texts = [ | ||
"Du bist die Brandmauer gegen Rechts", | ||
"„Unpolitisch“ ist politisch", | ||
"Die AfD ist die mit Abstand größte Gefahr für unsere Gesellschaft! #AfDVerbotJetzt", | ||
"Sich an Antifaschismus stören ist so 1933", | ||
"Dieser Service wird nicht von Faschisten betrieben", | ||
"Menschenrechte statt rechte Menschen", | ||
"Kein Mensch ist illegal", | ||
"„Nie wieder“ ist immer, nicht nur alle 4 Jahre beim Kreuzchen machen", | ||
"Kein Platz für Rassismus", | ||
"Trans rights are human rights", | ||
"Trans rights or riot nights", | ||
"Die Brandmauer ist überall. Auch im Studium!", | ||
"Nazis morden, der Staat schiebt ab – das ist das gleiche Rassistenpack", | ||
"AfDler verpisst euch – keiner vermisst euch", | ||
"Seenotrettung ist kein Verbrechen", | ||
"Nein heißt Nein, No means No, wer das sagt der meints auch so", | ||
] | ||
|
||
|
||
@register.simple_tag | ||
def stabile_message() -> str: | ||
print("Hi") | ||
return random.choice(possible_texts) |