--- API: 3 OpenSesame: 4.0.29 Platform: nt --- set width 1024 set title "vars from inline html" set subject_parity even set subject_nr 0 set start experiment set sound_sample_size -16 set sound_freq 48000 set sound_channels 2 set sound_buf_size 1024 set sampler_backend osweb set round_decimals 2 set mouse_backend osweb set keyboard_backend osweb set jatos_uuid "60e8cb79-20d4-05ed-b440-e53564d619b5" set height 768 set fullscreen no set form_clicks no set foreground white set font_underline no set font_size 18 set font_italic False set font_family mono set font_bold False set experiment_path None set disable_garbage_collection False set description "The main experiment item" set color_backend osweb set clock_backend osweb set canvas_backend osweb set background "#3d3846" define inline_javascript Initialize set description "Executes Python code" set _run "" ___prepare__ // the variable must be initialized (best do this in the prepare phase of this early object) vars.age='' __end__ define inline_html ask_for_age __html__ Enter Your Age

Please enter your age:



__end__ set description "Embeds custom HTML" define feedback check set reset_variables yes set duration keypress set description "Provides feedback to the participant" draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=26 html=yes show_if=True text="Age entered: {age}" x=0 y=0 z_index=0 define sequence experiment set flush_keyboard yes set description "Runs a number of items in sequence" run Initialize True run ask_for_age True run check True run new_logger True define logger new_logger set description "Logs experimental data" set auto_log yes