Repository navigation
Expand file tree
/
Copy pathstep3.html
More file actions
90 lines (77 loc) · 3 KB
/
Copy pathstep3.html
File metadata and controls
90 lines (77 loc) · 3 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style_step3.css"> <!-- CSS 파일 연결 -->
<title>Resume - Working Condition</title>
</head>
<style>
</style>
<body>
<div class="container">
<header>
<h1>Resume</h1>
<button class="download-btn">PDF</button>
</header>
<section>
<h2>4. Please enter the <span class="highlight">working condition</span></h2>
<div class="working-type">
<span>Working type</span>
<button class="type-btn active">Part-time</button>
<button class="type-btn">Full-time</button>
</div>
<div class="working-condition">
<span>Working condition</span>
<div class="days">
<button class="day-btn">Mon</button>
<button class="day-btn">Tue</button>
<button class="day-btn">Wed</button>
<button class="day-btn">Thu</button>
<button class="day-btn">Fri</button>
<button class="day-btn">Sat</button>
<button class="day-btn">Sun</button>
</div>
</div>
<div class="experience">
<span>My working experience</span>
<button class="exp-btn">No experience</button>
<button class="exp-btn">I have experience</button>
</div>
</section>
<footer>
<a href="javascript:history.back()">
<button class="nav-btn">Previous</button>
</a>
<button class="finish-btn"onclick="window.location.href='step4.html'">Finish!</button>
</footer>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Working Type Buttons
const typeButtons = document.querySelectorAll('.type-btn');
typeButtons.forEach(button => {
button.addEventListener('click', () => {
typeButtons.forEach(btn => btn.classList.remove('active'));
button.classList.add('active');
});
});
// Working Condition Buttons
const dayButtons = document.querySelectorAll('.day-btn');
dayButtons.forEach(button => {
button.addEventListener('click', () => {
button.classList.toggle('active');
});
});
// Experience Buttons
const expButtons = document.querySelectorAll('.exp-btn');
expButtons.forEach(button => {
button.addEventListener('click', () => {
expButtons.forEach(btn => btn.classList.remove('active'));
button.classList.add('active');
});
});
});
</script>
</body>
</html>