Skip to content
Snippets Groups Projects
Commit 382defbc authored by Jannik Wurche's avatar Jannik Wurche
Browse files

:briefcase: put SVG and IMG in special <div>

parent 4731cee5
No related branches found
No related tags found
No related merge requests found
......@@ -60,10 +60,10 @@ displayQuestion q =
Just hint -> LaTeX.Expression.compile hint
_ -> div [ class "invisible" ] []
imageDiv = case q.image of
Just url -> img [ src url ] [ ]
Nothing -> div [ class "invisible" ] []
Just url -> div [ class "imgDiv" ] [ img [ src url ] [ ] ]
Nothing -> div [ class "invisible" ] []
funcDiv = case q.graph of
Just gr -> generateSVG {functions = gr.functions, window = gr.window}
Just gr -> div [ class "svgDiv" ] [ generateSVG {functions = gr.functions, window = gr.window} ]
Nothing -> div [ class "invisible" ] []
answerDiv = case q.questionType of
MCQ x -> displayMCQ q.id x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment