-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
132 lines (132 loc) · 7.41 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./assets/CSS/style.css">
<title>짜세 이름 생성기</title>
</head>
<body>
<div class="container">
<div class="odo_container" id="zzase_generator">
<span id="zzase_title">짜세 이름 생성기</span>
<div style="margin-bottom: 30px;">
<div class="zzase_input_box">
<input class="zzase_input" id="zzase_year" type="text" size="7" dir="rtl" value="1949"
oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"/>
<span >년</span>
<!-- <select name="odo_zzase_gihab_year" id="odo_zzase_gihab_year" style="width: 100px;">
<option value="황" selected>89</option>
<option value="김">90</option>
<option value="박">91</option>
<option value="전">92</option>
<option value="노">93</option>
<option value="풍">94</option>
<option value="도">95</option>
<option value="흥">96</option>
<option value="봉">97</option>
<option value="장">98</option>
<option value="현">99</option>
<option value="남">00</option>
</select> -->
</div>
<div class="zzase_input_box">
<input class="zzase_input" id="zzase_month" type="text" size="7" dir="rtl" value="4"
oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"/>
<span >월</span>
<!-- <select name="odo_zzase_gihab_month" id="odo_zzase_gihab_month" style="width: 100px;">
<option value="근" selected>1</option>
<option value="무">2</option>
<option value="경">3</option>
<option value="득">4</option>
<option value="삼">5</option>
<option value="구">6</option>
<option value="창">7</option>
<option value="현">8</option>
<option value="평">9</option>
<option value="판">10</option>
<option value="달">11</option>
<option value="봉">12</option>
</select> -->
</div>
<div class="zzase_input_box">
<input class="zzase_input" id="zzase_day" type="text" size="7" dir="rtl" value="15"
oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"/>
<span >일</span>
<!-- <select name="odo_zzase_gihab_day" id="odo_zzase_gihab_day" style="width: 100px;">
<option value="출" selected>1</option>
<option value="걸">2</option>
<option value="필">3</option>
<option value="팔">4</option>
<option value="상">5</option>
<option value="칠">6</option>
<option value="장">7</option>
<option value="봉">8</option>
<option value="남">9</option>
<option value="태">10</option>
<option value="현">11</option>
<option value="붕">12</option>
<option value="두">13</option>
<option value="질">14</option>
<option value="귀">15</option>
<option value="능">16</option>
<option value="묵">17</option>
<option value="쇠">18</option>
<option value="방">19</option>
<option value="알">20</option>
<option value="동">21</option>
<option value="지">22</option>
<option value="배">23</option>
<option value="패">24</option>
<option value="록">25</option>
<option value="접">26</option>
<option value="찰">27</option>
<option value="점">28</option>
<option value="닥">29</option>
<option value="틀">30</option>
<option value="례">31</option>
</select> -->
</div>
</div>
<button class="zzase_button" id="generate_zzase_name">생성</button>
<div id="print_name" style="margin-top: 10px;">
<span>이름 : </span>
<span id="odo_zzase_gihab_name"></span>
</div>
<button class="zzase_button" id="btn_text_copy">긴빠이 치기</button>
<!-- <a href="https://gall.dcinside.com/board/view/?id=marinecorps&no=199625" target="_blank">해병대식 이름짓기</a> -->
</div>
<div class="odo_container" id="random_generator"></div>
</div>
<script src="assets/JS/zzase.js"></script>
<script>
var first_name = ["황","김","박","전","노","풍","도","흥","봉","장","현","남"]
var middle_name = ["근","무","경","득","삼","구","창","현","평","판","달","봉"]
var last_name = ["출","걸","필","팔","상","칠","장","봉","남","태","현","붕","두","질","귀","능","묵","쇠","방","알","동","지","배","패","록","접","찰","점","닥","틀","례"]
document.getElementById("generate_zzase_name").onclick = function() {
var s = ""
var name = document.getElementById("odo_zzase_gihab_name");
var year = document.getElementById("zzase_year").value * 1;
console.log((year))
var s = s + (first_name[(year % 100)%89%11]+"");
var month = document.getElementById("zzase_month").value * 1;
var s = s + (middle_name[(month-1) % 12]+"");
var day = document.getElementById("zzase_day").value * 1;
var s = s + (last_name[(day-1) % 31]+"");
console.log(s)
name.innerText = s;
}
document.getElementById("btn_text_copy").onclick = function copy_password() {
var copyText = document.getElementById("odo_zzase_gihab_name");
var textArea = document.createElement("textarea");
textArea.value = copyText.textContent + " 해병님";
document.body.appendChild(textArea);
textArea.select();
document.execCommand("Copy");
textArea.remove();
alert("새끼... 기합!");
}
</script>
</body>
</html>