diff --git a/checksheet02.html b/checksheet02.html new file mode 100644 index 0000000..0337be1 --- /dev/null +++ b/checksheet02.html @@ -0,0 +1,38 @@ + + + Check Sheet + + + + + + + + +

アメリカの2022祝日

+

キング牧師記念日は1月17日である。

+ +

戦没将兵追悼記念日は5月30日である。

+ +

ジューンティーンスは6月19日である。

+ +

独立記念日は7月4日である。

+ +

レイバー・デーは9月5日である。

+ +

復員軍人の日は11月11日である。

+ +

感謝祭は11月24日である。

+ +

クリスマスは12月26日である。

+ + + + + + + \ No newline at end of file diff --git a/mon.js b/mon.js new file mode 100644 index 0000000..97cf319 --- /dev/null +++ b/mon.js @@ -0,0 +1,23 @@ +function show(ev) { + var element = ev.target; + element.style.backgroundColor = "white"; + element.style.color = "black"; + } +function out(ev) { + var element = ev.target; + element.style.backgroundColor = ""; + element.style.color = ""; +} + + function addAll() { + var item; + var checks = document.getElementsByTagName("span"); + for (item of checks) { + if (item.getAttribute("class") == "check") { + item.addEventListener("mousedown", show, false); + item.addEventListener("mouseup", out, false); + } + } + } + window.onload = addAll; + \ No newline at end of file