댓글 입력도 투명하게

This commit is contained in:
2019-01-29 23:46:47 +09:00
parent d4f682dadb
commit d4bd27cb38
3 changed files with 12 additions and 2 deletions
+7
View File
@@ -46,4 +46,11 @@
.submitComment{ .submitComment{
width:100%; width:100%;
}
.commentText{
color:white;
background-color:transparent;
border:none;
padding:1px 5px;
} }
+4 -1
View File
@@ -125,7 +125,10 @@ function drawArticle(idx, articleObj){
if(e.which === 13){ if(e.which === 13){
$article.find('.submitComment').click(); $article.find('.submitComment').click();
} }
}); });
$article.find('.inputCommentHeader').click(function(){
$article.find('.commentText').focus();
})
var $board = $('#board'); var $board = $('#board');
+1 -1
View File
@@ -100,7 +100,7 @@ var isSecretBoard = <?=($isSecretBoard?'true':'false')?>; //
<tbody class='commentList'> <tbody class='commentList'>
</tbody> </tbody>
<tfoot> <tfoot>
<tr><td class='bg2'>댓글 달기</td><td><input class='commentText' type='text' maxlength='250'></td><td><button type='button' class='submitComment'>등록</button></td></tr> <tr><td class='bg2 inputCommentHeader'>댓글 달기</td><td><input class='commentText' type='text' maxlength='250' placeholder='새 댓글 내용'></td><td><button type='button' class='submitComment'>등록</button></td></tr>
</tfoot> </tfoot>
</table> </table>
</div> </div>