{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'item_page' %}
{% block stylesheet %}
<style>
body {
color: #000;
}
hr {
border-color: #666;
}
.gno{
overflow:visible;
}
.top_sashikomi_wrapper img, .bottom_sashikomi_wrapper img
{
max-width:805px;
}
.top_sashikomi_wrapper div p, .bottom_sashikomi_wrapper div p
{
/*width:60%;*/
font-size:16px;
}
.recommend-images{
max-height:100px;
max-width:auto;
}
p.kodawari-no{
width:36px !important;
height:36px !important;
}
</style>
{% endblock %}
{% block javascript %}
<script type="text/javascript" src="/javascripts/jquery.fbt.js?20200715_01"></script>
<script type="text/javascript">
$(function() {
$(window).on('scroll', function(e) {
var $this = $('.fbnr,.fbnr2');
var scrollTop = $(window).scrollTop();
if (scrollTop >= 200) {
$this.addClass('fixed');
} else {
$this.removeClass('fixed');
}
});
});
var base = document.getElementsByTagName('base')[0];
$(function() {
var $contents_wrapper = $('div#contents_wrapper').first();
var $topBtn = $('#pagetop').appendTo($contents_wrapper);
$topBtn.hide();
//スクロールが100に達したらボタン表示
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$topBtn.fadeIn();
} else {
$topBtn.fadeOut();
}
});
//スクロール後
$topBtn.click(function () {
$('body,html').animate({
scrollTop: 0
}, 500);
return false;
});
});
$(function () {
var $contents_wrapper = $('div#contents_wrapper').first();
var $cartinBtn = $('#btm-cartin-btn').appendTo($contents_wrapper);
});
function zoom_dynamic($element) {
return $element.each(function(i) {
var $this = $(this);
var width = parseInt($this.width());
var height = parseInt($this.height());
if (width > 805) {
if (navigator.userAgent.indexOf('Chrome') !== -1 || navigator.userAgent.indexOf('Safari') !== -1) {
// zoom 対応ブラウザ(Chrome、Safari)
$this.css({ "zoom": "calc( 805 / #width )".replace("#width", width), "visibility": "visible" });
} else {
// zoom 未対応ブラウザ(Firefox、IE、Opera、etc...)
var ratio = parseFloat( ( 805 / width ).toFixed(20) );
var margin_ratio = ratio - 1;
var margin_bottom = height * margin_ratio;
$this.css({
"transform-origin": "0 0",
"transform": "scale(#ratio)".replace(/#ratio/g, ratio),
"margin-bottom": margin_bottom,
"visibility": "visible"
});
}
}
});
}
(function() {
$('.kuru2').closest('.top_sashikomi_wrapper').width(990);
var $sashikomi = $('.top_sashikomi_wrapper').each(function(i) {
var $sashikomi = $(this);
$('img', this).on('load', function(e) {
zoom_dynamic($sashikomi); // (2/3) 各、差込内の画像ロード完了直後
}).each(function(i) {
if(this.complete || /*for IE 10-*/ $(this).height() > 0)
$(this).load();
});
});
$(function() {
zoom_dynamic($sashikomi).css({ "visibility": "visible" }); // (1/3) DOM読込み完了直後
$(window).on('load', function(e) {
zoom_dynamic($sashikomi); // (3/3) 全script実行完了直後
});
});
}());
</script>
{% if useCache is defined and useCache == true %}
<script type="text/javascript">
/*
*日付の差分日数を返却します。
*/
function getDiff(date1Str, date2Str) {
var date1 = new Date(date1Str);
var date2 = new Date(date2Str);
// getTimeメソッドで経過ミリ秒を取得し、2つの日付の差を求める
var msDiff = date2.getTime() - date1.getTime();
// 求めた差分(ミリ秒)を日付へ変換します(経過ミリ秒÷(1000ミリ秒×60秒×60分×24時間)。端数切り捨て)
var daysDiff = Math.floor(msDiff / (1000 * 60 * 60 *24));
return daysDiff;
}
</script>
<script type="text/javascript" async>
$(function(){
$.fbt('queryAll');
});
</script>
{% endif %}
{% endblock %}
{% block lm_after_contents_top %}
<div class="clearfix">{% include 'Page/Parts/fixed-header.twig' with { category: goods.getMainCategory } only %}</div>
{% endblock %}
{% block main %}
<div id="pagetop">
<a href="#header">
<img width="100px" height="80px" src="https://img0.land-mark.biz/ut_img/public_images/top/top-jump-btn.jpg" alt="ページTOPへ">
</a>
</div>
<div id="btm-cartin-btn">
<img width="220px" height="50px" src="https://img0.land-mark.biz/ut_img/public_images/top/buy-jump-btn.jpg" alt="購入ボタンへ">
</div>
{% endblock %}