|
|
@@ -160,62 +160,6 @@ $(document).ready(function() {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
-//Select Custom
|
|
|
-$( document ).ready(function() {
|
|
|
- $('select').each(function(){
|
|
|
- var $this = $(this), numberOfOptions = $(this).children('option').length;
|
|
|
-
|
|
|
- $this.addClass('select_hidden');
|
|
|
- $this.wrap('<div class="select"></div>');
|
|
|
- $this.after('<div class="select_dress"></div>');
|
|
|
-
|
|
|
- var $dressSelect = $this.next('div.select_dress');
|
|
|
- $dressSelect.text($this.children('option').eq(0).text());
|
|
|
-
|
|
|
- var $selList = $('<ul />', {
|
|
|
- 'class': 'select_options'
|
|
|
- }).insertAfter($dressSelect);
|
|
|
-
|
|
|
- for (var i = 0; i < numberOfOptions; i++) {
|
|
|
- $('<li />', {
|
|
|
- text: $this.children('option').eq(i).text(),
|
|
|
- rel: $this.children('option').eq(i).val(),
|
|
|
- class: $this.children('option').eq(i).attr('disabled')
|
|
|
- }).appendTo($selList);
|
|
|
- }
|
|
|
-
|
|
|
- var $selListItems = $selList.children('li');
|
|
|
-
|
|
|
- $dressSelect.click(function(e) {
|
|
|
- e.stopPropagation();
|
|
|
- $('div.select_dress.active').not(this).each(function(){
|
|
|
- $(this).removeClass('active').next('ul.select_options').hide();
|
|
|
- });
|
|
|
- $(this).toggleClass('active').next('ul.select_options').toggle();
|
|
|
- });
|
|
|
-
|
|
|
- $selListItems.click(function(e) {
|
|
|
- e.stopPropagation();
|
|
|
-
|
|
|
- if($(this).hasClass('disabled')){
|
|
|
- $this.val($(this).attr('rel',false));
|
|
|
- }
|
|
|
- else{
|
|
|
- $dressSelect.text($(this).text()).removeClass('active');
|
|
|
- $this.val($(this).attr('rel'));
|
|
|
- $selList.hide();
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- $(document).click(function() {
|
|
|
- $dressSelect.removeClass('active');
|
|
|
- $selList.hide();
|
|
|
- });
|
|
|
-
|
|
|
- });
|
|
|
-});
|
|
|
-
|
|
|
-
|
|
|
// Select-Combo-Custom
|
|
|
function sCombo(selector){
|
|
|
this.$selectBox = null,
|
|
|
@@ -704,11 +648,13 @@ $(document).ready(function () {
|
|
|
}
|
|
|
return false;
|
|
|
});
|
|
|
+
|
|
|
// 210405_사이즈 선택시 구매하기 팝업 추가
|
|
|
$('.opt_size .form_field div').click(function(){
|
|
|
popOpenScroll();
|
|
|
//$('.btPop_body .lap span').css('color', 'red')
|
|
|
//console.log($(this)[0]);
|
|
|
+ console.log();
|
|
|
$('.container').addClass('btPop_open');
|
|
|
// autome.style.top = autotop /10 + "vh";
|
|
|
if (autotop > 251) {
|
|
|
@@ -719,6 +665,97 @@ $(document).ready(function () {
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
+ // 210407_사이즈 선택유지 스크립트
|
|
|
+ $('.option_box .form_field div label').click(function(){
|
|
|
+ var a = [];
|
|
|
+ a = document.querySelectorAll(".option_box .form_field div label span");
|
|
|
+ sizeLine = document.querySelectorAll(".option_box .form_field div label");
|
|
|
+ sizeGap = this.innerText;
|
|
|
+
|
|
|
+ if(sizeGap === "90"){
|
|
|
+ for(var i=0; i<a.length; i++){
|
|
|
+ sizeLine[i].style.border="1px solid #ddd";
|
|
|
+ if(a[i].innerText === "90"){
|
|
|
+ sizeLine[i].style.border="1px solid #fd4802";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(sizeGap === "95"){
|
|
|
+ for(var i=0; i<a.length; i++){
|
|
|
+ sizeLine[i].style.border="1px solid #ddd";
|
|
|
+ if(a[i].innerText === "95"){
|
|
|
+ sizeLine[i].style.border="1px solid #fd4802";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(sizeGap === "100"){
|
|
|
+ for(var i=0; i<a.length; i++){
|
|
|
+ sizeLine[i].style.border="1px solid #ddd";
|
|
|
+ if(a[i].innerText === "100"){
|
|
|
+ sizeLine[i].style.border="1px solid #fd4802";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(sizeGap === "105"){
|
|
|
+ for(var i=0; i<a.length; i++){
|
|
|
+ sizeLine[i].style.border="1px solid #ddd";
|
|
|
+ if(a[i].innerText === "105"){
|
|
|
+ sizeLine[i].style.border="1px solid #fd4802";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(sizeGap === "110"){
|
|
|
+ for(var i=0; i<a.length; i++){
|
|
|
+ sizeLine[i].style.border="1px solid #ddd";
|
|
|
+ if(a[i].innerText === "110"){
|
|
|
+ sizeLine[i].style.border="1px solid #fd4802";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(sizeGap === "115"){
|
|
|
+ for(var i=0; i<a.length; i++){
|
|
|
+ sizeLine[i].style.border="1px solid #ddd";
|
|
|
+ if(a[i].innerText === "115"){
|
|
|
+ sizeLine[i].style.border="1px solid #fd4802";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(sizeGap === "free"){
|
|
|
+ for(var i=0; i<a.length; i++){
|
|
|
+ sizeLine[i].style.border="1px solid #ddd";
|
|
|
+ if(a[i].innerText === "free"){
|
|
|
+ sizeLine[i].style.border="1px solid #fd4802";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 210407_텍스트 카운팅
|
|
|
+ $('.doc_itemqna').keyup(function (e){
|
|
|
+ var content = $(this).val();
|
|
|
+ $('#itemqna_cnt').html("<em class='c_primary'>"+content.length+"</em>/500자");//글자수 실시간 카운팅
|
|
|
+
|
|
|
+ if (content.length > 200){
|
|
|
+ alert("최대 500자까지 입력 가능합니다.");
|
|
|
+ $(this).val(content.substring(0, 500));
|
|
|
+ $('#itemqna_cnt').html("<em class='c_primary'>500</em>/500자");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 210407_스크롤감지 헤더 그림자
|
|
|
+ $('.pd_delivery_pop').scroll(function(){
|
|
|
+ $(".pd_delivery_pop .modal-header").css("box-shadow", "0px -50px 81px 8px rgba(0,0,0,0.80)");
|
|
|
+ if($(".pd_delivery_pop").scrollTop() === 0){
|
|
|
+ $(".pd_delivery_pop .modal-header").css("box-shadow", "rgb(0 0 0 / 20%) 0px 0px 5px");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $('.pd_review_pop').scroll(function(){
|
|
|
+ $(".pd_review_pop .modal-header").css("box-shadow", "0px -50px 81px 8px rgba(0,0,0,0.80)");
|
|
|
+ if($(".pd_review_pop").scrollTop() === 0){
|
|
|
+ $(".pd_review_pop .modal-header").css("box-shadow", "rgb(0 0 0 / 20%) 0px 0px 5px");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
// 쇼핑백팝업
|
|
|
$("#btn_shoppingBag_pop").click(function() {
|
|
|
@@ -756,8 +793,10 @@ $( document ).ready( function() {
|
|
|
|
|
|
/* 상품문의_accordion */
|
|
|
$(document).on('click','.pd_qnalist .fold_head .fold_tit',function(e){
|
|
|
- $('.fold_head').removeClass('on');
|
|
|
- $('.fold_cont').slideUp(100);
|
|
|
+ //$('.fold_head').removeClass('on');
|
|
|
+ //$('.fold_cont').slideUp(100);
|
|
|
+ //$(this).parents('.foldGroup li').find('.fold_cont').slideToggle(100);
|
|
|
+ //$(this).parents('.fold_head').toggleClass('on');
|
|
|
$(this).parents('.foldGroup li').find('.fold_cont').slideToggle(100);
|
|
|
$(this).parents('.fold_head').toggleClass('on');
|
|
|
return false;
|