2024/01/16 header 수정, mainPage 슬라이드 수정

This commit is contained in:
subsub 2024-01-16 12:26:15 +09:00
parent eeeb890466
commit 6a8911d71f
4 changed files with 51 additions and 9 deletions

View File

@ -420,16 +420,16 @@ function instrChk(){
<c:set var="popzATitle">새창열림</c:set> <c:set var="popzATitle">새창열림</c:set>
</c:if> </c:if>
<c:if test="${popipZoneList.istarget == 'N'}"> <c:if test="${popipZoneList.istarget == 'N'}">
<a href="javascript:popzoneOpen('${popipZoneList.mlink}','${popipZoneList.istarget}');" title="새창열림" > <a class="swiper-slide" href="javascript:popzoneOpen('${popipZoneList.mlink}','${popipZoneList.istarget}');" title="새창열림" >
<div class="swiper-slide"> <div>
<img style="cursor:pointer" onerror="this.src='/images/no_img.jpg'" alt="${popipZoneList.imgAlt} 팝업" <img style="cursor:pointer" onerror="this.src='/images/no_img.jpg'" alt="${popipZoneList.imgAlt} 팝업"
src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${popipZoneList.popupzoneImageFile}"/>' /> src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${popipZoneList.popupzoneImageFile}"/>' />
</div> </div>
</a> </a>
</c:if> </c:if>
<c:if test="${popipZoneList.istarget != 'N'}"> <c:if test="${popipZoneList.istarget != 'N'}">
<a href="javascript:popzoneOpen('${popipZoneList.mlink}','${popipZoneList.istarget}');"> <a class="swiper-slide" href="javascript:popzoneOpen('${popipZoneList.mlink}','${popipZoneList.istarget}');">
<div class="swiper-slide"> <div>
<img style="cursor:pointer" onerror="this.src='/images/no_img.jpg'" alt="${popipZoneList.imgAlt} 팝업" <img style="cursor:pointer" onerror="this.src='/images/no_img.jpg'" alt="${popipZoneList.imgAlt} 팝업"
src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${popipZoneList.popupzoneImageFile}"/>' /> src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${popipZoneList.popupzoneImageFile}"/>' />
</div> </div>

View File

@ -28,6 +28,8 @@
.visual_slide .swiper-slide[data-swiper-slide-index="3"]{background:url(/offedu/visitEdu/usr/publish/images/main/main_visual_04.jpg) no-repeat center top;} .visual_slide .swiper-slide[data-swiper-slide-index="3"]{background:url(/offedu/visitEdu/usr/publish/images/main/main_visual_04.jpg) no-repeat center top;}
.visual_slide .swiper-slide[data-swiper-slide-index="4"]{background:url(/offedu/visitEdu/usr/publish/images/main/main_visual_05.jpg) no-repeat center top;} .visual_slide .swiper-slide[data-swiper-slide-index="4"]{background:url(/offedu/visitEdu/usr/publish/images/main/main_visual_05.jpg) no-repeat center top;}
.visual_slide .swiper-pagination-bullet:focus-visible{outline:2px solid #000;}
/* main_banner_link */ /* main_banner_link */
.container .main_banner_link{position:relative;height:130px;margin:20px auto 70px auto;} .container .main_banner_link{position:relative;height:130px;margin:20px auto 70px auto;}
.container .main_banner_link li{position:relative;display:flex;width:calc((100%/5) - 12px);height:100%;background-color:#fff;border-radius:5px;box-shadow:0 0 5px rgba(45,55,90,0.2);align-items:center;transition:all 0.3s ease-in-out;} .container .main_banner_link li{position:relative;display:flex;width:calc((100%/5) - 12px);height:100%;background-color:#fff;border-radius:5px;box-shadow:0 0 5px rgba(45,55,90,0.2);align-items:center;transition:all 0.3s ease-in-out;}
@ -89,6 +91,7 @@
.wrap .notify .notify_control .slide_pause{background:url(/offedu/visitEdu/usr/publish/images/main/btn_pause.png) no-repeat center center;} .wrap .notify .notify_control .slide_pause{background:url(/offedu/visitEdu/usr/publish/images/main/btn_pause.png) no-repeat center center;}
.wrap .notify .notify_control .slide_play{background:url(/offedu/visitEdu/usr/publish/images/main/btn_play.png) no-repeat center center;} .wrap .notify .notify_control .slide_play{background:url(/offedu/visitEdu/usr/publish/images/main/btn_play.png) no-repeat center center;}
.wrap .notify .content{width:100%;height:332px;overflow:hidden;border-radius:5px;} .wrap .notify .content{width:100%;height:332px;overflow:hidden;border-radius:5px;}
.wrap .notify .notify_slide a:focus{width:calc(100% - 6px);height:calc(100% - 6px);margin:2px 0 0 2px;}
@media all and (max-width: 1440px){ @media all and (max-width: 1440px){
.main .inner{width:calc(100% - 40px);} .main .inner{width:calc(100% - 40px);}

View File

@ -173,8 +173,6 @@ function header() {
depth01_li.addClass("on"); depth01_li.addClass("on");
$('header .depth02').css('height',h + 'px'); $('header .depth02').css('height',h + 'px');
} }
gnb.find(".menu_link").on("mouseover", function () { gnb.find(".menu_link").on("mouseover", function () {
open_gnb($(this)); open_gnb($(this));
@ -217,10 +215,9 @@ function header() {
$(".depth01_li").removeClass("on"); $(".depth01_li").removeClass("on");
$("header .depth02").animate({height:'auto'},1000); $("header .depth02").animate({height:'auto'},1000);
}); });
$(".depth01_li").on('mouseleave',function(){ /*$(".depth01_li").on('mouseleave',function(){
$('header .depth02').attr('style',''); $('header .depth02').attr('style','');
}) });*/
$("#menu .depth01_li:last-child .depth02 li:last-child").on("focusout", function () { $("#menu .depth01_li:last-child .depth02 li:last-child").on("focusout", function () {
header.removeClass("on").attr('style',''); header.removeClass("on").attr('style','');
$("#menu .depth01_li").removeClass("on"); $("#menu .depth01_li").removeClass("on");

View File

@ -1,5 +1,8 @@
$(document).ready(function () { $(document).ready(function () {
$(".visual_slide .swiper-slide-active").siblings(".swiper-slide").find("a").attr("tabindex","-1");
$(".notify_slide .swiper-slide-active").siblings(".swiper-slide").attr("tabindex","-1");
//visual slide //visual slide
var visualSlide = new Swiper('.visual_slide', { var visualSlide = new Swiper('.visual_slide', {
spaceBetween: 30, spaceBetween: 30,
@ -14,8 +17,20 @@ $(document).ready(function () {
navigation: { navigation: {
nextEl: '.visual_slide .btn_next_slide', nextEl: '.visual_slide .btn_next_slide',
prevEl: '.visual_slide .btn_prev_slide', prevEl: '.visual_slide .btn_prev_slide',
},
on:{
slideChange:function(){
$(".visual_slide").find(".swiper-slide-active").find("a").attr("tabindex","0");
$(".visual_slide").find(".swiper-slide-active").siblings(".swiper-slide").find("a").attr("tabindex","-1");
},
transitionStart:function(){
$(".visual_slide").find(".swiper-slide-active").find("a").attr("tabindex","0");
$(".visual_slide").find(".swiper-slide-active").siblings(".swiper-slide").find("a").attr("tabindex","-1");
}
} }
}); });
// notify slide // notify slide
var notifySlide = new Swiper('.notify_slide', { var notifySlide = new Swiper('.notify_slide', {
@ -31,8 +46,35 @@ $(document).ready(function () {
navigation: { navigation: {
nextEl: ".notify_control .swiper-button-next", nextEl: ".notify_control .swiper-button-next",
prevEl: ".notify_control .swiper-button-prev", prevEl: ".notify_control .swiper-button-prev",
},
on:{
slideChange:function(){
$(".notify_slide").find(".swiper-slide-active").attr("tabindex","0");
$(".notify_slide").find(".swiper-slide-active").siblings(".swiper-slide").attr("tabindex","-1");
},
transitionStart:function(){
$(".notify_slide").find(".swiper-slide-active").attr("tabindex","0");
$(".notify_slide").find(".swiper-slide-active").siblings(".swiper-slide").attr("tabindex","-1");
}
} }
}); });
// 슬라이드 포커싱 시 멈춤/재생
$('.visual_slide .swiper-slide a').focusin(function(){
visualSlide.autoplay.stop();
});
$('.visual_slide .swiper-slide a').focusout(function(){
visualSlide.autoplay.start();
})
$('.notify_slide .swiper-slide').focusin(function(){
notifySlide.autoplay.stop();
});
$('.notify_slide .swiper-slide').focusout(function(){
notifySlide.autoplay.start();
})
$(".visual_slide .slide_pause").click(function () { // 중지버튼 눌렀을때 $(".visual_slide .slide_pause").click(function () { // 중지버튼 눌렀을때