showSolutions() {
    var invoiceTypeVisibility = this.params.behaviour.invoiceTypeVisibility;
    var posNegVisibility = this.params.behaviour.posNegVisibility;
    var journalEntryList = new JournalEntryList(this.chart, true, invoiceTypeVisibility, posNegVisibility);
    var solutionContainer = this.container.querySelector(`.${styles.solutionContainer}`);

    // Create the solution if it doesn't exist
    if (solutionContainer === null) {
      solutionContainer = document.createElement('div');
      solutionContainer.className = styles.solutionContainer;
      solutionContainer.insertAdjacentHTML('beforeend', `
        <div class="${styles.solutionTitle}">
          ${l10n.solutionTitle}
        </div>
        <div class="${styles.solutionIntroduction}">
          ${l10n.solutionIntroduction}
        </div>
        <div class="${styles.solutionSample}">
        </div>
      `);

      let solutionSample = solutionContainer.querySelector(`.${styles.solutionSample}`);

      // Render the solution
      journalEntryList.render(solutionSample);
      journalEntryList.data = this.params.journalEntries;

      // Insert the solution before the feedback
      this.container.insertBefore(solutionContainer, this.container.querySelector('.h5p-question-feedback'));
    }

    // Unhide the solution
    solutionContainer.removeAttribute('hidden');
  }
/**
   * Displays the solution(s) for this task, should also hide all buttons.
   */
Displays the solution(s) for this task, should also hide all buttons.
Displays the solution ( s ) for this task should also hide all buttons .
showSolutions() {
    var invoiceTypeVisibility = this.params.behaviour.invoiceTypeVisibility;
    var posNegVisibility = this.params.behaviour.posNegVisibility;
    var journalEntryList = new JournalEntryList(this.chart, true, invoiceTypeVisibility, posNegVisibility);
    var solutionContainer = this.container.querySelector(`.${styles.solutionContainer}`);
    if (solutionContainer === null) {
      solutionContainer = document.createElement('div');
      solutionContainer.className = styles.solutionContainer;
      solutionContainer.insertAdjacentHTML('beforeend', `
        <div class="${styles.solutionTitle}">
          ${l10n.solutionTitle}
        </div>
        <div class="${styles.solutionIntroduction}">
          ${l10n.solutionIntroduction}
        </div>
        <div class="${styles.solutionSample}">
        </div>
      `);
      let solutionSample = solutionContainer.querySelector(`.${styles.solutionSample}`);
      journalEntryList.render(solutionSample);
      journalEntryList.data = this.params.journalEntries;
      this.container.insertBefore(solutionContainer, this.container.querySelector('.h5p-question-feedback'));
    }
    solutionContainer.removeAttribute('hidden');
  }
showSolutions ( ) { var invoiceTypeVisibility = this . params . behaviour . invoiceTypeVisibility ; var posNegVisibility = this . params . behaviour . posNegVisibility ; var journalEntryList = new JournalEntryList ( this . chart , true , invoiceTypeVisibility , posNegVisibility ) ; var solutionContainer = this . container . querySelector ( ` ${ styles . solutionContainer } ` ) ; if ( solutionContainer === null ) { solutionContainer = document . createElement ( 'div' ) ; solutionContainer . className = styles . solutionContainer ; solutionContainer . insertAdjacentHTML ( 'beforeend' , ` ${ styles . solutionTitle } ${ l10n . solutionTitle } ${ styles . solutionIntroduction } ${ l10n . solutionIntroduction } ${ styles . solutionSample } ` ) ; let solutionSample = solutionContainer . querySelector ( ` ${ styles . solutionSample } ` ) ; journalEntryList . render ( solutionSample ) ; journalEntryList . data = this . params . journalEntries ; this . container . insertBefore ( solutionContainer , this . container . querySelector ( '.h5p-question-feedback' ) ) ; } solutionContainer . removeAttribute ( 'hidden' ) ; }
Displays the solution(s) for this task, should also hide all buttons.
Displays the solution ( s ) for this task should also hide all buttons .
// Create the solution if it doesn't exist // Render the solution // Insert the solution before the feedback // Unhide the solution