거래처 테이블 추가 중
This commit is contained in:
@@ -43,37 +43,6 @@ function _isMobile() {
|
||||
return isMobile;
|
||||
}
|
||||
|
||||
// Responsive 이미지 변환
|
||||
function ResponsiveImagesNew() {
|
||||
$(".imgResponsive").each(function() {
|
||||
var winW = window.innerWidth;
|
||||
if (winW > 1023 && $(this).attr("data-media-type") != "pc") {
|
||||
var url = $(this).attr("data-src-pc");
|
||||
$(this).attr("data-media-type", "pc");
|
||||
chgImg($(this), url, "pc");
|
||||
}
|
||||
if (winW <= 1023 && $(this).attr("data-media-type") != "mobile") {
|
||||
var url = $(this).attr("data-src-mobile");
|
||||
$(this).attr("data-media-type", "mobile");
|
||||
chgImg($(this), url, "mobile");
|
||||
}
|
||||
});
|
||||
|
||||
function chgImg($target, url, type) {
|
||||
$target.attr("src", url);
|
||||
$target.attr("data-media-type", type);
|
||||
}
|
||||
|
||||
var winW = window.innerWidth;
|
||||
|
||||
if ($('#contents').length) {
|
||||
if ($('#contents').outerHeight(true) + $('#header').outerHeight(true) + $('#footer').outerHeight(true) <= window.innerHeight) {
|
||||
$('#contents').css({
|
||||
minHeight: window.innerHeight - $('#header').outerHeight(true) - $('#footer').outerHeight(true)
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// LayerPopup 열기
|
||||
var idxLayPop = 0;
|
||||
@@ -133,177 +102,6 @@ function layerPop(n, target){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 아코디언
|
||||
function accodianUI() {
|
||||
var el = $('.accordianList');
|
||||
|
||||
if (el.length <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
el.find('>ul>li').removeClass('on');
|
||||
|
||||
bindEvents();
|
||||
|
||||
function bindEvents() {
|
||||
el.find('>ul>li>dl>dt>a').off('click.accodianEvt').on('click.accodianEvt', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
var index = $(this).closest('li').index();
|
||||
|
||||
$(this).closest(el).find('>ul>li').each(function(idx, obj) {
|
||||
if (idx == index) {
|
||||
if ($(obj).hasClass('on')) {
|
||||
$(obj).removeClass('on');
|
||||
} else {
|
||||
$(obj).addClass('on');
|
||||
}
|
||||
} else {
|
||||
$(obj).removeClass('on');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 탭 메뉴
|
||||
function tabUI() {
|
||||
var el = $('.tabsGroup');
|
||||
|
||||
if(el.length <= 0){
|
||||
return;
|
||||
}
|
||||
|
||||
el.each(function(idx, obj){
|
||||
if($(obj).find('.tabs > li').hasClass('on')){
|
||||
$(obj).find('.tabs > li').each(function(){
|
||||
var idx = $(this).filter('.on').index();
|
||||
if(idx >= 0){
|
||||
$(obj).find('.tabs > li').eq(idx).addClass('on').siblings().removeClass('on');
|
||||
$(obj).find('> .tabsCont').hide().eq(idx).show();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
else{
|
||||
$(obj).find('.tabs > li').eq(0).addClass('on').siblings().removeClass('on');
|
||||
$(obj).find('> .tabsCont').hide().eq(0).show();
|
||||
}
|
||||
|
||||
bindEvents(obj);
|
||||
});
|
||||
|
||||
|
||||
function bindEvents(obj){
|
||||
var $this = $(obj);
|
||||
|
||||
$this.find('.tabs > li > a').on('click', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var index = $(this).closest('li').index();
|
||||
|
||||
if($this.find('> .tabsCont').eq(index).length <= 0){
|
||||
return;
|
||||
}
|
||||
|
||||
$(this).closest(el).find('.tabs > li').eq(index).addClass('on').siblings().removeClass('on');
|
||||
$(this).closest(el).find('> .tabsCont').hide().eq(index).show();
|
||||
|
||||
$(window).scrollTop(0);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// 퀵모임 탭 메뉴
|
||||
function meeTabUI() {
|
||||
var el = $('.meetListArea');
|
||||
|
||||
if(el.length <= 0){
|
||||
return;
|
||||
}
|
||||
|
||||
el.each(function(idx, obj){
|
||||
if($(obj).find('.tabMeet > a').hasClass('on')){
|
||||
$(obj).find('.tabMeet > a').each(function(){
|
||||
var idx = $(this).filter('.on').index();
|
||||
if(idx >= 0){
|
||||
$(obj).find('.tabMeet > a').eq(idx).addClass('on').siblings().removeClass('on');
|
||||
$(obj).find('> .tabMeetCont').hide().eq(idx).show();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
else{
|
||||
$(obj).find('.tabMeet > a').eq(0).addClass('on').siblings().removeClass('on');
|
||||
$(obj).find('> .tabMeetCont').hide().eq(0).show();
|
||||
}
|
||||
|
||||
bindEvents(obj);
|
||||
});
|
||||
|
||||
|
||||
function bindEvents(obj){
|
||||
var $this = $(obj);
|
||||
|
||||
$this.find('.tabMeet > a').on('click', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var index = $(this).index();
|
||||
|
||||
if($this.find('> .tabMeetCont').eq(index).length <= 0){
|
||||
return;
|
||||
}
|
||||
|
||||
$(this).closest(el).find('.tabMeet > a').eq(index).addClass('on').siblings().removeClass('on');
|
||||
$(this).closest(el).find('> .tabMeetCont').hide().eq(index).show();
|
||||
|
||||
$(window).scrollTop(0);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
ResponsiveImagesNew();
|
||||
$(window).resize(function() {
|
||||
ResponsiveImagesNew();
|
||||
}).resize();
|
||||
accodianUI();
|
||||
tabUI();
|
||||
meeTabUI();
|
||||
|
||||
/* 요금 안내 클릭시 아래 링크안내로 가는 부분 제거
|
||||
$(document).on('click' , '#gnb a' , function(e){
|
||||
e.preventDefault();
|
||||
if(window.location.pathname=="/home"){
|
||||
$('body, html').stop().animate({
|
||||
scrollTop : $('.section.rateSimulation').offset().top - $('#header').outerHeight(true) - 30
|
||||
});
|
||||
}else{
|
||||
location.href="/home#simulation";
|
||||
}
|
||||
});
|
||||
*/
|
||||
// 조직 선택
|
||||
$(document).on('click' , '.meetOrgList a.itemHead' , function(e){
|
||||
e.preventDefault();
|
||||
|
||||
if($(this).closest('.item').hasClass('open')){
|
||||
$(this).closest('.item').removeClass('open');
|
||||
|
||||
$(this).removeClass('on');
|
||||
}
|
||||
else{
|
||||
$(this).closest('.meetOrgList').find('.item').removeClass('open');
|
||||
$(this).closest('.item').addClass('open');
|
||||
|
||||
$(this).closest('.meetOrgList').find('.itemHead').removeClass('on');
|
||||
$(this).addClass('on');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user