Skip to content

Commit 4ce21c8

Browse files
[과제 번역] 마우스 이벤트 과제, Selectable list 번역
1 parent 0d285fe commit 4ce21c8

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

2-ui/3-event-details/1-mouse-events-basics/01-selectable-list/solution.view/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
<br>
2121

2222
<ul id="ul">
23-
<li>Christopher Robin</li>
24-
<li>Winnie-the-Pooh</li>
25-
<li>Tigger</li>
26-
<li>Kanga</li>
27-
<li>Rabbit. Just rabbit.</li>
23+
<li>React</li>
24+
<li>Angular</li>
25+
<li>Vue</li>
26+
<li>Svelte</li>
27+
<li>Blazor</li>
2828
</ul>
2929

3030
<script>

2-ui/3-event-details/1-mouse-events-basics/01-selectable-list/source.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<body>
1818

19-
선택하고자 하는 요소를 클릭하세요..
19+
선택하고자 하는 요소를 클릭하세요.
2020
<br>
2121

2222
<ul id="ul">

2-ui/3-event-details/1-mouse-events-basics/01-selectable-list/task.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ importance: 5
22

33
---
44

5-
# Selectable list
5+
# 선택 가능한 리스트
66

7-
Create a list where elements are selectable, like in file-managers.
7+
파일 관리 프로그램처럼 요소를 선택할 수 있게 해주는 리스트를 만들어봅시다. 요구사항은 다음과 같습니다.
88

9-
- A click on a list element selects only that element (adds the class `.selected`), deselects all others.
10-
- If a click is made with `key:Ctrl` (`key:Cmd` for Mac), then the selection is toggled on the element, but other elements are not modified.
9+
- 요소를 클릭하면 해당 요소가 선택(`.selected` 클래스 추가)되고, 나머지 요소들은 선택 해제됩니다.
10+
- `key:Ctrl`키(Mac에서 `key:Cmd`키)를 누른 상태에서 요소를 클릭하면 해당 요소는 원래처럼 선택, 선택 해제되지만 다른 요소들의 상태는 변하지 않습니다(중복 요소 선택 기능).
1111

12-
The demo:
12+
데모:
1313

1414
[iframe border="1" src="solution" height=180]
1515

16-
P.S. For this task we can assume that list items are text-only. No nested tags.
16+
참고 1: 항목들이 모두 텍스트이며 중첩 태그가 없다고 가정합니다.
1717

18-
P.P.S. Prevent the native browser selection of the text on clicks.
18+
참고 2: 텍스트를 클릭할 때 발생하는 브라우저 이벤트를 막습니다.

0 commit comments

Comments
 (0)