Skip to content

Commit

Permalink
ほげ
Browse files Browse the repository at this point in the history
  • Loading branch information
YumizSui committed Jun 26, 2020
0 parents commit cba6ed2
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
18 changes: 18 additions & 0 deletions index.html
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>
3 changes: 3 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#icon {
width: 100px;
}
Binary file added tiya.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions work/counter.html
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>
12 changes: 12 additions & 0 deletions work/counter.js
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('押すなって言ったのに…');
}
}

0 comments on commit cba6ed2

Please sign in to comment.