모바일 상품상세 하단 플로팅 메뉴 제거
This commit is contained in:
@ -105,7 +105,19 @@
|
|||||||
.clearQueue()
|
.clearQueue()
|
||||||
.stop()
|
.stop()
|
||||||
.css({ top: element_y+"px", display: "block" })
|
.css({ top: element_y+"px", display: "block" })
|
||||||
.animate({ top: "-="+height }, cfg.duration, function() { $this.data("animated", false); });
|
.animate({ top: "-="+height }, cfg.duration,
|
||||||
|
function() {
|
||||||
|
$this.data("animated", false);
|
||||||
|
|
||||||
|
scroll_y = $(window).scrollTop();
|
||||||
|
w_height = $(window).height();
|
||||||
|
var temp_y = scroll_y + w_height - height;
|
||||||
|
|
||||||
|
if( temp_y != element_y) {
|
||||||
|
$this.css("top", temp_y+"px");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
show: function()
|
show: function()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -117,6 +117,8 @@
|
|||||||
if(check_animated())
|
if(check_animated())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
$(window).on("touchmove", blockMove);
|
||||||
|
|
||||||
idx = $slides.index($slides.filter("."+cfg.active_class));
|
idx = $slides.index($slides.filter("."+cfg.active_class));
|
||||||
next = (idx + 1) % count;
|
next = (idx + 1) % count;
|
||||||
|
|
||||||
@ -149,6 +151,8 @@
|
|||||||
$tabs.eq((next + 1) % count).addClass("tab_listed").css("left", pos_right+"px");
|
$tabs.eq((next + 1) % count).addClass("tab_listed").css("left", pos_right+"px");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(window).off("touchmove", blockMove);
|
||||||
|
|
||||||
$wrap.height(next_height);
|
$wrap.height(next_height);
|
||||||
$tabs.eq(next).addClass(cfg.tab_active);
|
$tabs.eq(next).addClass(cfg.tab_active);
|
||||||
}
|
}
|
||||||
@ -166,6 +170,8 @@
|
|||||||
if(check_animated())
|
if(check_animated())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
$(window).on("touchmove", blockMove);
|
||||||
|
|
||||||
idx = $slides.index($slides.filter("."+cfg.active_class));
|
idx = $slides.index($slides.filter("."+cfg.active_class));
|
||||||
next = idx - 1;
|
next = idx - 1;
|
||||||
if(next < 0)
|
if(next < 0)
|
||||||
@ -200,6 +206,8 @@
|
|||||||
$tabs.eq((next + 1) % count).addClass("tab_listed").css("left", pos_right+"px");
|
$tabs.eq((next + 1) % count).addClass("tab_listed").css("left", pos_right+"px");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(window).off("touchmove", blockMove);
|
||||||
|
|
||||||
$wrap.height(next_height);
|
$wrap.height(next_height);
|
||||||
$tabs.eq(next).addClass(cfg.tab_active);
|
$tabs.eq(next).addClass(cfg.tab_active);
|
||||||
}
|
}
|
||||||
@ -236,6 +244,11 @@
|
|||||||
swipe_left();
|
swipe_left();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function blockMove(event)
|
||||||
|
{
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
$(window).on("load", function(e) {
|
$(window).on("load", function(e) {
|
||||||
swipe_init();
|
swipe_init();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -66,7 +66,6 @@ function pg_anchor($info) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script src="<?php echo G5_JS_URL; ?>/jquery.touchwipe.min.js"></script>
|
|
||||||
<script src="<?php echo G5_JS_URL; ?>/jquery.floatmenu.js"></script>
|
<script src="<?php echo G5_JS_URL; ?>/jquery.floatmenu.js"></script>
|
||||||
|
|
||||||
<div id="info_top_layer">
|
<div id="info_top_layer">
|
||||||
@ -111,17 +110,6 @@ $(function() {
|
|||||||
}, timeout);
|
}, timeout);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).touchwipe({
|
|
||||||
wipeUp: function() {
|
|
||||||
$("#info_top_layer").floatTopMenu("hide");
|
|
||||||
},
|
|
||||||
wipeDown: function() {
|
|
||||||
$("#info_top_layer").floatTopMenu("hide");
|
|
||||||
},
|
|
||||||
min_move_y: 20,
|
|
||||||
preventDefaultEvents: false
|
|
||||||
});
|
|
||||||
|
|
||||||
if(navigator.userAgent.toLowerCase().indexOf("android") > -1) {
|
if(navigator.userAgent.toLowerCase().indexOf("android") > -1) {
|
||||||
$(window).on("resize", function(e) {
|
$(window).on("resize", function(e) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|||||||
@ -294,6 +294,20 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|||||||
?>
|
?>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
|
<?php if ($it['it_use']) { ?>
|
||||||
|
<div>
|
||||||
|
<ul id="sit_ov_btn">
|
||||||
|
<?php if (!$it['it_tel_inq']) { ?>
|
||||||
|
<li><input type="submit" onclick="document.pressed=this.value;" value="바로구매" id="sit_btn_buy"></li>
|
||||||
|
<li><input type="submit" onclick="document.pressed=this.value;" value="장바구니" id="sit_btn_cart"></li>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<li><a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish">위시리스트</a></li>
|
||||||
|
<li><a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec">추천하기</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;
|
$href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;
|
||||||
?>
|
?>
|
||||||
@ -308,20 +322,6 @@ $href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($it['it_use']) { ?>
|
|
||||||
<div id="form_btn_layer">
|
|
||||||
<ul id="sit_ov_btn">
|
|
||||||
<?php if (!$it['it_tel_inq']) { ?>
|
|
||||||
<li><input type="submit" onclick="document.pressed=this.value;" value="바로구매" id="sit_btn_buy"></li>
|
|
||||||
<li><input type="submit" onclick="document.pressed=this.value;" value="장바구니" id="sit_btn_cart"></li>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<li><a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish">위시리스트</a></li>
|
|
||||||
<li><a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec">추천하기</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -485,53 +485,9 @@ $(function(){
|
|||||||
alert("이전 상품이 없습니다.");
|
alert("이전 상품이 없습니다.");
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
},
|
},
|
||||||
wipeUp: function() {
|
|
||||||
$("#form_btn_layer").floatBottomMenu("hide");
|
|
||||||
},
|
|
||||||
wipeDown: function() {
|
|
||||||
$("#form_btn_layer").floatBottomMenu("hide");
|
|
||||||
},
|
|
||||||
min_move_x: 20,
|
min_move_x: 20,
|
||||||
min_move_y: 20,
|
|
||||||
preventDefaultEvents: false
|
preventDefaultEvents: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
<?php if ($it['it_use']) { ?>
|
|
||||||
var scroll_timeout = null;
|
|
||||||
var timeout = 200;
|
|
||||||
|
|
||||||
$(window).on("load", function(e) {
|
|
||||||
setTimeout(function() {
|
|
||||||
$("#form_btn_layer").floatBottomMenu();
|
|
||||||
}, timeout);
|
|
||||||
});
|
|
||||||
|
|
||||||
if(navigator.userAgent.toLowerCase().indexOf("android") > -1) {
|
|
||||||
$(window).on("resize", function(e) {
|
|
||||||
setTimeout(function() {
|
|
||||||
$(window).trigger("scroll");
|
|
||||||
}, timeout);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$(window).on("scroll", function(e) {
|
|
||||||
clearTimeout(scroll_timeout);
|
|
||||||
$("#form_btn_layer").floatBottomMenu("hide");
|
|
||||||
|
|
||||||
scroll_timeout = setTimeout(function() {
|
|
||||||
$("#form_btn_layer").floatBottomMenu("show");
|
|
||||||
}, timeout);
|
|
||||||
});
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
// scroll event enable
|
|
||||||
$(window).on("movestart", function(e) {
|
|
||||||
if ((e.distX > e.distY && e.distX < -e.distY) ||
|
|
||||||
(e.distX < e.distY && e.distX > -e.distY)) {
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function load_message()
|
function load_message()
|
||||||
|
|||||||
Reference in New Issue
Block a user