Skip to content
Snippets Groups Projects
Select Git revision
  • df97fbf2d52d5ea5a2af76ad9a66479a45ebc76f
  • main default protected
  • export
  • 28-conversion-tests
  • extraction
  • exploration
  • exploration-old
  • 2-encoding-fix
  • main-old
9 results

README.md

Blame
  • To learn more about this project, read the wiki.
    head.html 1.11 KiB
    {{/* Included by the theme in the <head> tag */}}
    
    {{/* if a quiz.json exists in the page resources, load SurveyJS */}}
    {{ with .Resources.GetMatch "quiz.json" }}
    
        <link href="https://unpkg.com/survey-jquery/defaultV2.min.css" type="text/css" rel="stylesheet">
        <script defer type="text/javascript" src="https://unpkg.com/survey-jquery/survey.jquery.min.js"></script>
        <script defer type="text/javascript"
                src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
       <script src="https://cdn.jsdelivr.net/npm/markdown-it@14.1.0/dist/markdown-it.min.js"></script>
    
        {{- $quizjs := slice -}}
        {{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}}
        {{- $quizjs = $quizjs | append (resources.Get "custom.js") -}}
        {{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}}
        {{- $quizjs = $quizjs | append (resources.Get "gapfill-open.js") -}}
        {{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}}
        {{/*        {{- $quizjs = $quizjs | resources.Minify -}}*/}}
        <script type="module" src="{{- $quizjs.RelPermalink -}}"></script>
    {{ end }}