|
|
@@ -51,7 +51,7 @@
|
|
|
<div class="swiper-slide">
|
|
|
<div class="movbox">
|
|
|
<th:block th:if="${goodsVideo.videoGb == 'Y'}">
|
|
|
- <iframe id="prodctThumbVideo" class="pd_mov" width="100%" height="100%" th:src="${'https://www.youtube.com/embed/'+goodsVideo.kmcKey+'?rel=0&autoplay=1&mute=1'}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
|
+ <iframe width="100%" height="100%" th:src="${'https://www.youtube.com/embed/'+goodsVideo.kmcKey+'?rel=0&autoplay=1&mute=1'}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
|
</th:block>
|
|
|
<th:block th:unless="${goodsVideo.videoGb == 'Y'}">
|
|
|
<iframe id="child" class="pd_mov" width="100%" height="100%" th:src="${kollusMediaUrl+'/'+goodsVideo.kmcKey +'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
|
@@ -257,6 +257,7 @@
|
|
|
<iframe th:src="${'https://www.youtube.com/embed/'+goodsVideo.kmcKey+'?rel=0'}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
|
</th:block>
|
|
|
<th:block th:unless="${goodsVideo.videoGb == 'Y'}">
|
|
|
+ <iframe class="pd_mov" width="100%" height="100%" th:src="${kollusMediaUrl+'/'+goodsVideo.kmcKey +'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
|
</th:block>
|
|
|
</div>
|
|
|
</th:block>
|
|
|
@@ -1954,10 +1955,10 @@
|
|
|
});
|
|
|
|
|
|
//슬라이드 - 함께하면 할인되는 다다익선 상품
|
|
|
- var togetherItemSwiper = new Swiper('.pd .pd_together .area_slider .swiper-container', {
|
|
|
- slidesPerView: 3,
|
|
|
- spaceBetween: 8,
|
|
|
- });
|
|
|
+ var togetherItemSwiper = new Swiper('.pd .pd_together .area_slider .swiper-container', {
|
|
|
+ slidesPerView: 3,
|
|
|
+ spaceBetween: 8,
|
|
|
+ });
|
|
|
|
|
|
//슬라이드 - 베스트리뷰
|
|
|
var riviewSwiper = new Swiper('.riview_box .area_slider .swiper-container', {
|
|
|
@@ -2071,13 +2072,13 @@
|
|
|
});
|
|
|
|
|
|
//관심상품 등록
|
|
|
- $(document).on('click','.pd .itemLike',function(e){
|
|
|
- $(this).toggleClass('active');
|
|
|
- return false;
|
|
|
- });
|
|
|
+ $(document).on('click','.pd .itemLike',function(e){
|
|
|
+ $(this).toggleClass('active');
|
|
|
+ return false;
|
|
|
+ });
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
fnOptionSoldout();
|
|
|
|
|
|
// 광고 스크립트용
|
|
|
@@ -2156,10 +2157,19 @@
|
|
|
|
|
|
// ep 쿠폰확인
|
|
|
fnEpCouponDown([[${afLinkCd}]], [[${params.goodsCd}]], 1);
|
|
|
+
|
|
|
+
|
|
|
+ $('.Purchase_pop .btPop_close').click(function(){
|
|
|
+ $('html, body').css({'overflow': 'visible', 'height': '100%'});
|
|
|
+ $('.container').removeClass('btPop_open');
|
|
|
+ autome.style.top = 100 + "%";
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+
|
|
|
});
|
|
|
|
|
|
// 상품상세 asis html 이지미 경로 수정
|
|
|
- window.onload = function(){
|
|
|
+ window.onload = function(){
|
|
|
$(".pd_descrp .cont_body").find('img').each(function() {
|
|
|
let tmpImgSrc = $(this).attr('src');
|
|
|
if (tmpImgSrc.indexOf('Upload') == 1 ){ // /Upload
|
|
|
@@ -2167,42 +2177,65 @@
|
|
|
}
|
|
|
|
|
|
});
|
|
|
- }
|
|
|
-
|
|
|
- $('.Purchase_pop .btPop_close').click(function(){
|
|
|
- $('html, body').css({'overflow': 'visible', 'height': '100%'});
|
|
|
- $('.container').removeClass('btPop_open');
|
|
|
- autome.style.top = 100 + "%";
|
|
|
- return false;
|
|
|
- });
|
|
|
-
|
|
|
- $(window).scroll(function(){
|
|
|
- var lastScrollTop = 0;
|
|
|
- var st = $(this).scrollTop();
|
|
|
- if($('header').hasClass("main") !== true){
|
|
|
- if (st > lastScrollTop){
|
|
|
- $(".app .gnb").css("position", "fixed");
|
|
|
- $(".htop").css("background", "#fff");
|
|
|
- $(".app .gnb .btn-expand").css("position", "fixed");
|
|
|
- $(".tabbar").removeClass("fixed");
|
|
|
- } else {
|
|
|
- $(".app .gnb").css("position", "fixed");
|
|
|
- $(".htop").css("background", "#fff");
|
|
|
- $(".app .gnb .btn-expand").css("position", "fixed");
|
|
|
- $(".tabbar").addClass("fixed");
|
|
|
- setTimeout(function(){
|
|
|
- if($(window).scrollTop() === 0){
|
|
|
- $(".app .gnb").css("position", "relative");
|
|
|
- $(".app .gnb .btn-expand").css("position", "absolute");
|
|
|
- }
|
|
|
- },300)
|
|
|
+
|
|
|
+ /*
|
|
|
+ let goodsVideoList = [[${goodsVideoList}]];
|
|
|
+ let videoFlag = false;
|
|
|
+ if (goodsVideoList != null){
|
|
|
+
|
|
|
+ $.each(goodsVideoList, function(idx, goodsVideo) {
|
|
|
+ if ("M" == goodsVideo.videoGb){
|
|
|
+ videoFlag = true;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ if (videoFlag){
|
|
|
+ try {
|
|
|
+ var controller = new VgControllerClient({
|
|
|
+ target_window: document.getElementById('child').contentWindow
|
|
|
+ });
|
|
|
+ //console.log(controller.get_screen());
|
|
|
+ //controller.enable_fullscreen_button(true);
|
|
|
+ // 여기서부터 이벤트 리스너를 등록하거나, 웹페이지 Element에 메소드를 bind하면 됩니다.
|
|
|
+ } catch(e) {
|
|
|
+ // Videogateweay Controller Library는 window.postMessage API를 이용하기 때문에
|
|
|
+ // 해당 기능을 지원하지 않는 웹브라우져에서는 동작하지 않습니다.
|
|
|
+ // 이 부분에 적절한 fail-over 코드를 추가하여 주십시요.
|
|
|
}
|
|
|
- if(st < 10) {
|
|
|
- $(".htop").css("background", "transparent");
|
|
|
+ controller.mute();
|
|
|
+ controller.play();
|
|
|
+ controller.set_control_visibility(false);
|
|
|
+
|
|
|
+ } */
|
|
|
+
|
|
|
+ /* $(window).scroll(function(){
|
|
|
+ var scrollTop= $(window).scrollTop();
|
|
|
+ var itemTop=$('.descript_box').offset().top;
|
|
|
+ var winHeight = $(window).height();
|
|
|
+ console.log(winHeight-scrollTop);
|
|
|
+ console.log(winHeight/1.5);
|
|
|
+ if (winHeight-scrollTop <= winHeight/1.5){
|
|
|
+ controller.pause();
|
|
|
+ } else {
|
|
|
+ controller.play();
|
|
|
+ controller.set_control_visibility(false);
|
|
|
}
|
|
|
- lastScrollTop = st;
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
+ controller.on('done', function() {
|
|
|
+ controller.play();
|
|
|
+ controller.set_control_visibility(false);
|
|
|
+ });
|
|
|
+ }); */
|
|
|
+
|
|
|
+ $(document).on('click','.pop_open_btn',function(){
|
|
|
+ $('.modal.photo_comment_popup .pop_detail').toggleClass('active');
|
|
|
+ });
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
/*]]>*/
|
|
|
</script>
|
|
|
|