diff --git a/README.md b/README.md index 2262de0..f3e5179 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -hoge +選考テストリポジトリ diff --git a/index.html b/index.html new file mode 100644 index 0000000..93d0ea1 --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + + + + + + 練習 + + +

ようこそテストさん!

+

あなたの運勢は大吉です!

+ + + + + \ No newline at end of file diff --git a/omikuji.js b/omikuji.js new file mode 100644 index 0000000..846a45c --- /dev/null +++ b/omikuji.js @@ -0,0 +1,31 @@ +//let name; +let username; +let no_name; +let userresult; + +username = prompt( "お名前を教えて下さい。" ); +no_name = "名無し"; + +if(username === "" ){ + document . getElementById( "name" ) . innerHTML = no_name; +} else { + document . getElementById( "name" ) . innerHTML = username; +} + +let rand = Math.floor( Math.random() * 5); +if (rand == 0) { + userresult = "大吉"; +} +if (rand == 1) { + userresult = "中吉"; +} +if (rand == 2) { + userresult = "小吉"; +} +if (rand == 3) { + userresult = "吉"; +} +if (rand == 4) { + userresult = "凶"; +} +document.getElementById("result").innerHTML = userresult; \ No newline at end of file diff --git a/omikuji.png b/omikuji.png new file mode 100644 index 0000000..a50d734 Binary files /dev/null and b/omikuji.png differ diff --git a/style.css b/style.css new file mode 100644 index 0000000..ad27e59 --- /dev/null +++ b/style.css @@ -0,0 +1,10 @@ +img { + height: 100px; + } + #name { + color: blue; + } + + #result { + color: green; + } \ No newline at end of file diff --git a/test01 b/test01 new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/test01 @@ -0,0 +1 @@ +test