「ぺット-猫」のプレスリリース

表示切替

\ \ \
\

' + search_res_ar[i]['pr_title'] + '

\

\ ' + search_res_ar[i]['pr_publisher_name_for_rss'] + 'のプレスリリース\

\

' + search_res_ar[i]['pr_datetime'] + '

\
\ '; } $('#list_view').append(add_view); $('.box_no' + page).fadeIn("slow"); page++; $(".loadgif").remove(); $("#addPr").css('pointer-events', ''); $("#addPr").css('opacity', '1'); //Rewrite URL if (search_res_ar.length > 0 && media !== 'mynavi' && media !== 'inside') { let urlPushStateParameters = ''; paramsCurrentUrl.forEach((val, key) => { if(val !== '' && val !== null && key !='page_id') urlPushStateParameters +=`&${key}=${val}`; }); history.pushState({}, '',`?page_id=${page}` + urlPushStateParameters); let urlWithoutParameter = currentUrl.href.split('?')[0]; if (page_count > result['pnow']) { $('link[rel="next"]').attr('href', urlWithoutParameter + `?page_id=${page + 1}` + urlPushStateParameters); } else { $('link[rel="next"]').remove(); $('#addPr').remove(); } if ($('link[rel="prev"]').length == 0) { $('head').append($(``)); } else { $('link[rel="prev"]').attr('href', urlWithoutParameter + `?page_id=${page - 1}` + urlPushStateParameters); } } }); } var page_hash = location.hash; if (page_hash) { data = { page_id : page, pr_genre_id : "", company : "", pr_genre_group_id : "", pr_category_id : "", pr_genre_class : "", q : "" }; newPage(data); } $(window).on('popstate', function(e) {window.location.reload()})