{% block stylesheet %}
{% endblock %}
{% block javascript %}
<script>
{% set arrowLeft = asset('assets/icon/slick-arrow-left-white.svg') %}
{% set arrowRight = asset('assets/icon/slick-arrow-right-white.svg') %}
$(function() {
$('#slide_ranking').slick({
slidesToShow: 4,
dots: false,
arrows: true,
autoplay: false,
speed: 300,
infinite: false,
appendArrows: $('#ranking_arrows'),
prevArrow: '<button type="button" class="btn"><img src="{{ arrowLeft }}" alt=""></button>',
nextArrow: '<button type="button" class="btn btn-juliet"><img src="{{ arrowRight }}" alt=""></button>',
responsive: [{
breakpoint: 768,
settings: {
slidesToShow: 2
}
}]
});
});
</script>
{% endblock javascript %}
{% if Products|length %}
<div class="ec-role">
<div class="ec-rankingRole ec-contentRole">
<div class="ec-secHeading">
<div>
<span class="ec-secHeading__en">{{ 'RANKING'|trans }}</span>
<img src="{{ asset('assets/icon/slash.svg') }}" alt="" class="ec-slash is-pc">
<span class="ec-secHeading__ja">{{ 'ランキング'|trans }}</span>
</div>
<div class="ranking-arrows content-arrows" id="ranking_arrows"></div>
</div>
<div class="ec-rankingRole__List" id="slide_ranking">
{% for Product in Products %}
{{ include('Product/list_single_slide_item.twig') }}
{% endfor %}
</div>
</div>
</div>
{% endif %}