丁斌煌 封閉 回到頁首頒發意見 var PREBID_TIMEOUT = 800; var FAILSAFE_TIMEOUT = 1500; var adUnits = [{ //Mobile浮水印 code: "/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_StickyAd", mediaTypes: { banner: { sizes: [ [320, 50], [320, 100] ] } }, bids: [{ bidder: "aol", params: { dcn: "8a96946d0178788462e186e30dc50032", pos: "mobile_leaderboard_and_large_banner" } }, { bidder: "criteo", params: { networkId: 4132 } } ] }, { //Mobile 內頁TOP Banner code: "/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_TopBannerN", mediaTypes: { banner: { sizes: [300, 250] } }, bids: [{ bidder: "aol", params: { dcn: "8a96946d0178788462e186e30dc50032", pos: "mobile_inner_top_banner_mrec" } }, { bidder: "criteo", params: { networkId: 4132 } } ] }, { //Mobile文中Banner code: "/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_MiddleBannerN", mediaTypes: { banner: { sizes: [320, 480] } }, bids: [{ bidder: "aol", params: { dcn: "8a96946d0178788462e186e30dc50032", pos: "mobile_inarticle_interstitial" } }, { bidder: "criteo", params: { networkId: 4132 } } ] }, { //Mobile文末Banner code: "/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_EndBanner_1st", mediaTypes: { banner: { sizes: [300, 250] } }, bids: [{ bidder: "aol", params: { dcn: "8a96946d0178788462e186e30dc50032", pos: "mobile_article_bottom_mrec" } }, { bidder: "criteo", params: { networkId: 4132 } } ] }]; var initAdserver = function () { if (pbjs.initAdserverSet) return; pbjs.initAdserverSet = true; googletag.cmd.push(function () { pbjs.que.push(function () { pbjs.setTargetingForGPTAsync(); googletag.pubads().refresh(); }); }); }; var googletag = googletag || {}; var pbjs = pbjs || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function () { googletag.pubads().disableInitialLoad(); }); pbjs.que = pbjs.que || []; pbjs.que.push(function () { pbjs.addAdUnits(adUnits); pbjs.requestBids({ bidsBackHandler: initAdserver, timeout: PREBID_TIMEOUT }); }); // in case PBJS doesn't load setTimeout(function () { initAdserver(); }, FAILSAFE_TIMEOUT); //界說DFP非同步廣告版位 var ctFirstTimeToEnterSite = $.cookie("ctFirstTimeToEnterSite"), isInAppBrowser = (function () { var ua = navigator.userAgent, vendors = { "facebook": "FBAV", "line": "Line" }, key; for (key in vendors) { if (ua.indexOf(vendors[key]) > -1) { return true; } } return false; })(); if (ctFirstTimeToEnterSite === undefined) { $.cookie("ctFirstTimeToEnterSite", "false", { "path": "/", "expires": 5 / (24 * 60) }); } googletag.cmd.push(function () { (function () { var interstitialSlot = googletag.defineOutOfPageSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_INTERSTITIAL", googletag.enums.OutOfPageFormat.INTERSTITIAL); if (interstitialSlot) { interstitialSlot.addService(googletag.pubads()); googletag.pubads().addEventListener("slotOnload", function (event) { var interstitialCallback, interstitialObserver; if (interstitialSlot === event.slot) { interstitialCallback = function (entries) { $.each(entries, function (i, entry) { if (entry.isIntersecting) { $.removeCookie("ctFirstTimeToEnterSite", { "path": "/" }); } }); }; interstitialObserver = new IntersectionObserver(interstitialCallback); interstitialObserver.observe(document.getElementById(interstitialSlot.getSlotElementId())); } }); } })(); if (ctFirstTimeToEnterSite === "false" || isInAppBrowser) { googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_InCover", [ [320, 480], [1, 1] ], "div-gpt-ad-1551201747632-0").setTargeting("cid", ["261312"]).addService(googletag.pubads()); } googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_TopBannerN", [ [300, 250], [1, 1], "fluid" ], "div-gpt-ad-1590732299155-0").setTargeting("cid", ["261312"]).addService(googletag.pubads()); googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_MiddleBannerN", [ [1, 1], [320, 480], "fluid" ], "div-gpt-ad-1590732428465-0").setTargeting("cid", ["261312"]).addService(googletag.pubads()); googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_InRead", [ [1, 1], "fluid" ], "div-gpt-ad-1551201747632-3").setTargeting("cid", ["261312"]).addService(googletag.pubads()); googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_EndBanner_1st", [ [1, 1], [300, 250] ], "div-gpt-ad-1551201747632-4").setTargeting("cid", ["261312"]).addService(googletag.pubads()); googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_EndBanner_2nd", [ [300, 250], [320, 100] ], "div-gpt-ad-1551201747632-5").setTargeting("cid", ["261312"]).addService(googletag.pubads()); googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_StickyAd", [ [1, 1], [320, 50], [320, 100] ], "div-gpt-ad-1551201747632-6").setTargeting("cid", ["261312"]).addService(googletag.pubads()); googletag.defineSlot("/81206261/20_Chinatimes_Mobile/CP/20C_Mobile_EndText", [ [330, 65], "fluid" ], "div-gpt-ad-1603262317858-0").setTargeting("cid", ["261312"]).addService(googletag.pubads()); googletag.pubads().setTargeting("aid", "20210723002013"); var hasKeywords = ""東奧","即時報道","射箭","林佳恩","雷千瑩""; if (hasKeywords != "") { googletag.pubads().setTargeting("c_tag", ["東奧","即時報道","射箭","林佳恩","雷千瑩"]); } googletag.pubads().enableAsyncRendering(); googletag.pubads().collapseEmptyDivs(true); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); //顯示DFP非同步告白 googletag.cmd.push(function () { if (ctFirstTimeToEnterSite === "false" || isInAppBrowser) { googletag.display("div-gpt-ad-1551201747632-0"); } googletag.display("div-gpt-ad-1590732299155-0"); googletag.display("div-gpt-ad-1590732428465-0"); googletag.display("div-gpt-ad-1551201747632-3"); googletag.display("div-gpt-ad-1551201747632-4"); googletag.display("div-gpt-ad-1551201747632-5"); googletag.display("div-gpt-ad-1551201747632-6"); googletag.display("div-gpt-ad-1603262317858-0"); }); //自家點閱統計 $(function () { $.ajax({ type: 'GET', url: 'https://click2.chinatimes.com/api/Click?MQUrl=' + 'http://www.chinatimes.com/realtimenews/20210723002013-260403', contentType: "application/json; charset=UTF-8", crossDomain: true, cache: false, dataType: "jsonp" }); }); //避免頁面內容被複製 $(document).ready(function () { //是不是回傳空白內容,true = 回傳空白內容,false = 回傳部門內容並加上保持網址 var toReturnBlankContent = false; //最大容許複製字數 var maxAllowedCopyTextLength = 30; //若非位於www.chinatimes.com網域,則不履行 if (window.location.href.indexOf("https://www.chinatimes.com") === -1) { return; } $(".article-box").on({ "copy": function (event) { var $tempDiv, $eventTarget = $(event.target), selectionObj = window.getSelection(), selectedText = selectionObj.toString(), additionalLinkTitle = "<br> <p></p><p></p><p></p><p>韓國女將不愧是射壇霸主,安山680分、36支滿分箭,穩居首席,張珉禧677分緊追在後,姜彩瑛675分,三人霸占前三席位,而且都改寫烏茲別克選手在1996年亞特蘭大奧運的673分奧運記載,韓國團隊2032分一樣改寫本身於2008年北京創下的奧運記載,但距離世界記載仍有一段差距。</p>如欲閱讀完整內容,請至中時新聞網:", additionalLinkParam = "?from=copy", additionalLinkUrl = window.location.origin + window.location.pathname + additionalLinkParam; //標題開放複製,可跨越限制字數,但不克不及跨越題目自己字數 if ($eventTarget.is(".article-title") && selectedText.length <= $eventTarget.text().length) { return; } else { if (toReturnBlankContent) { return false; } if (selectedText.length <= maxAllowedCopyTextLength) { return; } } selectedText = selectedText.substr(0, maxAllowedCopyTextLength) + "..."; selectedText += additionalLinkTitle + additionalLinkUrl; $tempDiv = $("<div></div>").css({ "position": "absolute", "left": "-9999px" }).html(selectedText).appendTo("body"); selectionObj.selectAllChildren($tempDiv.get(0)); document.execCommand("copy"); $tempDiv.remove(); } }); });