{% extends 'otreeutils/ExtendedPage.html' %} {% load staticfiles otree_tags %} {% block content %}
A timeout warning after 10 seconds with a custom warning message. No auto-submit or anything like that.
This is your page class:
class ExtendedPageWithTimeoutWarning(ExtendedPage): timeout_warning_seconds = 10 timeout_warning_message = "You're too slow. Hurry up!"
Don't forget this at the beginning of you template file:
{% verbatim %} {% extends "otreeutils/ExtendedPage.html" %} {% endverbatim %}
You can also use timeout warnings in understanding questions pages.
{% next_button %} {% endblock %}