Skip to content
Snippets Groups Projects
Commit 94971b5c authored by Eliott Sammier's avatar Eliott Sammier
Browse files

SurveyJS insertion now works with the new theme

Move <head> partial to make it compatible with the theme
parent aaf79efc
Branches
No related tags found
No related merge requests found
......@@ -2,22 +2,25 @@
title = "L'auxiliaire MUST (1)"
+++
<div id=\"STY_question\" class=\"STY_question\" style=\" \"><p align=\"\"><br>Ecoutez chacun de ces deux énoncés en
<div id="STY_question" class="STY_question">
<p><br>Ecoutez chacun de ces deux énoncés en
cliquant sur la flèche.<br><br>
</p><table class=\"STY_tableau\" width=\"300\" cellpadding=\"3\" cellspacing=\"0\" valign=\"top\" border=\"0\">
</p>
<table class="STY_tableau" valign="top">
<tr>
<td>
<audio/>
<audio></audio>
</td>
<td valign=\"top\">We must leave at once.</td>
<td>We must leave at once.</td>
</tr>
<tr>
<td valign=\"top\">
<script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV7', 'e29_macao1_2a2.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>
<td>
<script type="text/javascript">ajDocW(PF_clipAV('clipAV7', 'e29_macao1_2a2.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>
</td>
<td valign=\"top\">You must be joking.</td>
<td>You must be joking.</td>
</tr>
</table>
<p align=\"\">Dans ces énoncés, l'auxiliaire MUST est-il prononcé de façon identique ?<br></p></div>
<p>Dans ces énoncés, l'auxiliaire MUST est-il prononcé de façon identique ?<br></p>
</div>
{{% quiz %}}
\ No newline at end of file
{{/* Included by the theme in the <head> tag */}}
{{/* Get CSS as resource and minify */}}
{{- $css := resources.Get "style.css" | resources.Minify }}
<link rel="stylesheet" href="{{- $css.RelPermalink -}}">
{{/* if a quiz.json exists in the page resources, load SurveyJS */}}
{{ with .Resources.GetMatch "quiz.json" }}
<script defer type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://unpkg.com/survey-jquery/defaultV2.min.css" type="text/css" rel="stylesheet">
<script defer type="text/javascript" src="/survey.jquery.min.js"></script>
<script defer type="text/javascript"
src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
{{- $quizjs := slice -}}
{{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}}
{{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}}
{{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}}
{{/* {{- $quizjs = $quizjs | resources.Minify -}}*/}}
<script type="module" src="{{- $quizjs.RelPermalink -}}"></script>
{{ end }}
{{/* Included by the theme in the <head> tag */}}
{{ define "css" }}
{{/* Get CSS as resource and minify */}}
{{- $css := resources.Get "style.css" | resources.Minify }}
<link rel="stylesheet" href="{{- $css.RelPermalink -}}">
{{/* if a quiz.json exists in the page resources, load SurveyJS */}}
{{ with .Resources.GetMatch "quiz.json" }}
<script defer type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://unpkg.com/survey-jquery/defaultV2.min.css" type="text/css" rel="stylesheet">
<script defer type="text/javascript" src="/survey.jquery.min.js"></script>
<script defer type="text/javascript"
src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
{{- $quizjs := slice -}}
{{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}}
{{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}}
{{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}}
{{/* {{- $quizjs = $quizjs | resources.Minify -}}*/}}
<script type="module" src="{{- $quizjs.RelPermalink -}}"></script>
{{ end }}
{{ end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment