'+ running_time +'min';
element += ' '+ lead_sentence +'';
element += ' '+ production +'|'+ rating +'|'+ running_time +'分';
element += ' ';
element += ' ';
element += ' ';
element += '';
targetWrap.append(element);
});
Slider.moodNowSlide('.tcm_swiper_container',optionSetMoodnow);
}).fail(function(jqXHR, textStatus, errorThrown){
var obj = $.parseJSON(jqXHR.responseText);
if (obj.errors) {
console.log(obj.errors);
}
}).always(function(){
$('.tcm_sb_ul').removeClass('active_ajax');
});
},
newAction: function() {
var apiUrl = 'https://dokuso.co.jp/api/categorylist';
var dataJson = { 'key':'新着映画', 'user': '','limit': 8};
Slider.updateApiData(apiUrl, dataJson, '.tcn_slide_inner')
.done(function(response, textStatus, jqXHR) {
response.forEach(function(key) {
var targetWrap = $('.tcn_slide_inner').children('.swiper-container').children('.swiper-wrapper');
var id = key.id;
var url = 'https://dokuso.co.jp/introduction/'+ id;
var img = key.image_url;
if(img){
var imgWebp = img.replace( /(.jpeg|.jpg)/, '.webp' );
} else{
var imgWebp = img;
}
var name = key.name || "---";
var running_time = key.running_time || "---";
var pop = key.pop_pc_image;
var production = key.production || "---";
var rating = key.rating || "---";
var lead_sentence = key.lead_sentence || "---";
var casts = key.casts;
var cast1 = casts[0] || "---";
var cast2 = casts[1] || "---";
var directors = key.directors;
var director1 = directors[0] || "---";
var screening_day = key.screening_day;
let element = '