{% if isDisplaySetCoo and (goodsSetCooList is defined and goodsSetCooList) %}
<style>
.gsc_toggle_text {
color: #333;
font-size: 2em;
font-weight: bold;
width: 20em;
padding: .5em 2em;
margin: 10px auto 0 auto;
border: 2px solid #666;
border-radius: .5em;
text-align: center;
cursor: pointer;
user-select: none;
}
.gsc_toggle i.fa {
color: #40C4FF;
}
.gsc_goods_list {
display: none;
}
.gsc_goods_list .product-link {
display: block;
background-color: #ff5518;
font-size: 25px;
text-align: center;
text-decoration: none;
font-weight: bold;
height: 33px;
padding-top: 17px;
margin-bottom: 21px;
margin-top: 50px;
color: #fff;
border-radius: 10px;
}
.gsc_goods_list .product-detail {
margin-top: 60px;
}
.gsc_toggle.active .gsc_goods_list {
display: block;
}
.gsc_toggle.active .gsc_toggle_text.show {
display: none;
}
.gsc_toggle:not(.active) .gsc_toggle_text.hide {
display: none;
}
.pseudo-anchor {
position: relative;
}
.pseudo-anchor .anchor {
position: absolute;
top: -74px;
}
</style>
<script>
$(function() {
$('.gsc_toggle_text').on('click', function(e) {
var $gsc_toggle = $(this).closest('.gsc_toggle').toggleClass('active');
if (!$gsc_toggle.is('.active')) {
var $gsc_top = $('#gsc_top');
var offset = $gsc_top.offset();
var top = offset.top;
$(window).scrollTop(top);
}
$.cookie('goods_set_coordinate_goods_list_active', $gsc_toggle.is('.active'));
});
});
</script>
<div class="gsc_toggle">
<div class="pseudo-anchor">
<div class="anchor" id="gsc_top"></div>
</div>
<div class="gsc_goods_list">
{% for goodsSetCoo in goodsSetCooList %}
{% set data = goodsSetCoo.data %}
{% set displayTeika = goodsSetCoo.displayTeika %}
{% set displayPrice = goodsSetCoo.displayPrice %}
{% set displayPrice2 = goodsSetCoo.displayPrice2 %}
{% set mainUrl = goodsSetCoo.mainUrl %}
{% set mainUrlSum = goodsSetCoo.mainUrlSum %}
{% set comment = goodsSetCoo.comment %}
{% set useCache = goodsSetCoo.useCache %}
{% set comisShowLeftmenument = goodsSetCoo.isShowLeftmenu %}
{% set is_preview_mode = goodsSetCoo.is_preview_mode %}
{% set cois_secretmment = goodsSetCoo.is_secret %}
{% set displayOther = goodsSetCoo.displayOther %}
{% set thumbCount = goodsSetCoo.thumbCount %}
{% set campaign = goodsSetCoo.campaign %}
{% set displayShoppingCart = goodsSetCoo.displayShoppingCart %}
{% set DISPLAY_LINES = goodsSetCoo.DISPLAY_LINES %}
{% set breadCrumb = goodsSetCoo.breadCrumb %}
{% endfor %}
</div>
<script>
if ($.cookie('goods_set_coordinate_goods_list_active')) {
$('.gsc_toggle').addClass('active');
}
</script>
<div class="gsc_toggle_text show">
<i class="fa fa-plus-circle"></i>
セット商品をまとめて購入する
</div>
<div class="gsc_toggle_text hide">
<i class="fa fa-minus-circle"></i>
セット商品の部分を閉じる
</div>
</div>
{% endif %}