댓글 비밀글

This commit is contained in:
leebokyung
2018-12-03 16:12:15 +09:00
parent 304984db63
commit b8f5356c93
6 changed files with 34 additions and 23 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

+4 -1
View File
@@ -385,10 +385,13 @@ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1)}
.bo_vc_w_info:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_w_info .frm_input {float:left;margin-right:5px}
.bo_vc_w_info #captcha {padding-top:10px;display:block;clear:both}
.bo_vc_w .btn_confirm {float:right;margin-top:10px}
.bo_vc_w .btn_confirm {margin-top:10px}
.bo_vc_w .btn_confirm label {display:inline-block;margin-right:10px;border-radius:3px;font-size:1.5em;text-align:center}
.bo_vc_w .btn_submit {height:45px;padding:0 20px;border-radius:3px;font-weight:bold;font-size:1.083em}
.bo_vc_w .btn_confirm .secret_cm label {font-size:1em !important}
.bo_vc_w_wr:after {display:block;visibility:hidden;clear:both;content:""}
.secret_cm {display:inline-block;float:left}
#bo_vc_send_sns {display:inline-block;float:left}
#bo_vc_sns {display:inline-block;margin:0;padding:0;list-style:none;zoom:1}
@@ -157,8 +157,10 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php } ?>
</div>
<div class="btn_confirm">
<input type="checkbox" name="wr_secret" value="secret" id="wr_secret">
<label for="wr_secret"><i class="fa fa-lock" aria-hidden="true"></i><span class="sound_only">비밀글사용</span></label>
<span class="secret_cm">
<input type="checkbox" name="wr_secret" value="secret" id="wr_secret">
<label for="wr_secret">비밀글</label>
</span>
<button type="submit" id="btn_submit" class="btn_submit">댓글등록</button>
</div>
</div>
+4 -1
View File
@@ -403,10 +403,13 @@ box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1)}
.bo_vc_w_info:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_w_info .frm_input {float:left;margin-right:5px}
.bo_vc_w_info #captcha {padding-top:10px;display:block;clear:both}
.bo_vc_w .btn_confirm {float:right;margin-top:10px}
.bo_vc_w .btn_confirm {margin-top:10px}
.bo_vc_w .btn_confirm label {display:inline-block;margin-right:10px;border-radius:3px;font-size:1.5em;text-align:center}
.bo_vc_w .btn_submit {height:45px;padding:0 20px;border-radius:3px;font-weight:bold;font-size:1.083em}
.bo_vc_w .btn_confirm .secret_cm label {font-size:1em !important}
.bo_vc_w_wr:after {display:block;visibility:hidden;clear:both;content:""}
.secret_cm {display:inline-block;float:left}
#bo_vc_send_sns {display:inline-block;float:left}
#bo_vc_sns {display:inline-block;margin:0;padding:0;list-style:none;zoom:1}
@@ -81,21 +81,21 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
</ul>
</div>
<script>
$(function() {
// 댓글 옵션창 열기
$(".btn_cm_opt").on("click", function(){
$(this).parent("div").children(".bo_vc_act").show();
});
// 댓글 옵션창 닫기
$(document).mouseup(function (e){
var container = $(".bo_vc_act");
if( container.has(e.target).length === 0)
container.hide();
});
});
</script>
$(function() {
// 댓글 옵션창 열기
$(".btn_cm_opt").on("click", function(){
$(this).parent("div").children(".bo_vc_act").show();
});
// 댓글 옵션창 닫기
$(document).mouseup(function (e){
var container = $(".bo_vc_act");
if( container.has(e.target).length === 0)
container.hide();
});
});
</script>
</article>
<?php } ?>
<?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
@@ -158,8 +158,10 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php } ?>
</div>
<div class="btn_confirm">
<input type="checkbox" name="wr_secret" value="secret" id="wr_secret">
<label for="wr_secret"><i class="fa fa-lock" aria-hidden="true"></i><span class="sound_only">비밀글사용</span></label>
<span class="secret_cm">
<input type="checkbox" name="wr_secret" value="secret" id="wr_secret">
<label for="wr_secret">비밀글</label>
</span>
<button type="submit" id="btn_submit" class="btn_submit">댓글등록</button>
</div>
</div>
+3 -2
View File
@@ -1,7 +1,7 @@
@charset "utf-8";
/* 현재접속자 */
#current_connect ul {margin:0 -10px 0;padding:0;list-style:none;zoom:1}
#current_connect ul {margin:0;padding:0;list-style:none;zoom:1}
#current_connect ul:after {display:block;visibility:hidden;clear:both;content:""}
#current_connect li:after {display:block;visibility:hidden;clear:both;content:""}
#current_connect li {position:relative;padding:18px 0;border-bottom:1px solid #ececec;min-height:1px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-left:0}
@@ -11,7 +11,8 @@
#current_connect .crt_profile > img {width:45px;height:45px;border-radius:50%}
#current_connect .crt_info {float:left;margin-top:5px}
#current_connect .crt_name {display:block}
#current_connect .crt_name img {border-radius:50%;margin:0 0 5px;max-width:100%;height:auto}
#current_connect .sv_member {font-weight:bold;line-height:20px;font-size:1.2em}
#current_connect .profile_img {display:none}
#current_connect .crt_lct {display:block}
#current_connect .crt_lct a {color:#797979}
#current_connect li.empty_li {width:100%;padding:200px 0;border:0;color:#666;text-align:center}