/g, '').replace(/\/g, '');
//console.log(names.replace(/\
/g, ''));
output(category, num);
$jsModal.find('.title-wp h3').html(names);
$jsModal.find('.title-wp p').html(price);
$jsModal.addClass('dis');
$jsModalSlider.slick({
arrows: false,
autoplay: true,
autoplaySpeed: 5000,
cssEase: 'linear',
dots: true,
infinite: true,
fade: true,
speed: 1000,
slidesToShow: 1,
slidesToScroll: 1,
lazyLoad: 'progressive'
});
return false;
});
//ãŠæ‰“ã¡åˆã‚ã› ãŠã™ã™ã‚オプション
$('#js-recommend-option-slider').find('a.modal').on('click', function(){
var category = $(this).attr('data-category');
var num = $(this).attr('data-option');
var price = $(this).find('.price').html().replace(/
/g, '');
output(category, num);
$jsModal.find('.title-wp p').html(price);
$jsModal.addClass('dis');
$jsModalSlider.slick({
arrows: false,
autoplay: true,
autoplaySpeed: 5000,
cssEase: 'linear',
dots: true,
infinite: true,
fade: true,
speed: 1000,
slidesToShow: 1,
slidesToScroll: 1,
lazyLoad: 'progressive'
});
return false;
});
$jsModal.find('a.close, .bg').on('click', function(){
$jsModal.removeClass('dis');
$jsModalSlider.slick('unslick');
return false;
});
});
// timesCreate
var _timesCreate = function(time_s, time_e) {
var shm = time_s.split(':');
var sh = parseInt(shm[0]) * 60;
var sm = parseInt(shm[1]);
var ehm = time_e.split(':');
var eh = parseInt(ehm[0]) * 60;
var em = parseInt(ehm[1]);
var s = sh + sm;
var e = eh + em;
var times = [];
var tt = s;
var x = 30;
for (var i=s; tt<=e; i++) {
var hh = Math.floor(tt/60);
var mm = (tt%60);
times.push(("0" + (hh % 24)).slice(-2) + ':' + ("0" + mm).slice(-2));
tt = tt + x;
}
return times;
}
// レセプション詳細ボタン
//var restaurantNum = 0;
//$('.table-layout-wp').find('input[type="radio"].restaurant').each(function(i){
// $(this).click(function(){
// if(i !== 0) {
// if(restaurantNum !== i) {
// $('.detail-box').hide().eq(i).slideToggle();
//
// var lunch_time_s = $(this).data('lunch-time-s');
// var lunch_time_e = $(this).data('lunch-time-e');
// var dinner_time_s = $(this).data('dinner-time-s');
// var dinner_time_e = $(this).data('dinner-time-e');
// var lunch_times = dinner_times = [];
// var hope_time2 = $("#hope_time2");
// var hope_time3 = $("#hope_time3");
// var hope_month4 = $("#hope_month4");
// var hope_day4 = $("#hope_day4");
// var hope_time4 = $("#hope_time4");
// var lunch_notice = $("#lunch-notice");
// var dinner_notice = $("#dinner-notice");
// hope_time2.empty();
// hope_time3.empty();
// hope_time4.empty();
// lunch_notice.text('');
// dinner_notice.text('');
// if (lunch_time_s && lunch_time_e) {
// lunch_times = _timesCreate(lunch_time_s, lunch_time_e);
// }
// if (dinner_time_s && dinner_time_e) {
// dinner_times = _timesCreate(dinner_time_s, dinner_time_e);
// }
// if (lunch_times.length > 0 || dinner_times.length > 0) {
// //console.table(hope_time2);
// $.each([hope_time2, hope_time3, hope_time4], function (i, hope_time) {
// var select, option, options, isSelected;
// options = $.map(lunch_times, function (value) {
// //isSelected = (value === '' || value === '');
// option = $('