{% macro blank(params) %} {% endmacro %} {% macro null(params) %} {# This macro is here for back-compatibility #} {{ next_button(params) }} {% endmacro %} {% macro generic_button(params) %} {% endmacro %} {% macro next_button(params) %} {% endmacro %} {% macro reset_button(params) %} {% endmacro %} {% macro push_button(params) %} {% endmacro %} {% macro push_buttons(params) %}
{% for button in params.push_buttons %} {{ push_button(button) }} {% endfor %}
{% if params.timed == true %} {# This is for back-compatibility #}

{% endif %} {% endmacro %} {% macro keyboard_push_buttons(params) %} {{ push_buttons(params) }} {% endmacro %} {% macro checkbox(params) %} {% endmacro %} {% macro checkboxes(params) %}
{% for _checkbox in params.checkboxes %} {{ checkbox(_checkbox) }} {% endfor %}

{% endmacro %} {% macro radiobutton(params) %} {% endmacro %} {% macro radiobuttons(params) %}
{% for button in params.radiobuttons %} {{ radiobutton(button) }} {% endfor %}

{% endmacro %} {% macro dropdown_option(params) %} {% endmacro %} {% macro dropdown(params) %}

{% endmacro %} {% macro media_slider(params) %} {{ slider(params) }} {% endmacro %} {% macro audio_media_slider(params) %} {{ media_slider(params) }} {% endmacro %} {% macro image_media_slider(params) %}

{{ media_slider(params) }} {% endmacro %} {% macro html_media_slider(params) %}

{{ media_slider(params) }} {% endmacro %} {% macro video_media_slider(params) %}

{{ media_slider(params) }} {% endmacro %} {% macro color_slider(params) %} {{ slider(params) }} {% for color, value in params.hidden_inputs.items() %} {% endfor %} {% endmacro %} {% macro HTML5_range_slider(params) %} {% endmacro %} {% macro circular_slider(params) %} {# #}
{% endmacro %} {% macro slider(params) %} {% if params.input_type == "HTML5_range_slider" %} {{ HTML5_range_slider(params) }} {% elif params.input_type == "circular_slider" %} {{ circular_slider(params) }} {% endif %}

{% if params.template_filename %} {% include params.template_filename %} {% endif %} {% endmacro %} {% macro multi_slider(params) %}
{% for s in params.sliders %}
{{ s.label }} NA
{% endfor %}
{% endmacro %} {% macro audio_meter(params) %}
{% if params.calibrate %} {{ audio_meter_calibrate(params) }} {% endif %}
{% endmacro %} {% macro audio_meter_calibrate(params) %}
{{ multi_slider(params.sliders) }}

{{ pgettext("audio_meter_calibrate", "The decay parameters determine the amount of smoothing that happens to the signal, and have units of seconds.") }} {{ pgettext("audio_meter_calibrate", "A high decay parameter means that the signal takes a long time to decay (i.e. high smoothing).") }} {{ pgettext("audio_meter_calibrate", "There are three decay parameters: one for the displayed audio meter, one for the 'too-high' detector, and one for the 'too-low' detector.") }}

{{ pgettext("audio_meter_calibrate", "The threshold parameters determine the point at which the volume is determined to be 'too high' or 'too low'.") }}

{{ pgettext("audio_meter_calibrate", "The grace parameters determine how long the volume must be outside the respective threshold for a warning message to be triggered.") }}

{{ pgettext("audio_meter_calibrate", "The message duration parameters determine how long warning messages are displayed for.") }}

{% endmacro %} {% macro generic_record(params) %} {% if params.show_meter %} {{ audio_meter(params.meter) }} {% endif %} {% if params.controls %}
{# #}
{% endif %} {% endmacro %} {% macro audio_record(params) %} {{ generic_record(params) }} {% endmacro %} {% macro video_record(params) %} {{ generic_record(params) }}
{% endmacro %} {% macro text(params) %}
<{% if params.one_line %}input{% else %}textarea{% endif %} id="text-input" class="form-control response" type="text" autocomplete="off" value="" {% if params.block_copy_paste %}onselectstart="return false" oncut="return false" oncopy="return false" onpaste="return false" ondrag="return false" ondrop="return false"{% endif %}><{% if params.one_line %}/input{% else %}/textarea{% endif %}>

{% endmacro %} {% macro number(params) %}

{% endmacro %} {% macro frame_slider(params) %}
{% endmacro %} {% from "macros/graphics.html" import graphic_%} {% macro graphic(params) %} {{ graphic_(params) }} {% endmacro %} {% macro survey_js(params) %}
{% endmacro %} {% macro terminate_control(params) %}
{% for item in params.items %} {% endfor %}
{% endmacro %}