테마 모바일 수정중
This commit is contained in:
1 parent
bb896d81aa
commit
b5b4c67bcd
11 files changed
+67
-43
No files matched your search
+23
-10
@@ -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("열기");
|
||||
|
||||
+25
-17
@@ -19,7 +19,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</div>
|
||||
Copyright © <b>소유하신 도메인.</b> All rights reserved.<br>
|
||||
</div>
|
||||
<button type="button" id="top_btn">상단으로</button>
|
||||
<button type="button" id="top_btn"><i class="fa fa-arrow-up" aria-hidden="true"></i><span class="sound_only">상단으로</span></button>
|
||||
<?php
|
||||
if(G5_DEVICE_BUTTON_DISPLAY && G5_IS_MOBILE) { ?>
|
||||
<a href="<?php echo get_device_change_url(); ?>" id="device_change">PC 버전으로 보기</a>
|
||||
@@ -35,28 +35,36 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// 폰트 리사이즈 쿠키있으면 실행
|
||||
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
|
||||
});
|
||||
jQuery(function($) {
|
||||
|
||||
//상단고정
|
||||
$(window).scroll(function(){
|
||||
var sticky = $('.top'),
|
||||
scroll = $(window).scrollTop();
|
||||
$( document ).ready( function() {
|
||||
|
||||
if (scroll >= 50) sticky.addClass('fixed');
|
||||
else sticky.removeClass('fixed');
|
||||
});
|
||||
// 폰트 리사이즈 쿠키있으면 실행
|
||||
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
|
||||
|
||||
//상단고정
|
||||
if( $(".top").length ){
|
||||
var jbOffset = $(".top").offset();
|
||||
$( window ).scroll( function() {
|
||||
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||
$( '.top' ).addClass( 'fixed' );
|
||||
}
|
||||
else {
|
||||
$( '.top' ).removeClass( 'fixed' );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//상단으로
|
||||
$("#top_btn").on("click", function() {
|
||||
$("html, body").animate({scrollTop:0}, '500');
|
||||
return false;
|
||||
});
|
||||
|
||||
//상단으로
|
||||
$(function() {
|
||||
$("#top_btn").on("click", function() {
|
||||
$("html, body").animate({scrollTop:0}, '500');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH."/tail.sub.php");
|
||||
?>
|
||||
Reference in new issue
Block a user