File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
docs/1-trial-session/14-events Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ <!doctype html>
2+ < html lang ="ja ">
3+ < head >
4+ < meta charset ="utf-8 " />
5+ < title > Title</ title >
6+ </ head >
7+ < body >
8+ < div id ="greeting "> </ div >
9+ < button id ="button "> ボタン</ button >
10+ < script src ="./script.js "> </ script >
11+ </ body >
12+ </ html >
Original file line number Diff line number Diff line change 1+ const greetingElement = document . getElementById ( "greeting" ) ;
2+ const buttonElement = document . getElementById ( "button" ) ;
3+
4+ function onGreetingButtonClick ( ) {
5+ greetingElement . textContent = "Hello world!!" ;
6+ greetingElement . style . color = "red" ;
7+ greetingElement . style . fontSize = "40px" ;
8+ }
9+
10+ buttonElement . onclick = onGreetingButtonClick ;
Original file line number Diff line number Diff line change @@ -106,3 +106,5 @@ HTMLファイルに一工夫が必要です。見えない`<div>` タグを用
106106```
107107
108108</Details >
109+
110+ <ViewSource url ={import.meta.url} path =" _samples/ " />
You can’t perform that action at this time.
0 commit comments