Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sp-quiz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philip Kaluđerčić
sp-quiz
Commits
06bdb5aa
Commit
06bdb5aa
authored
1 year ago
by
Philip Kaluđerčić
Browse files
Options
Downloads
Patches
Plain Diff
Generate links to report problems
parent
51eedfc9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
quiz.js
+9
-1
9 additions, 1 deletion
quiz.js
with
9 additions
and
1 deletion
quiz.js
+
9
−
1
View file @
06bdb5aa
...
...
@@ -2,11 +2,13 @@
// ./LICENSE for more details.
"
use strict
"
;
const
version
=
"
$Id: quiz.js,v 1.1
2
2024/01/18 11:
19:07
oj14ozun Exp oj14ozun $
"
;
const
version
=
"
$Id: quiz.js,v 1.1
3
2024/01/18 11:
22:51
oj14ozun Exp oj14ozun $
"
;
const
js_version
=
document
.
getElementById
(
"
js-version
"
);
js_version
.
innerHTML
=
version
;
const
gitlab_base
=
"
https://gitlab.cs.fau.de/oj14ozun/sp-quiz
"
;
const
answers
=
document
.
getElementById
(
"
answers
"
);
const
text
=
document
.
getElementById
(
"
text
"
);
const
media
=
document
.
getElementById
(
"
media
"
);
...
...
@@ -15,6 +17,7 @@ const info = document.getElementById("info");
const
info_toggle
=
document
.
getElementById
(
"
info-toggle
"
);
const
action
=
document
.
getElementById
(
"
action
"
);
const
stats
=
document
.
getElementById
(
"
stats
"
);
const
report
=
document
.
getElementById
(
"
report
"
);
const
class_list
=
document
.
documentElement
.
classList
;
...
...
@@ -161,6 +164,11 @@ function next() {
// display question metadata
update_stats
(
q
);
// update report button
let
title
=
`Problem mit der Frage: "
${
text
.
innerText
}
" (
${
q
.
source
}
)`
;
let
desc
=
"
(Ersetze diesen Text mit einer Beschreibung des Problems)
"
report
.
href
=
`
${
gitlab_base
}
/issues/new?issue[title]=
${
encodeURIComponent
(
title
)}
&issue[description]=
${
encodeURIComponent
(
desc
)}
`
;
}
function
submit
()
{
...
...
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