|
21 | 21 | <title>{{ config('app.name') }} | Défi - D{{ $jeton }}</title> |
22 | 22 | </head> |
23 | 23 |
|
24 | | -<body class="no-mathjax" oncontextmenu="return false" onselectstart="return false" ondragstart="return false"> |
| 24 | +<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"> |
25 | 25 |
|
26 | 26 | <?php |
27 | 27 | // defi avec jeton eleve |
|
70 | 70 | <div class="container-fluid"> |
71 | 71 |
|
72 | 72 | @if(!$iframe) |
73 | | - <h1 class="mt-2 mb-4 text-center"><a class="navbar-brand m-1" href="{{ url('/') }}"><img src="{{ asset('img/code-puzzle.png') }}" width="140" alt="CODE PUZZLE" /></a></h1> |
| 73 | + <h1 class="mt-2 mb-3 text-center"><a class="navbar-brand m-1" href="{{ url('/') }}"><img src="{{ asset('img/code-puzzle.png') }}" width="140" alt="CODE PUZZLE" /></a></h1> |
74 | 74 | @endif |
75 | 75 |
|
76 | 76 | @if ($defi->with_chrono == 1 OR $defi->with_nbverif == 1) |
|
102 | 102 | <div class="mb-1 font-weight-bold">{{ $defi->titre_eleve }}</div> |
103 | 103 | @endif |
104 | 104 |
|
105 | | - <?php |
106 | | - include('lib/parsedownmath/ParsedownMath.php'); |
107 | | - $Parsedown = new ParsedownMath([ |
108 | | - 'math' => [ |
109 | | - 'enabled' => true, // Write true to enable the module |
110 | | - 'matchSingleDollar' => true // default false |
111 | | - ] |
112 | | - ]); |
113 | | - $consignes_parsed = $Parsedown->text($defi->consignes_eleve) |
114 | | - ?> |
115 | | - |
116 | 105 | @if ($defi->consignes_eleve !== NULL) |
117 | | - <div class="consignes mathjax" style="text-align:justify;"> |
118 | | - <?php |
119 | | - echo $consignes_parsed; |
120 | | - ?> |
121 | | - </div> |
| 106 | + <div class="markdown_content consignes" style="text-align:justify;">{{$defi->consignes_eleve}}</div> |
122 | 107 | @endif |
123 | 108 |
|
124 | | - <div id="consignes_hidden" class="mathjax" style="padding:30px 20px 0px 20px;width:1200px;height:630px;background-color:white;display:none;"> |
| 109 | + <div id="consignes_hidden" style="padding:30px 20px 0px 20px;width:1200px;height:630px;background-color:white;display:none;"> |
125 | 110 | <img src="{{ asset('img/codepuzzle.png') }}" height="30" /> |
126 | | - <div class="consignes" style="text-align:justify;padding:20px 40px 20px 40px;margin-top:25px;border-radius:10px;font-size:28px;background-color:#F8FAFC;"> |
127 | | - <?php |
128 | | - echo $consignes_parsed; |
129 | | - ?> |
130 | | - </div> |
| 111 | + <div class="markdown_content consignes" style="text-align:justify;padding:20px 40px 20px 40px;margin-top:25px;border-radius:10px;font-size:28px;background-color:#F8FAFC;">{{$defi->consignes_eleve}}</div> |
131 | 112 | </div> |
132 | 113 |
|
133 | 114 | </div> |
|
200 | 181 | </div><!-- container --> |
201 | 182 |
|
202 | 183 | @include('inc-bottom-js') |
| 184 | + @include('markdown/inc-markdown-afficher-js') |
203 | 185 |
|
204 | 186 | <script> |
205 | 187 | function copierCode(bouton) { |
@@ -405,23 +387,6 @@ function restartWorker() { |
405 | 387 | }); |
406 | 388 | </script> |
407 | 389 |
|
408 | | - |
409 | | - <script> |
410 | | - MathJax = { |
411 | | - tex: { |
412 | | - inlineMath: [['$', '$'], ['\\(', '\\)']], |
413 | | - displayMath: [ ['$$','$$'], ["\\[","\\]"] ], |
414 | | - processEscapes: true |
415 | | - }, |
416 | | - options: { |
417 | | - ignoreHtmlClass: "no-mathjax", |
418 | | - processHtmlClass: "mathjax" |
419 | | - } |
420 | | - }; |
421 | | - </script> |
422 | | - <script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script> |
423 | | - |
424 | | - |
425 | 390 | <script src="{{ asset('js/ace/ace.js') }}" type="text/javascript" charset="utf-8"></script> |
426 | 391 | <script> |
427 | 392 | var editor_code = ace.edit("editor_code", { |
|
0 commit comments