From dd8037abe7898ce120007b2a4f5fc3d96d20340b Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 6 Jan 2025 04:10:51 +0100 Subject: Clean up static files, they're not templates --- halfnarp2.py | 3 +- static/faq.html | 44 ++++++++++++++++++++ static/index.html | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++ templates/faq.html | 44 -------------------- templates/index.html | 115 --------------------------------------------------- 5 files changed, 161 insertions(+), 160 deletions(-) create mode 100644 static/faq.html create mode 100644 static/index.html delete mode 100644 templates/faq.html delete mode 100644 templates/index.html diff --git a/halfnarp2.py b/halfnarp2.py index 314b1b4..0cc3906 100755 --- a/halfnarp2.py +++ b/halfnarp2.py @@ -25,10 +25,11 @@ class TalkPreference(db.Model): talk_ids = db.Column(db.String) +""" @app.route("/") def root(): return render_template("index.html") - +""" @app.route("/-/talkpreferences", methods=["GET"]) def sessions(): diff --git a/static/faq.html b/static/faq.html new file mode 100644 index 0000000..aefd03d --- /dev/null +++ b/static/faq.html @@ -0,0 +1,44 @@ + + + + + halfnarp FAQ + + + + +
The 38C3 halfnarp FAQ
+ +
+
Q: What is halfnarp?
+
+

A: halfnarp is a service by Chaos Communication Congress’ content crew. It shows a live preview of our conference lecture planning tool and allows conference attendees to store and share a list of events they plan to attend. When users submit their favorites to the halfnarp server, the numbers allow adjusting the conference’s Fahrplan.

+ +

Remember when some of the talks you most desperately wanted to see were scheduled at the same time? If we know about your preferences, the time table can be optimized for a minimal global amount of collisions. Remember when the lecture you wanted to get into was overcrowded because it was put into the smallest hall? Your numbers help to estimate demand and finding the right place for a talk.

+
+
Q: How does it work?
+
+

A: 38C3 Fahrplan is curated by six teams each responsible for one track. By default, lectures are sorted by these tracks.

+
    +
  • On a desktop browser, hovering over an event’s description reveals the full abstract. Clicking on an event adds or removes events to/from your favorites list – they turn green.
  • +
  • On mobile browsers, tapping an event once selects it and reveals the whole content. Tapping a selected event adds or removes events to/from your favorites list – they turn green.
  • +
+

Your choices will be stored locally in your browser for future visits. If you are done selecting and feel like helping to make the Fahrplan better, hit „Submit“. This will also reveal a download button for your personalized calendar in ical format and present a qrcode with a JSON dictionary of your preferences to import by mobile clients.

+

Once there is a preliminary timetable set, you can browse lectures by day using the day-view buttons.

+

The „Filter event“ text field allows you to filter events list by a type ahead search.

+
+
Q: How can I share my preferences?
+
+

A: Once you hit „Submit“, your address bar reveals your public calendar URL. Share this URL with your friends, so they can get inspired by your preferences.

+

If you click on your friends’ public calendar URL, their favorited events appear purple, alongside yours in green.

+
+
Q: Can the halfnarp be used to hack the Fahrplan?
+
+

A: The most important result is a conflict map showing how much all users do not want two certain lectures to happen at the same time. Absolute number are mostly ignored, making it hard to manipulate our Fahrplan. Also, results are being processed by actual humans, using their brains and halfnarps numbers as hints.

+
+
Q: How can I help?
+
+

A: Submitting your preferences to the halfnarp servers helps a lot. You can find and create pull requests for halfnarp on its github home.

+
+ + diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..2e93fb3 --- /dev/null +++ b/static/index.html @@ -0,0 +1,115 @@ + + + + + halfnarp web scheduling helper app + + + + + + + + +
+ +
list
+
days
+
day 1
+
day 2
+
day 3
+
day 4
+
half
+
track
+
lang
+
+
+
size
Size
SIZE
+
+
+
+ +
+
+
+
+
+
+
+ + + +
+

The 38C3 halfnarp

+ +

Help us to reduce conflicts of scheduling 38C3's Fahrplan: Click on the talks you would like to watch and press submit.

+

For questions please read our FAQ and our blogpost for details. Please report problems to erdgeist@ccc.de.

+

Select an event below to display halfnarp correlations, the darker the stronger.

+ +
+ +
+ +
Saal 1
Saal GLITCH
Saal ZIGZAG
+
Saal 1
Saal GLITCH
Saal ZIGZAG
+
Saal 1
Saal GLITCH
Saal ZIGZAG
+
Saal 1
Saal GLITCH
Saal ZIGZAG
+ +
P A U S E
+ + +
+ +
Day 1
+
Day 2
+
Day 3
+
Day 4
+ +

Security

+

Hardware & Making

+

Ethics, Society & Politics

+

CCC

+

Entertainment

+

Science

+

Art & Beauty

+ +
+ +
Submit selection + +
+ + + +
+ + + diff --git a/templates/faq.html b/templates/faq.html deleted file mode 100644 index aefd03d..0000000 --- a/templates/faq.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - halfnarp FAQ - - - - -
The 38C3 halfnarp FAQ
- -
-
Q: What is halfnarp?
-
-

A: halfnarp is a service by Chaos Communication Congress’ content crew. It shows a live preview of our conference lecture planning tool and allows conference attendees to store and share a list of events they plan to attend. When users submit their favorites to the halfnarp server, the numbers allow adjusting the conference’s Fahrplan.

- -

Remember when some of the talks you most desperately wanted to see were scheduled at the same time? If we know about your preferences, the time table can be optimized for a minimal global amount of collisions. Remember when the lecture you wanted to get into was overcrowded because it was put into the smallest hall? Your numbers help to estimate demand and finding the right place for a talk.

-
-
Q: How does it work?
-
-

A: 38C3 Fahrplan is curated by six teams each responsible for one track. By default, lectures are sorted by these tracks.

-
    -
  • On a desktop browser, hovering over an event’s description reveals the full abstract. Clicking on an event adds or removes events to/from your favorites list – they turn green.
  • -
  • On mobile browsers, tapping an event once selects it and reveals the whole content. Tapping a selected event adds or removes events to/from your favorites list – they turn green.
  • -
-

Your choices will be stored locally in your browser for future visits. If you are done selecting and feel like helping to make the Fahrplan better, hit „Submit“. This will also reveal a download button for your personalized calendar in ical format and present a qrcode with a JSON dictionary of your preferences to import by mobile clients.

-

Once there is a preliminary timetable set, you can browse lectures by day using the day-view buttons.

-

The „Filter event“ text field allows you to filter events list by a type ahead search.

-
-
Q: How can I share my preferences?
-
-

A: Once you hit „Submit“, your address bar reveals your public calendar URL. Share this URL with your friends, so they can get inspired by your preferences.

-

If you click on your friends’ public calendar URL, their favorited events appear purple, alongside yours in green.

-
-
Q: Can the halfnarp be used to hack the Fahrplan?
-
-

A: The most important result is a conflict map showing how much all users do not want two certain lectures to happen at the same time. Absolute number are mostly ignored, making it hard to manipulate our Fahrplan. Also, results are being processed by actual humans, using their brains and halfnarps numbers as hints.

-
-
Q: How can I help?
-
-

A: Submitting your preferences to the halfnarp servers helps a lot. You can find and create pull requests for halfnarp on its github home.

-
- - diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 2e93fb3..0000000 --- a/templates/index.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - halfnarp web scheduling helper app - - - - - - - - -
- -
list
-
days
-
day 1
-
day 2
-
day 3
-
day 4
-
half
-
track
-
lang
-
-
-
size
Size
SIZE
-
-
-
- -
-
-
-
-
-
-
- - - -
-

The 38C3 halfnarp

- -

Help us to reduce conflicts of scheduling 38C3's Fahrplan: Click on the talks you would like to watch and press submit.

-

For questions please read our FAQ and our blogpost for details. Please report problems to erdgeist@ccc.de.

-

Select an event below to display halfnarp correlations, the darker the stronger.

- -
- -
- -
Saal 1
Saal GLITCH
Saal ZIGZAG
-
Saal 1
Saal GLITCH
Saal ZIGZAG
-
Saal 1
Saal GLITCH
Saal ZIGZAG
-
Saal 1
Saal GLITCH
Saal ZIGZAG
- -
P A U S E
- - -
- -
Day 1
-
Day 2
-
Day 3
-
Day 4
- -

Security

-

Hardware & Making

-

Ethics, Society & Politics

-

CCC

-

Entertainment

-

Science

-

Art & Beauty

- - - - - -- cgit v1.2.3