Skip to content

Commit 0785586

Browse files
authored
fix: remove spellchecker (#28)
* feat: remove spellchecker * fix: restore byte calculation * fix: change contributer name
1 parent d4ff33c commit 0785586

File tree

7 files changed

+6
-487
lines changed

7 files changed

+6
-487
lines changed

index.html

+5-15
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@
3030
</head>
3131
<body>
3232
<div class="center">
33-
<header>
3433
<div class="title">🌊나이스(NEIS) 글자수 계산기</div>
35-
<button id="spellcheck_button">맞춤법 검사하기</button>
36-
</header>
3734
<div class="title_underbar_wrapper">
3835
<div class="title_underbar"></div>
3936
</div>
40-
<spell-check-input id="counter" class="counter"></spell-check-input>
37+
<textarea id="counter" class="counter" cols="40" rows="5"></textarea>
4138
<table>
4239
<tr>
4340
<th>항목</td>
@@ -57,34 +54,27 @@
5754
</tr>
5855
</table>
5956
<div id="result" class="result">공백 제외 0자, 공백 포함 0자, 0바이트</div>
60-
<span class="info">영어, 숫자, 특수문자, 띄어쓰기, 엔터키 1바이트 / 한글 3바이트<br>변경사항이 있다면 개발자 이메일로 연락주시면 감사하겠습니다.<br class="small-screen">반영해주신 분들: <a href="https://github.com/Dongyeongkim" target="_blank">김동영</a>, <a href="https://github.com/rycont" target="_blank">정한(RyCont)</a>, <a href="https://github.com/cokia" target="_blank">한우영</a>, <a href="https://github.com/hajin-chung" target="_blank">정하진</a>, <a href="https://github.com/bshyuunn" target="_blank">배송현</a>, <a href="https://github.com/mcgun1234" target="_blank">최수현</a>, <a href="https://github.com/b0u0b-0w0" target="_blank">김서진</a>, <a href="https://github.com/jjoonleo" target="_blank">박이준</a><br><br><a href="https://hjh010501.github.io/neis-counter/"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fhjh010501.github.io%2Fneis-counter%2F&count_bg=%23000000&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=%EB%B0%A9%EB%AC%B8%EC%9E%90+%EC%88%98&edge_flat=true"/></a></span>
57+
<span class="info">영어, 숫자, 특수문자, 띄어쓰기, 엔터키 1바이트 / 한글 3바이트<br>변경사항이 있다면 개발자 이메일로 연락주시면 감사하겠습니다.<br class="small-screen">반영해주신 분들: <a href="https://github.com/Dongyeongkim" target="_blank">김동영</a>, <a href="https://github.com/rycont" target="_blank">정한(Rycont)</a>, <a href="https://github.com/cokia" target="_blank">한우영</a>, <a href="https://github.com/hajin-chung" target="_blank">정하진</a>, <a href="https://github.com/bshyuunn" target="_blank">배송현</a>, <a href="https://github.com/mcgun1234" target="_blank">최수현</a>, <a href="https://github.com/b0u0b-0w0" target="_blank">김서진</a>, <a href="https://github.com/jjoonleo" target="_blank">박이준</a><br><br><a href="https://hjh010501.github.io/neis-counter/"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fhjh010501.github.io%2Fneis-counter%2F&count_bg=%23000000&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=%EB%B0%A9%EB%AC%B8%EC%9E%90+%EC%88%98&edge_flat=true"/></a></span>
6158
</div>
6259
<div class="footbar">
6360
<div class="footbar_content">
6461
<span>👨‍💻 by <a href="https://github.com/hjh010501">kidevelop</a></span>
6562
<span><a class="github-button" href="https://github.com/hjh010501/neis-counter" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star hjh010501/neis-counter on GitHub">Star</a></span>
6663
</div>
6764
</div>
68-
<script type="module" src="./spellchecker/index.js"></script>
6965
<script>
7066
const textarea = document.getElementById("counter");
71-
const spellCheckButton = document.getElementById("spellcheck_button")
7267

7368
function init() {
7469
let content = localStorage.getItem("save");
7570

7671
if(content) {
7772
counter(content);
78-
textarea.setContent(content);
73+
document.getElementById('counter').value = content;
7974
}
8075

81-
textarea.addEventListener("content-change", function(e) {
82-
counter(e.detail.content);
83-
});
84-
85-
spellCheckButton.addEventListener("click", function() {
86-
spellCheckButton.classList.add("pending")
87-
textarea.spellCheck().finally(() => spellCheckButton.classList.remove("pending"));
76+
textarea.addEventListener("input", function(e) {
77+
counter(e.target.value);
8878
});
8979
}
9080

main.css

+1-22
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ body {
6161
width: 100%;
6262
}
6363

64-
header {
65-
width: 100%;
66-
display: flex;
67-
flex-direction: row;
68-
justify-content: space-between;
69-
align-items: center;
70-
}
71-
7264
.title {
7365
font-family: "Noto Sans KR Bold";
7466
font-size: 2.6rem;
@@ -94,7 +86,7 @@ header {
9486
height: 400px;
9587
outline: 0;
9688
line-height: 1.7em;
97-
box-sizing: border-box;
89+
padding: 25px;
9890
}
9991

10092
.result {
@@ -122,19 +114,6 @@ header {
122114
font-size: 1.6rem;
123115
}
124116

125-
button {
126-
border: 1px solid rgba(0, 0, 0, 0.2);
127-
padding: 0.4rem 1.2rem;
128-
border-radius: 20px;
129-
font-family: "Noto Sans KR";
130-
background-color: #1d1d1d;
131-
color: #fff;
132-
}
133-
134-
button.pending {
135-
opacity: 0.5;
136-
}
137-
138117
table {
139118
width: 100%;
140119
text-align: center;

spellchecker/agreement.js

-74
This file was deleted.

spellchecker/button.js

-16
This file was deleted.

spellchecker/index.js

-1
This file was deleted.

spellchecker/modal.js

-155
This file was deleted.

0 commit comments

Comments
 (0)