'+ running_time +'min'; element += '

'+ name +''; element += '
'; element += ' '; element += '
'; element += '

'+ lead_sentence +''; element += '

監  督:
'+ director1 +'
CAST:
'+ cast1 +''+ cast2 +''; 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 = '

'; element += '
'; element += ' '; element += '
'; element += '
'+ name +''; if (key.free_flg) { element += '
無料'; } element += '

'+ running_time +'min'; element += '

'+ name +''; element += '
'; element += ' '; element += '
'; element += '

'+ lead_sentence +''; element += '

監  督:
'+ director1 +'
CAST:
'+ cast1 +''+ cast2 +''; element += '

'+ production +''+ rating +''+ running_time +'分'; element += ' '; element += ' '; element += '

NEW'+ screening_day +'追加!!'; element += ' '; element += ''; targetWrap.append(element); }); Slider.updateInit('.tcn_swiper_container',optionSetNew); }).fail(function(jqXHR, textStatus, errorThrown) { var obj = $.parseJSON(jqXHR.response.Text); if (obj.errors) { console.log(obj.errors); } }); }, rankingAction: function() { var apiUrl = 'https://dokuso.co.jp/api/rankings/midway'; var dataJson = { 'user': '' } Slider.updateApiData(apiUrl, dataJson, '.tcr_slide') .done(function(response, textStatus, jqXHR) { if (response.length === 0) { var targetWrap = $('.top_cnt_ranking').children('.tcr_inner'); targetWrap.append('

'); } else { // var titleWrap = $('.top_cnt_ranking').children('.tcr_inner').children('.tcr_title'); // titleWrap.append('