-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
YumizSui
committed
Jun 26, 2020
0 parents
commit cba6ed2
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="ja"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" href="./style.css"> | ||
<title>なろうのやつ</title> | ||
</head> | ||
<body> | ||
<div> | ||
<h2>はい</h2> | ||
<img src="tiya.gif" alt="" id="icon"> | ||
<li>YumizSui</li> | ||
<a href="https://twitter.com/YumizSui">湯水🐧水</a> | ||
<li>これは自己紹介です.</li> | ||
<a href="work/counter.html"> 押してはいけないボタン </a> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#icon { | ||
width: 100px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="ja"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<script src="./counter.js"></script> | ||
<title>押してはいけないボタン</title> | ||
</head> | ||
<body> | ||
<h1>押してはいけないボタン</h1> | ||
<div id="count">回数: 0</div> | ||
<button onclick="countUp()">赤いボタン</button> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
let count = 0 | ||
let n = 0; | ||
const countUp = () => { | ||
count++ | ||
const countElement = document.querySelector('#count') | ||
countElement.innerText = '回数: ' + count | ||
while (n < 100) { | ||
n++; | ||
alert('押すなって言ったのに…'); | ||
} | ||
} | ||
|