테마 모바일 수정중

This commit is contained in:
thisgun
2017-09-01 14:53:27 +09:00
parent bb896d81aa
commit b5b4c67bcd
11 changed files with 67 additions and 43 deletions
+23 -10
View File
@@ -26,7 +26,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
<a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/m_logo.png" alt="<?php echo $config['cf_title']; ?>" height="15"></a>
</div>
<button type="button" id="gnb_open" class="hd_opener">메뉴<span class="sound_only"> 열기</span></button>
<button type="button" id="gnb_open" class="hd_opener"><i class="fa fa-bars" aria-hidden="true"></i><span class="sound_only"> 메뉴열기</span></button>
<div id="gnb" class="hd_div">
<button type="button" id="gnb_close" class="hd_closer"><span class="sound_only">메뉴 </span>닫기</button>
@@ -79,7 +79,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<input type="text" name="stx" id="sch_stx" placeholder="검색어(필수)" required maxlength="20">
<input type="submit" value="검색" id="sch_submit">
<button type="submit" value="검색" id="sch_submit"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
</form>
<script>
@@ -112,16 +112,16 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
</div>
</div>
<button type="button" id="user_btn" class="hd_opener">사용자메뉴</button>
<button type="button" id="user_btn" class="hd_opener"><i class="fa fa-user" aria-hidden="true"></i><span class="sound_only">사용자메뉴</span></button>
<div class="hd_div" id="user_menu">
<button type="button" id="user_close" class="hd_closer"><span class="sound_only">메뉴 </span>닫기</button>
<?php echo outlogin('theme/basic'); // 외부 로그인 ?>
<?php echo outlogin('basic'); // 외부 로그인 ?>
<ul id="hd_nb">
<li class="hd_nb1"><a href="<?php echo G5_BBS_URL ?>/qalist.php" id="snb_qa"><i class="fa fa-comments" aria-hidden="true"></i><br>1:1문의</a></li>
<li class="hd_nb2"><a href="<?php echo G5_BBS_URL ?>/faq.php" id="snb_faq"><i class="fa fa-question-circle" aria-hidden="true"></i><br>FAQ</a></li>
<li class="hd_nb3"><a href="<?php echo G5_BBS_URL ?>/current_connect.php" id="snb_cnt"><i class="fa fa-users" aria-hidden="true"></i><br>접속자 <span><?php echo connect('theme/basic'); // 현재 접속자수 ?></span></a></li>
<li class="hd_nb3"><a href="<?php echo G5_BBS_URL ?>/current_connect.php" id="snb_cnt"><i class="fa fa-users" aria-hidden="true"></i><br>접속자 <span><?php echo connect('basic'); // 현재 접속자수 ?></span></a></li>
<li class="hd_nb4"><a href="<?php echo G5_BBS_URL ?>/new.php" id="snb_new"><i class="fa fa-history" aria-hidden="true"></i><br>새글</a></li>
</ul>
@@ -135,8 +135,8 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
</div>
<script>
$(function () {
$(".hd_opener").on("click", function() {
jQuery(function ($) {
$(".hd_opener").on("click", function(e) {
var $this = $(this);
var $hd_layer = $this.next(".hd_div");
@@ -153,17 +153,30 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
}
});
$("#container").on("click", function() {
$("#container").on("click", function(e) {
$(".hd_div").hide();
}).on("click_font_resize", function(e) {
var $this = $(this),
$text_size_button = $("#text_size button");
$text_size_button.removeClass("select");
if( $this.hasClass("ts_up") ){
$text_size_button.eq(1).addClass("select");
} else if ( $this.hasClass("ts_up2") ) {
$text_size_button.eq(2).addClass("select");
} else {
$text_size_button.eq(0).addClass("select");
}
});
$(".btn_gnb_op").click(function(){
$(".btn_gnb_op").click(function(e){
$(this).toggleClass("btn_gnb_cl").next(".gnb_2dul").slideToggle(300);
});
$(".hd_closer").on("click", function() {
$(".hd_closer").on("click", function(e) {
var idx = $(".hd_closer").index($(this));
$(".hd_div:visible").hide();
$(".hd_opener:eq("+idx+")").find("span").text("열기");