expand.html 687 B

12345678910111213141516
  1. <div class="expand">
  2. <div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
  3. <i style="font-size:x-small;" class="fas fa-chevron-right"></i>
  4. <span>
  5. {{$expandMessage := T "Expand-title"}}
  6. {{ if .IsNamedParams }}
  7. {{.Get "default" | default $expandMessage}}
  8. {{else}}
  9. {{.Get 0 | default $expandMessage}}
  10. {{end}}
  11. </span>
  12. </div>
  13. <div class="expand-content" style="display: none;">
  14. {{.Inner | safeHTML}}
  15. </div>
  16. </div>