|
2 | 2 | <div class="challenge-header__title"> |
3 | 3 | <span>Challenge - {{ name }}</span> |
4 | 4 | {%include 'components/badge.html' with context %} |
| 5 | + <span style="font-weight: 600; margin-left: auto" |
| 6 | + >🥰 Like type challenges? I also built |
| 7 | + <a target="_blank" href="https://xylect.app">Xylect</a>, one-click AI-search for |
| 8 | + Mac</span></span |
| 9 | + > |
5 | 10 | </div> |
6 | 11 | <p class="challenge-header__exerpt"> |
7 | 12 | Complete code following the instructions, so that lines followed by |
8 | | - <code># expect-type-error</code> (if any) |
9 | | - fail type check, while others can pass.<br> |
| 13 | + <code># expect-type-error</code> (if any) fail type check, while others can pass.<br /> |
10 | 14 | Hit the "▶️ Run" button to see result. |
11 | 15 | </p> |
12 | 16 | <div class="hints-container"> |
13 | 17 | {% if hints_for_display %} |
14 | | - <a id="read-hints" role="button" class="secondary outline" href="javascript:void(0);">💡 Read Hints</a> |
| 18 | + <a |
| 19 | + id="read-hints" |
| 20 | + role="button" |
| 21 | + class="secondary outline" |
| 22 | + href="javascript:void(0);" |
| 23 | + >💡 Read Hints</a |
| 24 | + > |
15 | 25 | {% else %} |
16 | 26 | <div id="hints-missing">💡 No Hints Available</div> |
17 | 27 | {% endif %} |
|
23 | 33 | <div class="codemirror-container"> |
24 | 34 | <div id="editor"> |
25 | 35 | <a id="playground-link" target="_blank" rel="noopener noreferrer"> |
26 | | - <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"> |
27 | | - <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
28 | | - d="M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4m-8-2l8-8m0 0v5m0-5h-5" /> |
| 36 | + <svg |
| 37 | + xmlns="http://www.w3.org/2000/svg" |
| 38 | + width="16" |
| 39 | + height="16" |
| 40 | + viewBox="0 0 24 24" |
| 41 | + > |
| 42 | + <path |
| 43 | + fill="none" |
| 44 | + stroke="currentColor" |
| 45 | + stroke-linecap="round" |
| 46 | + stroke-linejoin="round" |
| 47 | + stroke-width="2" |
| 48 | + d="M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4m-8-2l8-8m0 0v5m0-5h-5" |
| 49 | + /> |
29 | 50 | </svg> |
30 | 51 | <span>Open Pyright Playground</span> |
31 | 52 | </a> |
32 | 53 | </div> |
33 | 54 | <div class="editor-actions"> |
34 | | - <p id="answer-link">Stuck? Check out |
35 | | - <a target="_blank" rel="noopener noreferrer" |
36 | | - href="https://github.com/laike9m/Python-Type-Challenges/tree/main/challenges/{{level}}-{{name}}/solution.py"> |
| 55 | + <p id="answer-link"> |
| 56 | + Stuck? Check out |
| 57 | + <a |
| 58 | + target="_blank" |
| 59 | + rel="noopener noreferrer" |
| 60 | + href="https://github.com/laike9m/Python-Type-Challenges/tree/main/challenges/{{level}}-{{name}}/solution.py" |
| 61 | + > |
37 | 62 | solution |
38 | 63 | </a> |
39 | 64 | </p> |
40 | | - <button id="reset-button" class="secondary"> |
41 | | - Reset |
42 | | - </button> |
43 | | - <button id="run-button"> |
44 | | - ▶️ Run |
45 | | - </button> |
| 65 | + <button id="reset-button" class="secondary">Reset</button> |
| 66 | + <button id="run-button">▶️ Run</button> |
46 | 67 | </div> |
47 | 68 | </div> |
48 | 69 | <div class="tests-result-container"> |
|
175 | 196 | const challengeArea = document.querySelector(".challenge-area"); |
176 | 197 |
|
177 | 198 | challengeArea.addEventListener("click", () => { |
178 | | - drawer.classList.remove('open'); |
| 199 | + drawer.classList.remove("open"); |
179 | 200 | }); |
180 | 201 | </script> |
0 commit comments