Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MACAO Hugo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
MACAO Hugo
Commits
b4bb24af
Commit
b4bb24af
authored
5 months ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Hide question title on quizz with only one question and with question title like pgXXX
parent
edc505cd
Branches
Branches containing commit
No related tags found
1 merge request
!4
Resolve "Démo/Réunion du 16/01 avec Laurence et Sheridan"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
macao/assets/quiz.js
+10
-0
10 additions, 0 deletions
macao/assets/quiz.js
macao/themes/macao-hugo-theme
+1
-1
1 addition, 1 deletion
macao/themes/macao-hugo-theme
with
11 additions
and
1 deletion
macao/assets/quiz.js
+
10
−
0
View file @
b4bb24af
...
@@ -47,6 +47,16 @@ $(function () {
...
@@ -47,6 +47,16 @@ $(function () {
// Load survey model from JSON
// Load survey model from JSON
const
survey
=
new
Survey
.
Model
(
jsonStatic
);
const
survey
=
new
Survey
.
Model
(
jsonStatic
);
const
questions
=
survey
.
getAllQuestions
();
if
(
questions
.
length
===
1
)
{
console
.
log
(
"
Survey has only one question
"
);
console
.
log
(
questions
[
0
]);
const
regex
=
/pg
\d\d\d
/g
;
if
(
questions
[
0
].
title
.
match
(
regex
))
{
questions
[
0
].
titleLocation
=
"
hidden
"
;
}
}
// Instantiate `markdown-it`
// Instantiate `markdown-it`
const
converter
=
markdownit
({
const
converter
=
markdownit
({
html
:
true
// Support HTML tags in the source (unsafe, see documentation)
html
:
true
// Support HTML tags in the source (unsafe, see documentation)
...
...
This diff is collapsed.
Click to expand it.
macao-hugo-theme
@
a6970e44
Compare
37c5cd01
...
a6970e44
Subproject commit
37c5cd01ed787d99267a8b09eb1f942649df09b
8
Subproject commit
a6970e449194b8568d9303f099ef591025180f5
8
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment