1704890268
‘).attr(‘id’, adx_btm+_append_index)); googletag.cmd.push(function() { var id_adx_top = googletag.defineSlot(‘/57456579/’+adx_top+_append_index, [‘fluid’, [300, 250], [336, 280]], adx_top+_append_index).addService(googletag.pubads()); var id_adx_btm = googletag.defineSlot(‘/57456579/’+adx_btm+_append_index, [‘fluid’, [300, 250], [336, 280]], adx_btm+_append_index).addService(googletag.pubads()); googletag.display(adx_top+_append_index); googletag.display(adx_btm+_append_index); googletag.pubads().refresh([id_adx_top, id_adx_btm]); }) } // Reset let adx_unit_name = get_adx_unit_name(); __html.find(‘.article_insertAD’).each(function (i, element) { if (i>3) { return false; } i = i + 1; let _append = (i == 1) ? read_more_index+’_more’ : ‘more_’+read_more_index+’-‘+i; let unit_name=”/”+googletag_id+’/’+adx_unit_name+_append; let div_id = adx_unit_name+_append; $(element).html( $(‘
‘).attr(‘id’, div_id).css({width: ‘auto’, height: ‘auto’}) ); googletag.cmd.push(function() { var slots = googletag.defineSlot(unit_name, [‘fluid’, [300, 250], [320, 480], [1, 1], [336, 280]], div_id).addService(googletag.pubads()); googletag.display(div_id); googletag.pubads().refresh([slot]); }); }); // 內廣 __html.find(“.toy-ad”).each(function(index) { var type = $(this).attr(“ad-type”); var element = $(this); $. ajax({ url: “/ajax/toy-ad.php?type=”+type, dataType: “json”, success: function(resp) { if (resp.status==”success” && resp) { render_ad( Type or data, element); element.css({‘display’: ‘block’}); } } }); }); }, complete: function() { // send GA ga_url=”?p=”+_more_post_id+’&mugen=’+read_more_index; ga_title = $(‘#content-‘+_more_post_id+’ h1′).html().trim() + ‘ |’ + document.title.split(‘|’)[1]; ga_posts.push({ post_id: _more_post_id, url: ga_url, title: ga_title, is_send: false }); // Lazyload images = document.querySelectorAll(“.lazyload”); lazyload(images); // Lightbox $(“.article img”).on(‘click’, function() { var image_url = $(this).attr(‘src’); openLightbox(image_url); }); read_more_index +=1; _loading = false; } }); } }, INCORRECT); window.addEventListener(‘scroll’, function(e) { // 如果scroll if (_loading) { return false; } var content = $(‘#content-‘+ relative_posts[current_post_index]); var position = $(window).scrollTop(); var top = content.offset().top; var bottom = top + content.outerHeight(true); var is_page_change = false; if (position below && current_post_index != _autoload_number) { current_post_index += 1; is_page_change = true; } if (is_page_change) { var url=”https://www.toy-people.com/?p=”+relate_posts[current_post_index]; content = $(‘#content-‘+ relative_posts[current_post_index]); var post_title = content.find(‘h1’).html().trim(); var title = document.title.split(‘|’)[1]; window.history.pushState(window.history.state, title, url); document.title = post_title + ‘ |’ + title; } }); window.addEventListener(‘scroll’, function() { ga_posts.forEach(function (post, index) { if (post.is_send == true) return; let selector = (mobile) ? ‘#content-‘+post.post_id+ ‘ .article-title’ : ‘#content-‘+post.post_id+’ .title’; let discover_element = $(selector); if ($(window).scrollTop() > discover_element.offset().top) { console .log(‘ga:’, post.title, ‘url:’,post.url); let resp = ga(‘send’, ‘pageview’, post.url, { title: post.title }); ga_posts[index].is_send = true; } }); }); }); function get_adx_unit_name() { let adx_unit_name=”toy-popole_”; adx_unit_name += { ‘toy-people’:’toy’, ‘denden’: ‘denden’, ‘screen-fandom’: ‘SF’}[subchannel_name]+’_’; if (mobile) adx_unit_name += ‘m_’; adx_unit_name += ‘article_insert_336280_’; return adx_unit_name; } function hideFooter() { if (mobile) $(‘.hotnews’).hide(); $(‘footer’).hide(); } function showFooter() { if (mobile) $(‘.hotnews’).show(); $(‘footer’).show(); }
#Xbox #exclusive #Perfect #Sound #Wave #release #Nintendo #Switch #Related #Australian #ratings #information #SCREEN #FANDOM