text: // In this file you can instantiate your views
  // We here first instantiate wrapping views, then the trial views
  
  
  /** Wrapping views below
  
  * Obligatory properties
  
      * trials: int - the number of trials this view will appear
      * name: string
  
  *Optional properties
      * buttonText: string - the text on the button (default: 'next')
      * text: string - the text to be displayed in this view
      * title: string - the title of this view
  
      * More about the properties and functions of the wrapping views - https://magpie-ea.github.io/magpie-docs/01_designing_experiments/01_template_views/#wrapping-views
  
  */
  
  // Every experiment should start with an intro view. Here you can welcome your participants and tell them what the experiment is about
  const intro = magpieViews.view_generator("intro", {
    trials: 1,
    name: 'intro',
    // If you use JavaScripts Template String `I am a Template String`, you can use HTML <></> and javascript ${} inside
    title: 'Welcome, nice to see you!',
    text: `<br> Thank you for participating in my experiment! <br>
  	<br>
  	You will need around <b>5 minutes</b> to complete the experiment. Please make sure that you will not be distracted.
    Switch off all messaging systems, your phone, any background music etc., and try to concentrate as much as possible on the task at hand.
    <br> 	<br> 	Click on the button below to receive your instructions. `,
    buttonText: 'Show instructions'
  });
  
  // For most tasks, you need instructions views
  const instructions = magpieViews.view_generator("instructions", {
    trials: 1,
    name: 'instructions',
    title: 'General Instructions',
    text: `<br /> In the following you will be presented with different situations, in which you have to make up numbers.
          Read the instructions carefully and enter the number in the presented textbox.`,
    buttonText: 'Go to trials'
  });
  
  
  
  // In the post test questionnaire you can ask your participants addtional questions
  const post_test = magpieViews.view_generator("post_test", {
    trials: 1,
    name: 'post_test',
    title: 'Additional information',
    text: 'Answering the following questions is optional, but your answers will help us analyze our results.'
  
    // You can change much of what appears here, e.g., to present it in a different language, as follows:
    // buttonText: 'Weiter',
    // age_question: 'Alter',
    // gender_question: 'Geschlecht',
    // gender_male: 'männlich',
    // gender_female: 'weiblich',
    // gender_other: 'divers',
    // edu_question: 'Höchster Bildungsabschluss',
    // edu_graduated_high_school: 'Abitur',
    // edu_graduated_college: 'Hochschulabschluss',
    // edu_higher_degree: 'Universitärer Abschluss',
    // languages_question: 'Muttersprache',
    // languages_more: '(in der Regel die Sprache, die Sie als Kind zu Hause gesprochen haben)',
    // comments_question: 'Weitere Kommentare'
  });
  
  // The 'thanks' view is crucial; never delete it; it submits the results!
  const thanks = magpieViews.view_generator("thanks", {
    trials: 1,
    name: 'thanks',
    title: 'Thank you for taking part in this experiment!',
    prolificConfirmText: 'Press the button'
  });
  
  /** trial (magpie's Trial Type Views) below
  
  * Obligatory properties
  
      - trials: int - the number of trials this view will appear
      - name: string - the name of the view type as it shall be known to _magpie (e.g. for use with a progress bar)
              and the name of the trial as you want it to appear in the submitted data
      - data: array - an array of trial objects
  
  * Optional properties
  
      - pause: number (in ms) - blank screen before the fixation point or stimulus show
      - fix_duration: number (in ms) - blank screen with fixation point in the middle
      - stim_duration: number (in ms) - for how long to have the stimulus on the screen
        More about trial life cycle - https://magpie-ea.github.io/magpie-docs/01_designing_experiments/04_lifecycles_hooks/
  
      - hook: object - option to hook and add custom functions to the view
        More about hooks - https://magpie-ea.github.io/magpie-docs/01_designing_experiments/04_lifecycles_hooks/
  
  * All about the properties of trial views
  * https://magpie-ea.github.io/magpie-docs/01_designing_experiments/01_template_views/#trial-views
  */
  
  
  const textbox_input = magpieViews.view_generator("textbox_input", {
    // This will use all trials specified in `data`, you can user a smaller value (for testing), but not a larger value
    trials: trial_info.textbox_input.length,
    // name should be identical to the variable name
    name: 'textbox_input',
    data: _.shuffle(trial_info.textbox_input), //_.shuffle()
  });
  
  
  // There are many more templates available:
  // forced_choice, slider_rating, dropdown_choice, testbox_input, rating_scale, image_selection, sentence_choice,
  // key_press, self_paced_reading and self_paced_reading_rating_scale
  