index.ejs
2.54 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
<html>
<head>
<link rel="stylesheet" href="css/index_style.css">
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
</head>
<body>
<a href="#" class="button">How much are you earning now?</a>
<div class="modal-overlay">
<div class="modal-wrapper">
<label class="close" for=""></label>
<h2 id="modal-title">Please fill in the blanks.</h2>
<form class="message-form" action="graph" method="get" id="indexForm">
<div class="input-box">
<label for="" class="input-label">Payment days (ex. 31)</label>
<input type="text" class="input-text" name="payDay">
<hr class="underline">
<hr class="underline-focus">
</div>
<div class="input-box">
<label for="" class="input-label">Salary (ex. 1000000)</label>
<input type="text" class="input-text" name="salary">
<hr class="underline">
<hr class="underline-focus">
</div>
<div class="input-box">
<label for="" class="input-label">Working days (ex. 월화수목금)</label>
<input type="text" class="input-text" name="workDay">
<hr class="underline">
<hr class="underline-focus">
</div>
<div class="input-box">
<label for="" class="input-label">Working time (ex. 9)</label>
<input type="text" class="input-text" name="workTime">
<hr class="underline">
<hr class="underline-focus">
</div>
<div class="input-box">
<label for="" class="input-label">Time off work (ex. 18)</label>
<input type="text" class="input-text" name="offWork">
<hr class="underline">
<hr class="underline-focus">
</div>
<div class="input-button">
<button type='submit' class="button2">Enter</button>
</div>
</form>
</div>
</div>
</body>
<script type="text/javascript">
$('.button').on('click', function(e) {
e.preventDefault();
$(this).addClass('active');
});
$('.modal-wrapper').find('label').on('click', function() {
$('.button').removeClass('active');
});
$('.input-text').focus(function() {
$(this).parents('.input-box').addClass('focus');
})
$('.input-text').blur(function() {
if ($(this).val()) {
$(this).parents('.input-box').addClass('focus');
} else {
$(this).parents('.input-box').removeClass('focus');
}
});
</script>
</html>