리뉴얼 부분 수정
This commit is contained in:
1 parent
00a98ea6ea
commit
a20dc27a5a
6 files changed
+23
-174
No files matched your search
+2
-3
@@ -140,7 +140,6 @@ function imageview(id, w, h)
|
||||
</nav>
|
||||
|
||||
</header>
|
||||
<script src="<?php echo G5_JS_URL; ?>/js.cookie.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<script>
|
||||
jQuery(function($){
|
||||
|
||||
@@ -156,9 +155,9 @@ jQuery(function($){
|
||||
|
||||
try {
|
||||
if( ! $this.hasClass("btn_gnb_open") ){
|
||||
Cookies.set(menu_cookie_key, 1);
|
||||
set_cookie(menu_cookie_key, 1, 60*60*24*365);
|
||||
} else {
|
||||
Cookies.remove(menu_cookie_key);
|
||||
delete_cookie(menu_cookie_key);
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
||||
@@ -546,6 +546,8 @@ function font_resize(id, rmv_class, add_class)
|
||||
|
||||
set_cookie("ck_font_resize_rmv_class", rmv_class, 1, g5_cookie_domain);
|
||||
set_cookie("ck_font_resize_add_class", add_class, 1, g5_cookie_domain);
|
||||
|
||||
$el.trigger("click_font_resize");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-165
@@ -1,165 +0,0 @@
|
||||
/*!
|
||||
* JavaScript Cookie v2.1.4
|
||||
* https://github.com/js-cookie/js-cookie
|
||||
*
|
||||
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
||||
* Released under the MIT license
|
||||
*/
|
||||
;(function (factory) {
|
||||
var registeredInModuleLoader = false;
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(factory);
|
||||
registeredInModuleLoader = true;
|
||||
}
|
||||
if (typeof exports === 'object') {
|
||||
module.exports = factory();
|
||||
registeredInModuleLoader = true;
|
||||
}
|
||||
if (!registeredInModuleLoader) {
|
||||
var OldCookies = window.Cookies;
|
||||
var api = window.Cookies = factory();
|
||||
api.noConflict = function () {
|
||||
window.Cookies = OldCookies;
|
||||
return api;
|
||||
};
|
||||
}
|
||||
}(function () {
|
||||
function extend () {
|
||||
var i = 0;
|
||||
var result = {};
|
||||
for (; i < arguments.length; i++) {
|
||||
var attributes = arguments[ i ];
|
||||
for (var key in attributes) {
|
||||
result[key] = attributes[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function init (converter) {
|
||||
function api (key, value, attributes) {
|
||||
var result;
|
||||
if (typeof document === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
// Write
|
||||
|
||||
if (arguments.length > 1) {
|
||||
attributes = extend({
|
||||
path: '/'
|
||||
}, api.defaults, attributes);
|
||||
|
||||
if (typeof attributes.expires === 'number') {
|
||||
var expires = new Date();
|
||||
expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);
|
||||
attributes.expires = expires;
|
||||
}
|
||||
|
||||
// We're using "expires" because "max-age" is not supported by IE
|
||||
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
|
||||
|
||||
try {
|
||||
result = JSON.stringify(value);
|
||||
if (/^[\{\[]/.test(result)) {
|
||||
value = result;
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
if (!converter.write) {
|
||||
value = encodeURIComponent(String(value))
|
||||
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
||||
} else {
|
||||
value = converter.write(value, key);
|
||||
}
|
||||
|
||||
key = encodeURIComponent(String(key));
|
||||
key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
|
||||
key = key.replace(/[\(\)]/g, escape);
|
||||
|
||||
var stringifiedAttributes = '';
|
||||
|
||||
for (var attributeName in attributes) {
|
||||
if (!attributes[attributeName]) {
|
||||
continue;
|
||||
}
|
||||
stringifiedAttributes += '; ' + attributeName;
|
||||
if (attributes[attributeName] === true) {
|
||||
continue;
|
||||
}
|
||||
stringifiedAttributes += '=' + attributes[attributeName];
|
||||
}
|
||||
return (document.cookie = key + '=' + value + stringifiedAttributes);
|
||||
}
|
||||
|
||||
// Read
|
||||
|
||||
if (!key) {
|
||||
result = {};
|
||||
}
|
||||
|
||||
// To prevent the for loop in the first place assign an empty array
|
||||
// in case there are no cookies at all. Also prevents odd result when
|
||||
// calling "get()"
|
||||
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
||||
var rdecode = /(%[0-9A-Z]{2})+/g;
|
||||
var i = 0;
|
||||
|
||||
for (; i < cookies.length; i++) {
|
||||
var parts = cookies[i].split('=');
|
||||
var cookie = parts.slice(1).join('=');
|
||||
|
||||
if (cookie.charAt(0) === '"') {
|
||||
cookie = cookie.slice(1, -1);
|
||||
}
|
||||
|
||||
try {
|
||||
var name = parts[0].replace(rdecode, decodeURIComponent);
|
||||
cookie = converter.read ?
|
||||
converter.read(cookie, name) : converter(cookie, name) ||
|
||||
cookie.replace(rdecode, decodeURIComponent);
|
||||
|
||||
if (this.json) {
|
||||
try {
|
||||
cookie = JSON.parse(cookie);
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
if (key === name) {
|
||||
result = cookie;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!key) {
|
||||
result[name] = cookie;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
api.set = api;
|
||||
api.get = function (key) {
|
||||
return api.call(api, key);
|
||||
};
|
||||
api.getJSON = function () {
|
||||
return api.apply({
|
||||
json: true
|
||||
}, [].slice.call(arguments));
|
||||
};
|
||||
api.defaults = {};
|
||||
|
||||
api.remove = function (key, attributes) {
|
||||
api(key, '', extend(attributes, {
|
||||
expires: -1
|
||||
}));
|
||||
};
|
||||
|
||||
api.withConverter = init;
|
||||
|
||||
return api;
|
||||
}
|
||||
|
||||
return init(function () {});
|
||||
}));
|
||||
+17
-4
@@ -141,7 +141,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
|
||||
<script>
|
||||
jQuery(function ($) {
|
||||
$(".hd_opener").on("click", function() {
|
||||
$(".hd_opener").on("click", function(e) {
|
||||
var $this = $(this);
|
||||
var $hd_layer = $this.next(".hd_div");
|
||||
|
||||
@@ -158,17 +158,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("열기");
|
||||
|
||||
@@ -12,7 +12,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$outlogin_skin_url.'/style.css">'
|
||||
<div id="ol_after_hd">
|
||||
<span class="profile_img">
|
||||
<img src="<?php echo G5_IMG_URL ;?>/no_profile.gif" alt="프로필이미지">
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info">정보수정</a>
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info" title="정보수정">정보수정</a>
|
||||
</span>
|
||||
<strong><?php echo $nick ?>님</strong>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$outlogin_skin_url.'/style.css">'
|
||||
<h2>나의 회원정보</h2>
|
||||
<span class="profile_img">
|
||||
<img src="<?php echo G5_IMG_URL ;?>/no_profile.gif" alt="프로필이미지">
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info">정보수정</a>
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info" title="정보수정">정보수정</a>
|
||||
</span>
|
||||
<strong><?php echo $nick ?>님</strong>
|
||||
<?php if ($is_admin == 'super' || $is_auth) { ?><a href="<?php echo G5_ADMIN_URL ?>" class="btn_admin">관리자</a><?php } ?>
|
||||
|
||||
Reference in new issue
Block a user