소셜 로그인 등 수정

This commit is contained in:
thisgun committed 2017-08-31 15:15:56 +09:00
1 parent 4447579b20
commit 63907105f3
15 files changed
+268 -53

No files matched your search

+24 -20
View File
@@ -40,28 +40,32 @@ if(defined('G5_THEME_PATH')) {
<script>
$(function() {
// 폰트 리사이즈 쿠키있으면 실행
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
});
jQuery(function($) {
//상단고정
$( document ).ready( function() {
var jbOffset = $( '.top' ).offset();
$( window ).scroll( function() {
if ( $( document ).scrollTop() > jbOffset.top ) {
$( '.top' ).addClass( 'fixed' );
$( document ).ready( function() {
// 폰트 리사이즈 쿠키있으면 실행
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' );
}
});
}
else {
$( '.top' ).removeClass( 'fixed' );
}
});
});
//상단으로
$(function() {
$("#top_btn").on("click", function() {
$("html, body").animate({scrollTop:0}, '500');
return false;
//상단으로
$("#top_btn").on("click", function() {
$("html, body").animate({scrollTop:0}, '500');
return false;
});
});
});
</script>