Skip to content

Commit 621b447

Browse files
committed
Translate Event: hide-other
1 parent 480dc0d commit 621b447

File tree

2 files changed

+7
-7
lines changed
  • 2-ui/2-events/01-introduction-browser-events/01-hide-other

2 files changed

+7
-7
lines changed

2-ui/2-events/01-introduction-browser-events/01-hide-other/solution.view/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
<body>
99

10-
<input type="button" id="hider" value="Click to hide the text" />
10+
<input type="button" id="hider" value="Tekan disini untuk menyembunyikan pesan" />
1111

12-
<div id="text">Text</div>
12+
<div id="text">Teks</div>
1313

1414
<script>
15-
// Here it doesn't matter how we hide the text,
16-
// could also use style.display:
15+
// Disini tidak terlalu penting bagaimana cara menyembunyikan teks,
16+
// bisa juga digunakan style.display
1717
document.getElementById('hider').onclick = function() {
1818
document.getElementById('text').hidden = true;
1919
}

2-ui/2-events/01-introduction-browser-events/01-hide-other/source.view/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
<body>
99

10-
<input type="button" id="hider" value="Click to hide the text" />
10+
<input type="button" id="hider" value="Tekan disini untuk menyembunyikan pesan" />
1111

12-
<div id="text">Text</div>
12+
<div id="text">Teks</div>
1313

1414
<script>
15-
/* your code */
15+
/* kode kamu */
1616
</script>
1717

1818
</body>

0 commit comments

Comments
 (0)