Q&A Widget

Embed a floating "Ask a question" button on any site. Each iframe is tied to one of three sessions. Moderators see only their own session; the admin sees everything.

1. Embed snippets per session

Session 1 — HTML
<iframe
  src="/widget?session=session1"
  style="position:fixed;bottom:0;right:0;width:360px;height:480px;border:0;background:transparent;z-index:9999;"
  allowtransparency="true"
></iframe>
Session 2 — HTML
<iframe
  src="/widget?session=session2"
  style="position:fixed;bottom:0;right:0;width:360px;height:480px;border:0;background:transparent;z-index:9999;"
  allowtransparency="true"
></iframe>
Session 3 — HTML
<iframe
  src="/widget?session=session3"
  style="position:fixed;bottom:0;right:0;width:360px;height:480px;border:0;background:transparent;z-index:9999;"
  allowtransparency="true"
></iframe>

2. Live preview (Session 1)

3. Moderation links

Each moderator gets a private link that only shows their session's questions:

  • Session 1: /moderate/mod145/<secret>
  • Session 2: /moderate/mod256/<secret>
  • Session 3: /moderate/mod367/<secret>

Replace <secret> with the shared MODERATION_SECRET. The slug picks the session; the secret authorizes access.

4. Admin (all sessions)

The admin page is password-protected and shows questions from every session:

/admin

Set the admin password in the ADMIN_PASSWORD environment variable.