-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.html
More file actions
169 lines (140 loc) · 5.02 KB
/
events.html
File metadata and controls
169 lines (140 loc) · 5.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<html>
<head>
<title>Git & GitHub 講習会</title>
<link rel="stylesheet" href="styles7.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="KCSのイベント情報ページです。">
<style>
.list1 {
position: relative;
padding-left: 30px;
margin-bottom: 12px;
font-size: 16px;
color: #c21e1e;
border: 2px solid #333;
max-width: 600px;
background-color: #f9f9f9;
border-radius: 8px;
}
.janken {
font-size: 20px;
color: #1e90ff;
margin-top: 20px;
font-family: 'Times New Roman', Times, serif;
font-weight: bold;
}
.button1 {
background-color: #4CAF50;
/* 緑色 */
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.img{
border: 2px solid #ccc;
border-radius: 10px;
transition: transform 0.5s ease;
position: relative;
animation: moveRight 2s linear infinite alternate;
}
.img:hover {
transform: translateX(100px);
transform: rotate(90deg);
}
@keyframes moveRight {
from {
left: 0;
}
to {
left: 200px;
}
}
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<ul class="menu">
<li><a href="./index.html">KCS について</a></li>
<li><a href="./groups.html">班紹介</a></li>
<li>イベント情報</li>
</ul>
</header>
<h1>イベント情報</h1>
<ul>
<li><a href="./index.html">KCS について</a></li>
<li><a href="./groups.html">班紹介</a></li>
<li>イベント情報</li>
</ul>
<h2 class="janken">じゃんけんゲーム</h2>
<button onclick="play('グー')" , class="button1" , id="float">グー</button>
<button onclick="play('チョキ')" , class="button1">チョキ</button>
<button onclick="play('パー')" , class="button1">パー</button>
<p id="result"></p>
<h2>イベント一覧</h2>
<ul class="list1">
<li>2023年10月1日: Git & GitHub 講習会</li>
<li>2023年11月15日: プログラミングコンテスト</li>
<li>2023年12月20日: 年末交流会</li>
</ul>
<canvas id="bgcanvas"></canvas>
<script>
function play(user) {
const hands = ['グー', 'チョキ', 'パー'];
const cpu = hands[Math.floor(Math.random() * 3)];
let result = '';
if (user === cpu) result = 'あいこ';
else if (
(user === 'グー' && cpu === 'チョキ') ||
(user === 'チョキ' && cpu === 'パー') ||
(user === 'パー' && cpu === 'グー')
) result = '勝ち!';
else result = '負け...';
document.getElementById('result').textContent = `あなた: ${user} / コンピューター: ${cpu} → ${result}`;
}
const float = document.getElementById('float');
let posY = 0;
let direction = 1; // 1:下に動く, -1:上に動く
const maxOffset = 20; // 最大移動距離(px)
const speed = 0.5; // 1フレームでの移動量
function floatAnimation() {
posY += direction * speed;
if (posY > maxOffset || posY < 0) {
direction *= -1; // 動く方向を反転
}
btn.style.top = `${100 + posY}px`; // 初期top100px + posY分移動
requestAnimationFrame(floatAnimation);
}
floatAnimation();
</script>
<img src="vscode.png" alt="VSCode Logo" class="img" style="width: 600px; height: 300px;">
<img src="kirimi.jpg" alt="GitHub Logo" class="img" style="width: 720px; height: 400px;">
<p>このページは、KCSのイベント情報を提供しています。</p>
<footer>
<div class="footer-container">
<div class="footer-logo">
<img src="logo.jpeg" alt="kcs1959">
</div>
<div class="footer-copy">
© 2025 KCS1959
</div>
<div class="footer-list">
<ul style="list-style: none; padding: 0;">
<li>入部方法 : 不明</li>
<li>一押し言語 : <strong>C</strong>, <strong>英語</strong>, <strong>F#</strong>, <strong>Deutsch</strong>
</li>
<li>TEL : 5a-4d2-162e</li>
<li>足 : ここ</li>
</ul>
</div>
</div>
</footer>
</body>
</html>