pvdomain='pv.ltn..tw' ; pvserver='pv.ltn..tw' ; interstitialslot ; staticslot = false ; aukus 南海 抗 中 菲國力 挺 - 國際 - 自由時報電 子報 newsserver='news.ltn..tw' , pvserver='pv.ltn..tw' , uri = '/news/world/paper/1474244' , pagetype='news' , article_status='0' ; category = 'world' ; 為達 最佳 瀏覽 效果 , 建議 使用 chrome 、 firefox 或 microsoft edge 的 瀏覽器 。 請至 edge 官 網下載 請至 firefox 官 網下載 請至 google 官 網下載 $("#checkie" ).hide ( ) ; if ( isie ( 6 ) ||isie(7)| |isie(8) ||isie(9) ||isie ( 10 ) ||isie(11 ) ) { $("#checkie" ) .show ( ) ; } $('.close' ) .click ( function ( ) { $("#checkie" ).hide ( ) ; }) interstitial=0 ; useragent = navigator.useragent ; platform = navigator.platform ; iosdevice = [ 'iphone' , 'ipad' ] ; function isiphone ( ) { return ( useragent.indexof('iphone' ) > = 0 ) ? true : false ; } function isandroid ( ) { return ( useragent.indexof('android' ) > = 0 ) ? true : false ; } function isfb ( ) { return ( useragent.indexof('fb' ) > = 0 ) ? true : false ; } function isline ( ) { return ( useragent.indexof('line' ) > = 0 ) ? true : false ; } function ischrome ( ) { return ( useragent.indexof(' chrome' ) > = 0| |useragent.indexof('crios' ) > = 0 ) ? true : false ; } function issimulator ( device ) { i; isdevice = true ; for(i=0 ; i = 0 ) ? false : true ; if ( ! isdevice ) { break ; } } return isdevice; } if ( isfb()){ interstitial=1 ; }else if ( isline ( ) ) { interstitial=1 ; }else if ( isandroid ( ) && ! ischrome()){ interstitial=1 ; }else if ( isiphone ( ) && ! issimulator(iosdevice)&& ! ischrome()){ interstitial=1 ; } console.log('interstitial='+interstitial ) ; googletag = googletag || {} ; googletag.cmd = googletag.cmd|| [ ] ; googletag.cmd.push ( function ( ) { googletag.pubads ( ) .settargeting ( " ltn_ interstitial" , [ interstitial.tostring ( ) ] ) ; } ) ; addevice='p' ; blockabtest='' ; if($(window ) .outerwidth ( ) <=828 ) { addevice='m' ; }else{ addevice='p' ; } //處 理圖 片 延遲 $(document ) .ready ( function ( ) { lazyimg =$ ( 'img.lazy_ imgs_ ltn' ) ; lazyload ( lazyimg ) ; } ) ; function getbrowserlanguage ( ) { return ( navigator.language|| navigator.userlanguage|| navigator.browserlanguage|| navigator.systemlanguage ) .tolowercase ( ) ; } syslang = getbrowserlanguage ( ) ; isusa = istargetcountryornot('usa' ) ; < script async = 'async'type = " text/" src = "https : //static.criteo.net/js/ld/publishertag.js" > window.criteo = window.criteo|| {} ; window.criteo.events = window.criteo.events|| [ ] ; if ( window.outerwidth<=1100 ) {// 只 有手 機顯示 //設 定 coverunits let coverunits = { "news" : "02-mobile-page-h2" , "auto" : "03-auto-mobile-h2" , "3c" : "04-3c-mobile-h2" , " talk" : "05-talk-mobile-h2" , "ec" : "06-ec-mobile-h2" , " ent" : "07-ent-mobile-h2" , "istyle" : "08-style-mobile-h2" , " playing" : "09-playing-mobile-h2" , " sports" : "10 -sports-mobile-h2" , "estate" : "11-estate-mobile-h2" , " food" : "12-food-mobile-h2" , " health" : "13-health-mobile-h2" , "video" : "15-video-mobile-h2" , " features" : "99-feature-mobile-h2" , }; let coverhost = location.hostname.tolowercase ( ) .replace ( " .ltn..tw " , "" ) ; let unitid = coverunits [ coverhost ] || coverunits [ "news" ] ; window.googletag = window.googletag || {cmd : [ ] }; googletag.cmd.push ( function ( ) { interstitialslot = googletag.defineoutofpageslot ( '/21202031/'+unitid , googletag.enums.outofpageformat.interstitial ) ; if ( interstitialslot ) interstitialslot.addservice ( googletag.pubads ( ) ) ; googletag.enableservices ( ) ; } ) ; googletag.cmd.push ( function ( ) { googletag.pubads ( ) .addeventlistener('slotrenderended' , function(event ) { if ( interstitialslot = = = event.slot ) { staticslot = true ; console.log('staticslot = true' ) ; } } ) ; } ) ; $(function ( ) { googletag.cmd.push ( function ( ) { //ensure the first call to display es after static ad slot //divs are defined. googletag.display ( interstitialslot ) ; } ) ; } ) ; } googletag = googletag || {} ; googletag.cmd = googletag.cmd|| [ ] ; ( function ( ) { gads = document.createelement('script' ) ; gads.async = true ; gads.type='text/' ; usessl = 'https : ' = = document.location.protocol ; gads.src= ( usessl ? 'https : ' : 'http : ' ) + '//www.googletagservices.tag/js/gpt.js' ; node = document.getelementsbytagname('script' ) [ 0 ] ; node.parentnode.insertbefore ( gads , node ) ; } ) ( ) ; googletag.cmd.push ( function ( ) { dfp = {"pc" : {"bd1" : {"slot" : "\/21202031\/01-news-int-p-bd1" , " size" : " [ [ 300,250 ] , [ 300,600 ] ] " , " div" : "ad-bd1" , "class" : "" , " collapse" : 1} , "bd2" : {"slot" : "\/21202031\/01-news-int-p-bd2" , " size" : " [ [ 300,250 ] , [ 300,600 ] ] " , " div" : "ad-bd2" , "class" : "" , " collapse" : 1} , "bd3" : {"slot" : "\/21202031\/01-news-int-p-bd3" , " size" : " [ [ 300,250 ] , [ 300,600 ] ] " , " div" : "ad-bd3" , "class" : "" , " collapse" : 1} , "c1" : {"slot" : "\/21202031\/01-news-sponsors-b1" , " size" : " [ 300,250 ] " , " div" : "ad-c1" , "class" : "" , " collapse" : 1} , "c2" : {"slot" : "\/21202031\/01-news-sponsors-b2" , " size" : " [ 300,250 ] " , " div" : "ad-c2" , "class" : "" , " collapse" : 1} , "k1" : {"slot" : "\/21202031\/01-news-int-p-k1" , " size" : "[[1 , 1 ] , [ 970 , 90 ] , [ 970,160 ] , [ 970,250 ] , [ 1260 , 90 ] , [ 1260,160 ] , [ 1260,250 ] ] " , " div" : "ad-k1" , "class" : "" , " collapse" : 1} , "k2" : {"slot" : "\/21202031\/01-news-int-p-k2" , " size" : "[[728 , 90 ] , [ 1 , 1]]" , " div" : "ad-k2" , "class" : "" , " collapse" : 1}} , "m" : {"b1" : {"slot" : "\/21202031\/02-mobile-int-b1-atf" , " size" : "[' fluid' , [ 1 , 1 ] , [ 300,250 ] , [ 336,280 ] ] " , " div" : "ad-b1" , "class" : "" , " collapse" : 1} , "b2" : {"slot" : "\/21202031\/02-mobile-int-b2" , " size" : "[' fluid' , [ 1 , 1 ] , [ 300,250 ] , [ 320,480 ] , [ 336,280 ] ] " , " div" : "ad-b2" , "class" : "" , " collapse" : 1} , "i1- bottom" : {"slot" : "\/21202031\/02-mobile-int-sub-p-i1- bottom" , " size" : "[' fluid' , [ 1 , 1 ] , [ 320 , 50 ] , [ 320,100 ] ] " , " div" : "ad-i1- bottom" , "class" : " door-bottom door-bottom-head" , " collapse" : 1} , "ir1" : {"slot" : "\/21202031\/02-mobile-int-sub-p-ir1" , " size" : "[' fluid' , [ 1 , 1 ] , [ 300,250 ] , [ 320,480 ] , [ 336,280 ] ] " , " div" : "ad-ir1" , "class" : "" , " collapse" : 1}}} ; device = cookies_m.ispc ( ) ? 'pc' : 'm' ; dfp = dfp [ device ] || [ ] ; for ( key in dfp ) { //蓋台 廣告 由 cache_ads_h1.php 控制 if ( key ==='h1' ) {continue ; } if ( dfp.hasownproperty ( key ) ) { ad = dfp [ key ] ; adsize = eval(ad [ 'size' ] ) ; bodywidth=$ ( ' body' ).width ( ) ; ad [ 'size' ] = [ ] ; for ( i in adsize ) { if ( adsize[i ] [ 0 ] > bodywidth ) {continue ; } ad [ 'size' ].push ( adsize[i ] ) ; } googletag.defineslot ( ad [ 'slot' ] , ad [ 'size' ] , ad [ 'div' ] ) .addservice ( googletag.pubads ( ) ) .setcollapseemptydiv ( true , true ) ; } } googletag.pubads ( ) .addeventlistener('slotrenderended' , function(event ) { // google 回傳 的 廣告 標籤 ( ex : ad-b1) slotelementid = event.slot.getslotelementid ( ) ; // = = = 無廣 告時 要 做 的 事 = = = if(event.isempty ) { // 記錄沒 有 廣告 console.log('沒 有 '+slotelementid ) ; // 移 除 廣告 單元 //$ ( '#'+slotelementid ) .remove ( ) ; return ; } // = = = 有 廣告時 要 做 的 事 = = = // 置 底 浮水印 廣告 , 調整 畫面 不要 蓋住 footer if ( slotelementid = = 'ad-i1- bottom' ) { // 廣告 的 高度 ad_ height = event.size [ 1 ] ; $adi1bottom=$ ( '#ad-i1- bottom' ) ; // 調整 廣告 位置 與 footer墊 底 高度 $adi1bottom.css('height' , ad_ height+'px' ) ; $('.door-bottom-space' ) .show ( ) .css('height' , ad_ height+'px' ) ; //顯 示 關閉 按 鈕並綁 定 關閉 事件 if ( ad_ height > 50 ) { //調 整 top 按鈕 高度 $('# top' ) .css(' bottom' , ( ad_ height+20 ) +'px' ) ; // 監聽 關閉 按鈕 $adi1bottom.prepend(' ' ) ; $adi1bottom.find ( ' .close' ) .click ( function ( ) { $adi1bottom.fadeout ( 100 ) ; $('.door-bottom-space' ).fadeout ( 100 ) ; $('# top' ) .css(' bottom' , '100 px' ) ; } ) ; } return ; } // 有 ir1 時顯 示 「 請 繼續 往 下閱 讀... 」 if ( slotelementid = = 'ad-ir1' ) { //顯 示 「 請 繼續 往 下閱 讀... 」 ( class = " before_ir" 在 cache 中寫的 ) $('p.before_ir' ).fadein ( 200 ) ; $('p.after_ir' ).fadein ( 200 ) ; } } ) ; googletag.enableservices ( ) ; } ) ; // 判 斷裝 置 並只 呼叫 相同 裝置 的 廣告 function displaydfp(div , dfpdevice ) { realdevice = cookies_m.ispc ( ) ? 'pc' : 'm' ; if ( dfpdevice ! = = realdevice ) { $('#'+div ) .remove ( ) ; return ; } googletag.cmd.push ( function ( ) {googletag.display ( div ) ;} ) ; } keywords =$ ( 'meta [ name = " keywords"]' ) .attr('content' ) ; keywordsarr = keywords.split(' , ' ) ; for ( i=0 ; i< keywordsarr.length ; i++ ) { keywordsarr[i ] = keywordsarr[i ] .trim ( ) } googletag = googletag || {} ; googletag.cmd = googletag.cmd|| [ ] ; googletag.cmd.push ( function ( ) { googletag.pubads ( ) .settargeting ( " ltn_ keywords" , [ keywordsarr ] ) ; } ) ; randblock = math.floor ( math.random ( ) 2 ) ;//0 or 1 if ( isusa ) { randblock = 0 ; } $(function ( ) { todaynewsad = math.floor ( math.random ( ) 2 ) ;//0 : tenmax 1 : freakout document.cookie = " randblock = "+randblock ; document.cookie = " todaynewsad = "+todaynewsad; todayhotnews =$ ( 'div#randblock1 > div# todayhotnews' ) ; maybelike =$ ( 'div#randblock2 > div#maybelike' ) ; todayhotnewsdesc = todayhotnews.find ( 'div.todaynews' ).data('desc' ) ; if ( randblock = = 1 ) { todayhotnews.appendto($('div#randblock2') ) ; maybelike.appendto($('div#randblock1' ) ) ; blockabtest='b'; }else{ blockabtest='a' ; } $('div# todayhotnews' ) .find ( 'div.todaynews' ) .attr('data-desc' , todayhotnewsdesc+'-'+blockabtest ) ; } ) ; let webpushorigin = 'https : //www.ltn..tw' ; let webpushfile = webpushorigin+'/webnotificationcheck' ; let webpushnotification = webpushorigin+'/webnotification' ; // 監聽檢 查 回應 window.addeventlistener('message' , function(e){ if ( e.origin = = webpushorigin ) { if ( e.data = = 'isok' ) { let checkiframe = document.getelementbyid('checkiframe' ) ; checkiframe.contentwindow.postmessage('getpermission' , webpushorigin ) ; }else if ( e.data==' granted' ) { $("#checkiframe" ) .remove ( ) ; console.log(e.data ) ; }else if ( e.data==' denied' ||e.data==' default' ) {// default or denied $("#checkiframe" ) .remove ( ) ; console.log(e.data ) ; softconfirm ( ) ; } } } , false ) ; $(function ( ) { let webpush = getcookie ( " softpush" ) ; if ( webpush = = = undefined|| webpush<1 ) { if ( useragent.indexof(' chrome' ) > = 0| |useragent.indexof('firefox' ) > = 0| |useragent.indexof('edge/' ) > = 0 ) { initfcm ( ) ; }else if ( useragent.indexof(' safari' ) > = 0 ) { } } } ) ; //檢 查 notification function initfcm ( ) { console.log('check notification' ) ; if('notification'in window ) { checkfcm ( ) ; } } //檢 查 notification permission function checkfcm ( ) { console.log('checkfcm' ) ; let checkiframe = document.createelement ( 'iframe' ) ; checkiframe.setattribute('id' , 'checkiframe' ) ; checkiframe.setattribute('src' , webpushfile ) ; checkiframe.setattribute('allow' , 'payment' ) ; document.body.appendchild ( checkiframe ) ; } //觸 發軟 詢問 function softconfirm ( ) { let softpushnotificaton = document.createelement('div' ) ; softpushnotificaton.setattribute('class' , 'softpush_ notification' ) ; let softpushnotificationimg = document.createelement ( 'img' ) ; softpushnotificationimg.setattribute('src' , 'https : //news.ltn..tw /assets/images/all/ltn.png' ) ; softpushnotificaton.appendchild ( softpushnotificationimg ) ; let softpushnotificationspan = document.createelement('span' ) ; softpushnotificationspan.setattribute('class' , 'softpush_ word' ) ; let softpushnotificationtext = document.createtextnode('感謝 您 的 訂閱 自由時報電 子報 隨時 提供 您 最 即時 、 熱門 的 新 聞訊 息 。 ' ) ; softpushnotificationspan.appendchild ( softpushnotificationtext ) ; softpushnotificaton.appendchild ( softpushnotificationspan ) ; let softpushnotificationbutton = document.createelement ( 'button' ) ; softpushnotificationbutton.setattribute('class' , 'softpush_ confirm' ) ; softpushnotificationtext = document.createtextnode(' 訂閱' ) ; softpushnotificationbutton.appendchild ( softpushnotificationtext ) ; softpushnotificaton.appendchild ( softpushnotificationbutton ) ; softpushnotificationbutton = document.createelement ( 'button' ) ; softpushnotificationbutton.setattribute('class' , 'softpush_ refuse' ) ; softpushnotificationtext = document.createtextnode(' 暫時 不要' ) ; softpushnotificationbutton.appendchild ( softpushnotificationtext ) ; softpushnotificaton.appendchild ( softpushnotificationbutton ) ; document.body.appendchild ( softpushnotificaton ) ; } // 設定 軟詢 問時間 function setsoftpushcookie(extension = 0 ) { let st="" ; let expires = new date ( ) ; // 延展 時間 extension = ( extension = = 0 ) ? 72460601000 : extension ; expires.settime ( expires.gettime ( ) +extension ) ; let ti = getcookie ( " softpush" ) ; if ( ti = = = undefined ) ti=0 ; st = " softpush = "+ ( number ( ti ) + 1 ) +" ; domain = ltn..tw ; expires = "+expires.togmtstring ( ) +" ; path=/" ; document.cookie = st ; } $(document ) .on ( " click" , " .softpush_ confirm" , function ( ) { window.open ( webpushnotification ) ; getscrnews('www.webpush.ask' , 'ask' , '' , '1' ) ; $ ( " .softpush_ notification" ) .remove ( ) ; } ) ; $(document ) .on ( " click" , " .softpush_ refuse" , function ( ) { $ ( " .softpush_ notification" ) .remove ( ) ; getscrnews('www.webpush.ask' , 'ask' , '' , '0' ) ; setsoftpushcookie ( ) ; } ) ; / 瀏覽器 推 播 通知 / .softpush_ notification{ width : 400 px ; height : 170px ; padding : 20px ; border-radius : 10 px ; position : fixed ; left : 50% ; margin-left : -200 px ; top : 28% ; background : #fbfbfb ; box-shadow : 0px 0px 30 px 6px rgb(000/40% ) ; z-index : 300 ; text-align : justify ; } .softpush_ notification img {width : 80 px ; height : auto ; float : left ; margin-right : 10 px ; } .softpush_ notification span.softpush_ word{ margin-bottom : 10 px ; font-size : 18 px ; line-height : 30 px ; font-family : 'noto sans tc' , "微軟 正 黑體" ; } .softpush_ notification button{ border-radius : 5px ; padding : 5px 8px ; letter-spacing : 1px ; cursor : pointer ; border : 0px ; font-size : 16px ; } .softpush_ notification button.softpush_ confirm{ position : absolute ; right : 25px ; bottom : 20px ; background : #daa01c ; color : #fff ; transition : .2 s linear ; } .softpush_ notification button.softpush_ refuse{ position : absolute ; right : 80 px ; bottom : 20px ; color : #8e8e8e ; transition : .2 s linear ; } .softpush_ notification button.softpush_ confirm : hover{ background : #c58901 ; } .softpush_ notification button.softpush_ refuse : hover{ background : #dedede ; } @media screen and ( max-width : 500 px ) { / 瀏覽器 推 播 通知 / .softpush_ notification{ width : 280 px ; height : 140px ; padding : 16px ; margin-left : -140px ; } .softpush_ notification img{ width : 60px ; } .softpush_ notification span.softpush_ word{ font-size : 16px ; line-height : 24px ; } .softpush_ notification button{ padding : 6px 12 px ; font-size : 12 px ; } .softpush_ notification button.softpush_ confirm , .softpush_ notification button.softpush_ refuse{ bottom : 12 px ; } .softpush_ notification button.softpush_ confirm{ right : 16px ; } } ( function ( ) { window.show_ onead_ mic = true ; units = { "m" : "02-mobile-page-h1" , "news" : "02-mobile-page-h1" , "ec" : "06-ec-mobile-h1" , "sports" : "10 -sports-mobile-h1" , "ent" : "07-ent-mobile-h1" , "istyle" : "08-style-mobile-sub-p-h1" , "3c" : "04-3c-mobile-h1" , "auto" : "03-auto-mobile-h1" , "health" : "13-health-mobile-h1" , "playing" : "09-playing-mobile-h1" , " food" : "12-food-mobile-h1" , "estate" : "11-estate-mobile-h1" , "talk" : "05-talk-mobile-h1" , "video" : "15-video-mobile-h1" , "partners" : "17-partners-mobile-h1" , " features" : "99-feature-mobile-h1" }; check = { " talk" : true , "estate" : true }; //將 rwd 的 domaim 加入 此 陣列 checkhost = [ 'test' , 'news' , 'partners' , 'auto' , 'ec' , 'istyle' , 'sports' , 'playing' , 'video' , 'ent' , 'health' , '3c' , 'talk' , 'food' , 'estate' , 'features' ] ; host = location.hostname.tolowercase ( ) .replace ( " .ltn..tw " , "" ) ; // 檢查 是否 為rwd 的 網站 isrwd = false ; for ( key in checkhost ) { if ( host.indexof ( checkhost [ key ] ) > = 0 ) { isrwd = true ; } } unit_id = units [ host ] || units [ "m" ] ; if ( check [ host ] && window [ " cookies_m" ] ) { if ( cookies_m.ispc ( ) ) window.show_ onead_ mic = false ; } //==== = 期 間內 關閉蓋 台 ( 開始 ) ===== dfpswitch = { 'sports' : [ {'start' : '2019-07-0112:00:00' , 'end' : '2019-07-0311:59:59'} , {'start' : '2019-07-0612:00:00' , 'end' : '2019-07-0711:59:59'} , {'start' : '2019-07-0812:00:00' , 'end' : '2019-07-0911:59:59'} , {'start' : '2019-07-1012:00:00' , 'end' : '2019-07-1111:59:59'} , {'start' : '2019-07-1212:00:00' , 'end' : '2019-07-1311:59:59'} , {'start' : '2019-07-1412:00:00' , 'end' : '2019-07-1511:59:59'} , {'start' : '2019-07-1812:00:00' , 'end' : '2019-07-2211:59:59' } ] , 'ec' : [ {'start' : '2019-07-3012:00:00' , 'end' : '2019-08-0123:59:59' } ] , 'istyle' : [ {'start' : '2019-08-2012:00:00' , 'end' : '2019-08-2323:59:59' } ] , 'auto' : [ {'start' : '2019-07-0811:00:00' , 'end' : '2019-07-1011:59:59' } ] }; if ( typeof dfpswitch [ host ] ! = 'undefined' ) { date = ( new date ( ) ) ; now = date.getfullyear ( ) +"-"+('0' + ( date.getmonth ( ) + 1 ) ) .substr(-2 , 2)+"-"+('0' + date.getdate ( ) ) .substr(-2 , 2)+""+('0' + date.gethours ( ) ) .substr(-2 , 2)+" : "+('0' + date.getminutes ( ) ) .substr(-2 , 2)+" : "+('0' + date.getseconds ( ) ) .substr(-2 , 2 ) ; dfpswitch = dfpswitch [ host ] ; for ( key in dfpswitch ) { start = dfpswitch [ key ] [ 'start' ] ; end = dfpswitch [ key ] [ 'end' ] ; if ( now = 1100 ) { window.show_ onead_ mic = false ; } if ( window.show_ onead_ mic ) { googletag.cmd.push ( function ( ) { googletag.defineslot('/21202031/'+unit_id , [ 320,480 ] , 'ad-h1' ) .addservice ( googletag.pubads ( ) ) ; } ) ; $(function ( ) {call_ dfp ( ) ;} ) ; } } ) ( ) ; _atrk_ opts = {atrk_acct : "ls4hj1a8dy002+" , domain : "ltn..tw " , dynamic : true} ; ( function ( ) { as = document.createelement('script' ) ; as.type='text/' ; as.async = true ; as.src="https : //certify-js.alexametrics.atrk.js " ; s = document.getelementsbytagname('script' ) [ 0 ] ; s.parentnode.insertbefore(as , s ) ;} ) ( ) ; _score = _score|| [ ] ; _score.push ( {c1 : "2" , c2 : "18368781 "} ) ; ( function ( ) { s = document.createelement ( " script" ) , el = document.getelementsbytagname ( " script" ) [ 0 ] ; s.async = true ; s.src= ( document.location.protocol = = "https : " ? "https : //sb" : "http : //b" ) + " .scorecardresearch.beacon.js " ; el.parentnode.insertbefore(s , el ) ; } ) ( ) ; ! function(f , b , e , v , n , t , s) {if ( f.fbq ) return ; n = f.fbq = function ( ) {n.callmethod ? n.callmethod.apply ( n , arguments ) : n.queue.push ( arguments ) }; if ( ! f._ fbq ) f._ fbq = n ; n.push = n ; n.loaded = ! 0 ; n.version='2.0' ; n.queue = [ ] ; t=b.createelement(e) ; t.async = ! 0 ; t.src=v;s = b.getelementsbytagname(e)[0 ] ; s.parentnode.insertbefore(t , s ) }(window , document , 'script' , 'https : //connect.facebook.net/en_us/fbevents.js' ) ; fbq ( 'init' , '124629834835104' ) ; fbq ( 'track' , ' pageview' ) ; window.datalayer = window.datalayer|| [ ] ; function gtag ( ) {datalayer.push ( arguments ) ; } gtag('js' , new date ( ) ) ; gtag('config' , ' dc-9530821' ) ; ( function(i , s , o , g , r , a , m ) {i[' googleanalyticsobject' ] = r;i[r ] = i[r ] || function ( ) { (i[r].q = i[r].q || [ ] ).push ( arguments ) } , i [ r].l = 1 new date ( ) ;a = s.createelement(o) , m=s.getelementsbytagname(o)[0 ] ; a.async = 1 ; a.src=g ; m.parentnode.insertbefore(a , m) } ) ( window , document , 'script' , '//www.google-analytics.analytics.js' , 'ga' ) ; ga('create' , 'ua-31404335-1' , 'auto' ) ; ga('require' , ' displayfeatures' ) ; ga('require' , 'linkid' , 'linkid.js' ) ; ga('send' , 'pageview' ) ; $(function ( ) { //ltn 大 數據 try{ if ( typeof ( newsclass ) = = " undefined" ) newsclass='' ; if ( typeof ( newsno ) = = " undefined" ) newsno='' ; uri = location.pathname ; cate = category ; abtest='' ; if ( uri=='' ) { }else if ( uri=='/'|| ( /^ \/section\// ) .test ( uri) ) { s = location.pathname.split ( "/" ) ; cate=s [ 2 ] ; }else if(/^ \/news \//.test ( uri) ) { s = location.pathname.split ( "/" ) ; newsclass =s [ 3 ] ; newsno=s [ 4 ] ; cate=s [ 2 ] ; abtest = addevice+ blockabtest ; } getscrnews2 ( newsserver , cate , newsclass , newsno , abtest ) }catch(e){ } } ) ; $(function ( ) { //ga 事件 ga_news_event ( ) ; } ) ; //ga 點擊 事件 統計 function ga_news_event ( ) { base_ root_ org = 'http : //' + newsserver; devicedesc=$ ( " meta [ name = 'ltn : device']" ) .attr('content' ) ||'u' ; / 取 頁面 說明 / _pagedesc=$ ( ' .page-name' ) .attr('data-desc' ) ; pagedesc = devicedesc+' : '+_pagedesc ; $(document.body ) .on ( 'click.ga' , '.boxinput' , function ( ) { obj =$ ( this ) ; objdesc = obj.attr('data-desc' ) ; par = obj.parents ( ' .boxtitle' ) ; boxdesc = par.attr('data-desc' ) ; category = pagedesc ; action = boxdesc ; label = objdesc||'' ; / 使用 自 定 義說 明 / ga_send_event ( category , action , label ) ; } ) ; $('.boxtitle' ) .on ( 'click.count' , 'a' , function(e){ if ( e.button ! = 0 ) {return ; } lightboxname = this.classname ; if ( lightboxname = = 'image-popup-vertical-fit' ) { if ( getinfo($(this ) , true ) ) { if ( ! staticslot ) { e.preventdefault ( ) ; } } }else{ if ( getinfo($(this ) , false ) ) { if ( ! staticslot ) { e.preventdefault ( ) ; } } } }).on ( 'mouseup.count' , 'a' , function(e){ if ( e.button ! = 1 ) {return ; } getinfo($(this ) , true ) ; if ( ! staticslot ) { e.preventdefault ( ) ; } } ) ; function setltncookies ( area , item , elem ) { ov_sec=30 ; ltncookies_ news ( " ltn_ device" , devicedesc , ov_sec ) ; ltncookies_ news ( " ltn_ page" , _pagedesc , ov_sec ) ; ltncookies_ news ( " ltn_ area" , area , ov_sec ) ; ltncookies_ news ( " ltn_ item" , item , ov_sec ) ; ltncookies_ news ( " ltn_ elem" , elem , ov_sec ) ; } function getinfo ( obj , sendonly ) { objtext = obj.text ( ) ; objdesc = obj.attr('data-desc' ) ; par = obj.parents ( ' .boxtitle' ) ; / 取 區塊說 明 / boxdesc = par.attr('data-desc' ) ; / 是否 用 連結 文字 / usetext = par.hasclass ( ' boxtext' ) ; category = pagedesc ; action = boxdesc ; label = objdesc||'' ; / 使用 自 定 義說 明 / if ( usetext&& label=='' ) { label = objtext||'' ; / 使用 連結 文字 / } labela = label ; idx =$ ( 'a' , par ) .index ( obj ) ; if ( label=='' ) { / 記錄該 區塊第 幾則 / label=' 第' +idx+'則' ; } target = obj.attr('target' ) ; href='' ; _href = obj.attr('href' ) ; if ( _href ) { href = check_ url ( _href ) ; } send_ type='send' ; if ( ! target&&href ! ='' ) { send_ type='redirect' ; } if ( sendonly ) send_ type='send' ; if ( staticslot ) { send_ type='send' ; } setltncookies ( action , idx , labela ) ;//add area , item , if ( send_ type = = 'send' ) { ga_send_event ( category , action , label ) ; return false ; }else{ send2ga2page ( category , action , label , href ) ; return true ; } } function check_ url ( _url ) { if((/^ http : / ) .test ( _url) ) { return_ url ; }else if((/^ https : / ) .test ( _url) ) { return_ url ; }else if((/^ \/\// ) .test ( _url) ) { return_ url ; }else if((/^ / ) .test ( _url) ) { return'' ; }else if((/^#/ ) .test ( _url) ) { return'' ; }else{ base_ root=$ ( ' base' ) .attr('href' ) || base_ root_ org ; return base_ root+_url ; } } /ga 事件 追蹤 : 頁面 不 轉換 / function ga_send_event ( category , title , label ) { ga_send_event_callback ( category , title , label , function ( ) {} ) ; } /ga 事件 追蹤 : 頁面 轉換 / function ga_send_event_callback ( category , title , label , fn_ callback ) { //return fn_ callback ( ) ; ga('send' , 'event' , category , title , label , {'hitcallback' : function ( ) { fn_ callback ( ) ; } } ) ; //console.log ( category+'-'+title+'-'+label ) ; //return false ; } /ga 事件 追蹤 : 連結 點擊 / function send2ga2page ( category , title , label , url ) { redirecttriggered = false ; ga_send_event_callback ( category , title , label , function ( ) { redirecttriggered = true ; document.location = url ; } ) ; settimeout ( function ( ) { if ( ! redirecttriggered ) { document.location = url ; } } , 1500 ) ; } } gtag('event' , 'conversion' , { 'allow_custom_scripts' : true , 'u1' : 'news' , 'u2' : ' 國際' , 'u3' : '1474244' , 'u4' : '' , 'u5' : '' , 'send_ to' : ' dc-9530821/invmedia/ltn_w0+ standard' } ) ; / ( function(d , s , id ) { js , fjs = d.getelementsbytagname(s) [ 0 ] ; if ( d.getelementbyid(id ) ) return ; js = d.createelement(s) ; js.id = id ; js.src="https : //connect.facebook.net/zh_tw/all.js# xfbml = 1&version=v4.0" ; fjs.parentnode.insertbefore ( js , fjs ) ; }(document , 'script' , 'facebook-jssdk' ) ) ; / 即 時 熱門 政治 社會 生活 健康 國際 地方 蒐奇 影音 財經 娛樂 汽車 時尚 體育 3 c 評論 玩 咖 食譜 地產 專區 taipei times 求 職 爆 search applyweather ( ) ; //天氣 主程式 function applyweather ( ) { if ( ! /android |webos|iphone |ipad|ipod| blackberry|iemobile| opera mini/i.test ( navigator.useragent ) ) { isweather ( ) ; } } function setcity ( lat , lon ) { //city array citynamearr = [ '新北市 ' , ' 臺北市 ' , ' 基隆市 ' , ' 桃園市 ' , ' 新竹市 ' , ' 宜蘭縣 ' , ' 新竹縣 ' , ' 臺中市 ' , ' 苗栗縣 ' , ' 彰化縣 ' , ' 南投縣 ' , ' 雲林縣 ' , ' 臺南市 ' , ' 高雄市 ' , ' 嘉義市 ' , ' 嘉義縣 ' , ' 屏東縣 ' , ' 澎湖 縣' , ' 臺東縣' , ' 臺東市 ' , ' 花蓮縣 ' , ' 花蓮市 ' , ' 台中 市 ' , ' 連江縣 ' , ' 金門縣 ' ] ; let url = "https : //api.bigdatacloud .net/data/reverse-geocode-client ? latitude = "+lat+"& longitude = "+lon+ "& localitylanguage = zh" ; let request = new xmlhttprequest ( ) ; request.open('get' , url , true ) ; request.onload = function ( ) { let data = json .parse ( this.response ) ; let cityname='臺北 市' ; if ( request.status > = 200& &request.status<400 ) { let cityarr = data.localityinfo.administrative; let result = cityarr.find ( obj = > {return citynamearr.includes ( obj.name)} ) ; if ( result ! = undefined ) { cityname = ( result.name==' 台中 市' ) ?' 臺中市 ' : result.name ; } } addweather ( cityname , 1 ) ; }; request.send ( ) ; } function isweather ( ) { isweather = document.getelementbyid('ltnrwd' ) ? 1:0;// 判斷 是否 顯示 天氣 if ( isweather ) { $(document ) .ready ( function ( ) { // 先 取用 cookie 先前 天 氣資料 if ( getcookie('city' ) && getcookie('temperature' ) && getcookie('icon' ) && getcookie('status' ) ) { let data = {temperature : getcookie('temperature' ) , icon : getcookie('icon' ) , status : getcookie('status' ) }; let city = getcookie('city' ) ; setattribute ( city , data ) ; return ; } // 還沒 確認 地理 位置 前 先 預設 addweather('臺北 市' , 1 ) ; //cookie 沒值則 抓取 user 位置 天氣 if ( window.navigator.geolocation ) { geo = window.navigator.geolocation ; geo.getcurrentposition ( function ( position ) {setcity ( position.coords.latitude , position.coords.longitude ) ; } , addweather('臺北 市' , 0 ) ) ; } } ) ; } } function addweather ( city , isgeo ) {//isgeo 0 : 無法 取得 定位 1 : 可以 取得 定位 let weatherurl = 'https : //cache.ltn..tw '+'/getweather/'+city ; let xmlhttp = new xmlhttprequest ( ) ; xmlhttp.open ( " get" , weatherurl , true ) ;// false for synchronous request xmlhttp.onload = function ( ) { let data = json .parse ( this.response ) ; data.city = city ; setcookie ( data , isgeo ) ;//設 定 cookie setattribute ( city , data ) ;// 設定天氣 }; xmlhttp.send ( ) ; } function setcookie ( data , isgeo ) { let citynow = new date ( ) ; let weathernow = new date ( ) ; expirecitytime = ( isgeo = = 0 ) ? 24:2 ; expireweathertime = 8 ; citynow.settime ( citynow.gettime ( ) +expirecitytime36001000 ) ; weathernow.settime ( weathernow.gettime ( ) +expireweathertime36001000 ) ; for ( let key in data ) { document.cookie = ( key = = 'city' ) ? key+' = '+data [ key ] +' ; expires = '+citynow.toutcstring ( ) +' ; domain = .ltn..tw ; path = /' : key+' = '+data [ key ] +' ; expires = '+weathernow.toutcstring ( ) +' ; domain = .ltn..tw ; path = /' ; } } function setattribute ( city , data ) {// 設定天氣 document.getelementbyid('weather_text' ) .inner = city+'' + data.temperature ; document.getelementbyid('weather_img' ) .setattribute ( " src" , 'https : //cache.ltn..tw /images/weather/' + data.icon ) ; document.getelementbyid('weather_img' ) .setattribute ( " alt" , data.status ) ; document.getelementbyid('weather_img' ) .setattribute ( " title" , data.status ) ; } function getcookie ( name ) {// 依 名字 取 cookie const value =` ; ${ document.cookie }` ; const parts = value.split ( ` ; ${ name }=` ) ; if ( parts.length = = = 2 ) return parts.pop ( ) .split(';' ) .shift ( ) ; } count = 0 ; function send ( ) { if ( count = = 0 ) { count++ ; key = document.getelementbyid ( " cachesearch" ) .value.replace ( / ( ) +/g , '' ) ; key = key.replace ( / ( ) +/g , '' ) ; key = key.replace(/^ [ \s ] / gi , "" ) ;// 去除 左邊 空白 key = key.replace ( / [ \s ] $/gi , "" ) ;// 去除 右邊 空白 document.getelementbyid ( " cachesearch" ) .value = key ; kw = key.split("" ) ; if ( key.length > 50 ) { alert ( " 關鍵 字 數過長" ) ; count = 0 ; return false ; } else if ( kw.length > 3 ) { alert ( " 超過 三 組關鍵 字 " ) ; count = 0 ; return false ; } else if ( ( kw.length = = 1&& kw [ 0 ] .length<2)){ alert ( " 關鍵 字 需 兩個字 以上 " ) ; count = 0 ; return false ; } else return true ; } } / 滑 動隱 藏 header/ startscroll = false ; firstscrolltop=0 ; $(window ) .on ( 'scroll' , function ( ) { if ( ! startscroll|| this.scrolly< =$ ( '#marquee' ) .find ( 'li' ) .outerheight ( true ) ) { $(' body' ) .removeclass ( 'hideup' ) ; return ; } if ( firstscrolltop==0 ) { firstscrolltop = this.scrolly ; } firstscrolltop = hideup ( firstscrolltop , this.scrolly ) ; } ) ; settimeout ( function ( ) { startscroll = true ; } , 3000 ) ; function hideup(starty , endy ) { movey = endy-starty ; targetup=0 ; targetdown = 0 ; if($(window ) .outerwidth ( true ) <=828 ) { // 手 機版 條件 targetup=5; targetdown=-100 ; } if ( movey > targetup ) { // 往 上 滑 $(' body' ) .addclass ( 'hideup' ) ; starty=0 ; }else if ( movey< targetdown ) { // 往 下滑 body 移 除 hideup以顯 示 header $(' body' ) .removeclass ( 'hideup' ) ; starty=0 ; } return starty ; } / 滑 動隱 藏 header/ .ltnheader{ transition : all 0.8s ; } .hideup.ltnheader{ top : -90px ; } < div id = "ad-k1" class = " boxtitle ad pc" data-desc = " 廣告 ad-k1" style = " text-align : center ; display : none ; "> displaydfp('ad-k1' , 'pc' ) ; @charset"utf-8" ; / css document/ #mobilemenu{-webkit-box-sizing : border-box ; -moz-box-sizing : border-box ; box-sizing : border-box ; } #mobilemenu{ width : 200 px ; / width : 100% ; /height : 100 vh ; overflow-y : scroll ; overflow-x : hidden ; transition : all 0.1 s linear ; font-size : 16px ; } #mobilemenu : : -webkit-scrollbar{ display : none ; / chorme/} #mobilemenu{ scrollbar-width : none ; /ff/} #mobilemenu{-ms-overflow-style : none ; /ie/} #mobilemenu a {color : #fff ; cursor : pointer ; } #mobilemenu.mm {width : 200 px ; background-color : #5e5e5e ; position : absolute ; top : 0 ; z-index : 50 ; box-shadow : 0px 0px 8px 3px rgba ( 0 , 0 , 0 , 0.3 ) , -6px 0px 10 px 0px rgba ( 0 , 0 , 0 , 0.3 ) inset ; } .mobilemenu{ display : none ; height : 100% ; position : fixed ; top : 0 ; z-index : 3001 ; } /-----------ltn 相 關-----------/ #mobilemenu div.mm div.ltn_ home{ display : block ; width : 100% ; } #mobilemenu.ltn_ home a{ display : block ; height : 50px ; line-height : 50px ; position : relative ; color : #fff ; padding : 0px 0px 0px 40px ; } #mobilemenu.ltn_ home a.home{ border-bottom : 2px solid#7d7d7d ; } #mobilemenu.ltn_ home a.app , #mobilemenu.ltn_ home a.fb , #mobilemenu.ltn_ home a.line , #mobilemenu.ltn_ home a.dot{ border-top : 1px solid#000 ; margin : 0 ; } #mobilemenu.ltn_ home a.home : before , #mobilemenu.ltn_ home a.dot : before , #mobilemenu.ltn_ home a.app : before , #mobilemenu.ltn_ home a.fb : before , #mobilemenu.ltn_ home a.line : before {content : "" ; display : block ; width : 18 px ; height : 20px ; position : absolute ; left : 13px ; top : 15px ; } #mobilemenu.ltn_ home a.home : before{ background : url ( https : //cache.ltn..tw /images/icon_ home.png ) no-repeat center 1px ; background-size : 18 px ; } #mobilemenu.ltn_ home a.app : before{ background : url ( https : //cache.ltn..tw /images/icon_ app.png ) no-repeat center 1px ; background-size : 18 px ; } #mobilemenu.ltn_ home a.fb : before{ background : url ( https : //cache.ltn..tw /images/icon_ fb.png ) no-repeat center 1px ; background-size : 18 px ; } #mobilemenu.ltn_ home a.line : before{ background : url ( https : //cache.ltn..tw /images/icon_ line.png ) no-repeat center 1px ; background-size : 18 px ; } #mobilemenu.ltn_ home a.dot : before{ width : 12 px ; height : 12 px ; background-color : #fff ; border-radius : 100% ; left : 14px ; top : 20px ; } /---調整 ios 用 ---/ #mobilemenu.ltn_ home.spacing {width : 100% ; height : 120px ; } #mobilemenu.ltn_ home a.dot{ border-bottom : 1px solid#000 ; } /---頻道調 整 用 ---/ #mobilemenu.mm .ltn_ home a.app{ background-color : transparent ; border : none ; border-radius : 0 ; } #mobilemenu.mm .ltn_ home a.line{ float : none ; } /----------- 所有 頻道 選單-----------/ #mobilemenu div.mm .mainm{ background-color : #4a4947 ; border-bottom : 4px solid#000 ; overflow : hidden ; letter-spacing : 4px ; } #mobilemenu.mainm.ltnm{ background-color : #625d5a ; border-bottom : 3px solid#000 ; overflow : hidden ; float : left ; } #mobilemenu.mainm a{ display : block ; float : left ; width : 50% ; height : 50px ; line-height : 50px ; text-align : center ; border-bottom : 1px solid#000 ; border-right : 1px solid#000 ; } #mobilemenu.mainm a.full{ width : 100% ; float : left ; text-align : left ; padding-left : 30 px ; border-bottom : 1px solid#000 ; border-right : none ; } #mobilemenu.mainm.ltnm a : nth-child(even ) { border-right : none ; } /----------- 側邊陰 影 -----------/ #mobilemenu div.mm .channel , #mobilemenu div.mm .mainm , #mobilemenu div.mm .mainm.ltnm { box-shadow : -6px 0px 10 px 0px rgba ( 0 , 0 , 0 , 0.2 ) inset , 3px 0px 7px 0px rgba ( 0 , 0 , 0 , 0.2 ) inset ; } /----------- 目前 頻道 選單-----------/ #mobilemenu div.mm .channel{ background-color : #888 ; border-bottom : 10 px solid#000 ; overflow : hidden ; padding : 0 ; margin : 0 ; } #mobilemenu.channel.tit{ height : 25px ; background-color : #000 ; color : #fff ; font-size : 0.85 rem ; line-height : 25px ; text-align : left ; padding-left : 10 px ; margin : 0 ; } #mobilemenu.channel a{padding-left : 10 px ; display : block ; float : left ; width : 50% ; height : 50px ; line-height : 50px ; border-bottom : 1px solid#000 ; border-right : 1px solid#000 ; } #mobilemenu.channel a.full{ width : 100% ; float : left ; border-bottom : 1px solid#000 ; } #mobilemenu.channel a.half img , #mobilemenu.channel a.full img {width : 16px ; vertical-align : middle ; margin : 0px 4px 3px 0px ; } #mobilemenu.channel a.half span , #mobilemenu.channel a.full span{ letter-spacing : normal ; } #mobilemenu.channel a.half {clear : none ; }/ 程式 用 / #mobilemenu.channel a.word{ line-height : 1.3 ; padding-top : 4px ; }/ 選項 折行 ( 5 個字 以上 : 廚房 生活 小 知識 ) / /---左側 選單---/ .mobilemenu_ left{ left : -200 px ; } #mobilemenu.mobilemenu_ left_close {left : 200 px ; } #mobilemenu.mobilemenu_ left_mm {left : 0} /---右側 選單---/ .mobilemenu_ right{ right : -200 px ; } #mobilemenu.mobilemenu_ right_close {right : 200 px ; } #mobilemenu.mobilemenu_ right_mm {right : 0 ; } /---遮罩---/ .maskmm {background : rgba ( 255,255 , 255 , 0.7 ) ; width : 100 vw ; height : 100 vh ; position : fixed ; z-index : 3000 ; top : 0 ; left : 0 ; right : 0 ; overflow : hidden ; transition : all 0.1 s linear ; display : none ; } .opacity {overflow-y : hidden ; } .vb { display : block ; } /--- 側邊欄 bt---/ .nav_ bar{-webkit-tap-highlight-color : rgba ( 0 , 0 , 0 , 0 ) ; display : inline-block ; vertical-align : middle ; width : 45px ; height : 45px ; cursor : pointer ; position : absolute ; right : 10 px ; top : 0 ; background : url ( https : //cache.ltn..tw /images/bt-menu.png ) no-repeat center ; background-size : 20px ; } #mobilemenu.close{ display : inline-block ; vertical-align : middle ; width : 50px ; height : 50px ; cursor : pointer ; position : absolute ; top : 0 ; left : 150 px ; z-index : 55 ; background : url ( https : //cache.ltn..tw /images/bt-close.png ) no-repeat center , #aaa ; background-size : 30 px ; -webkit-tap-highlight-color : rgba ( 0 , 0 , 0 , 0 ) ; } /---rwd 頻道 需要 ---/ @media screen and ( min-width : 800 px ) { #estate.maskbg , #talk.maskbg , #partner.maskbg { display : none ; } #estate.nav_ bar , #talk.nav_ bar , #partner.nav_ bar{ display : none ; }/800 以 上隱藏 手 機版 漢堡 / } /---google廣 告 amp 格式 修正 ---/ div [ id^ = 'google_ads_ iframe' ] { margin : 0 auto ; } / [ mobile css ] / 自由 電子報 自由 影音 即 時 熱門 政治 社會 生活 國際 地方 蒐奇 財經 娛樂 汽車 時尚 體育 3 c 評論 玩 咖 食譜 健康 地產 --> 專區 服務 自由 電子報 app 自由 電子報 粉 絲團 自由 電子報 line 熱門 新訊 console.log('讀 取 es' ) ; { "@context" : "http : //schema.org" , "@type" : "newsarticle" , "url" : "https : //news.ltn..tw / news/world/paper/1474244" , " mainentityofpage" : "https : //news.ltn..tw / news/world/paper/1474244" , " headline" : "aukus 南海 抗 中 菲國力 挺 " , "articlesection" : " 國際 " , " datepublished" : "2021-09-22t05:30:00+08:00" , " datemodified" : "2021-09-22t05:30:00+08:00" , " description" : " 為強 化 印 太 地區 安全 並對 抗 中國 , 美國 、 英國 和 澳洲 三 國達成 「 澳 英 美 三 方 安全 夥伴 」 ( aukus ) 新安 全 協議 , 美國 將與 澳洲 分享 核 潛艦 動力 技術 , 使 其 成為 全球 第七 個擁 有 核動力 潛艦 的 國家 。 對此 , 菲律賓 政府 二十一日 表達 支持 , 外交部 長陸辛 ( teodoro locsin ) 指出 , aukus聯盟 有 助 提升 周 邊盟國 投射 能力 , 維持 南海 和平 穩定 。 陸辛力 挺 aukus聯盟 的 立場 , 與馬來 西 亞及 印尼 擔心 可能 引發 南海 軍備 競賽 的 態度 截然 不同 。 路 辛 強調 , aukus聯 盟 應可 恢 復並維 持 區域 平衡 , 而 非 破壞區域 穩定 ; 只要 沒有 部署 核武器 , aukus聯盟 向 澳洲 提供 核動力 潛艦 技術 , 並沒 有 違反 一九九五年 簽訂 的 「 東南 亞無 核武器 區條約 」 。 " , " thumbnailurl" : "https : //img.ltn..tw /upload/news/600/2021/09/22/190.jpg" , " keywords" : "菲律賓 , 南海 , 抗 中 , aukus" , "author" : { "@type" : "organization" , "name" : " 自由時報 " } , " publisher" : { "@type" : "organization" , "name" : " 自由時報電 子報" , "url" : "https : //www.ltn..tw " , " sameas" : "https : //www.facebook.m.ltn.tw /" , " logo" : { "@type" : "imageobject" , "url" : "https : //cache.ltn..tw /images/amp_libertytimes_ logo.jpg" } } , "image" : { "@type" : "imageobject" , " contenturl" : "https : //img.ltn..tw /upload/news/600/2021/09/22/190.jpg" , "url" : "https : //img.ltn..tw /upload/news/600/2021/09/22/190.jpg" , "name" : " 美國 、 英國 和 澳洲 成立 新 三 方 聯盟 aukus , 讓澳洲 取得 建造 核動力 潛艦 技術 , 進而嚇阻 中國 擴張 軍備 , 二十一日 獲得菲律賓 支持 。 菲國 外交部 長陸 辛 表示 , 此 舉可 恢 復並鞏 固 區域 平衡 。 圖為 澳洲 皇家 海軍 「 柯林斯 級 」 潛艦 「 瓦勒號 」 ( hmas waller ) 去年 五月 駛離 雪梨 港 。 ( 路 透檔案 照 ) " , " width" : "800" , " height" : "405" } } $(function ( ) { // 新 聞快訊 部分 使用 jsonp 向 cache/application/controllers/cache_ get_extra.php 取得 資料 後載入 protocol = document.location.protocol ; $.ajax ( { type : " get" , async : false , url : protocol+"//cache.ltn..tw /application/controllers/cache_ get_extra.php" , datatype : " jsonp" , // 指定 以 jsonp 方式 執行 // jsonp : "callback" , // " callback "會 以 get 的 變數 名稱傳 送 ,沒 指定時 , jquery 使用 "callback " 當變數 名稱 // jsonpcallback : 'get_extra' , // " mycallback " 變數 的 值 ,沒 指定時 , jquery 隨機 產生 success : function ( data ) { insertmarqueedata ( data ) ;// 插入 新 聞快訊 runmarquee ( ) ;// 顯示 快訊 ( 包含 廣告 ) } , error : function(e){ console.log(' get extra failed!' ) ; console.log(e ) ; } } ) ; function insertmarqueedata ( data ) { ='' ; order=0 ; time_ now = new date ( ) .gettime ( ) ; for ( type in data ) {//extra , ad_153 , ad_311 三種快訊 list = data [ type ] ; for(i in list ) { item = list[i ] ; if ( typeof ( item [ 'title' ] ) = = " undefined" ) { continue ; } switch ( type ) { case'extra' : +=' '+item [ 'title' ] +' ' ; order++ ; break ; case'ad_153' : +=' ' ; +=' '+item [ 'title' ] +' pr' ; +=' ' ; +=' ' ; order++ ; break ; case'ad_311' : +=' ' ; +=' '+item [ 'title' ] +' ' ; +=' ' ; +=' ' ; order++ ; break ; default : break ; } } } if ( =='' ) {return ; } $('#marquee' ) .find ( 'ul' ) .prepend ( ) ; } function runmarquee ( ) { $marquee=$ ( '#marquee' ) ; extras = $marquee.find ( 'li' ) ; //無 快 訊時 不 處理 if ( extras.length<1 ) {return ; } // 兩則 以 上時 才 跑馬 if ( extras.length > 1 ) { $marquee.find ( ' .arrow' ) .show ( ) ; $marquee.textslider ( { line : 1 , speed : 500 , timer : 500 0} ) ; } //顯 示 快訊 $marquee.slidedown ( 500 ) ; // 手 機版 置 頂浮動 marqueeposition ( extras ) ; $(window ) .resize ( function ( ) { marqueeposition ( extras ) ; } ) ; function marqueeposition ( $extras) { hconheight=$ ( 'div.ltnheader>.hcon' ) .outerheight ( true ) ; marqueeheight = $extras.outerheight ( true ) ; if($(window ) .outerwidth ( true ) <=828 ) { $('div#marquee' ).appendto('div#marqueeheader' ) ; $('div#marquee' ) .css('margin-bottom' , 0 ) ; $('div.headerp_high' ) .css('height' , hconheight+marqueeheight+12 ) ; }else{ $('div#marquee' ).appendto('div#marqueecontent' ) ; $('div.headerp_high' ) .css('height' , hconheight ) ; } } } } ) ; < div id = "ad-b1" class = " boxtitle ad m" data-desc = " 廣告 ad-b1" style = " text-align : center ; display : none ; "> displaydfp('ad-b1' , 'm' ) ; 限制 級 您 即 將進 入 之 新 聞內 容 需滿 18 歲 方可 瀏覽 。 未滿 18 歲 或 不 同意 本 條款 離開 我 同意 我 已 年滿 18 歲 進入 根據 「 電 腦網 路 內容 分 級處 理 辦法 」 修正 條文 第六 條 第三 款 規定 , 已 於網站 首頁 或 各該 限制 級網頁 , 依 台灣 網站 分 級推廣 基金 會規 定作 標示 。 台灣 網站 分 級推廣 基金會 ( ticrf ) 網站 : http : //www.ticrf.org .tw 首頁 > 國際 $(window ) .on ( 'load' , function ( ) { //pc fb youtube 嵌入 影音 高度 調整 video_ resize_pc('.whitecon' ) ; //pc 表格 顯示調整 rwd_ table_resize_pc('.text' ) ; //pc fb post 調整 rwd_ fbpost_ resize_pc('.text' ) ; } ) ; aukus 南海 抗 中 菲國力 挺 美國 、 英國 和 澳洲 成立 新 三 方 聯盟 aukus , 讓澳洲 取得 建造 核動力 潛艦 技術 , 進而嚇阻 中國 擴張 軍備 , 二十一日 獲得菲律賓 支持 。 菲國 外交部 長陸 辛 表示 , 此 舉可 恢 復並鞏 固 區域 平衡 。 圖為 澳洲 皇家 海軍 「 柯林斯 級 」 潛艦 「 瓦勒號 」 ( hmas waller ) 去年 五月 駛離 雪梨 港 。 ( 路 透檔案 照 ) 2021/09/2205:30 〔 編譯陳 成 良 /綜 合 報導 〕 為強 化 印 太 地區 安全 並對 抗 中國 , 美國 、 英國 和 澳洲 三 國達成 「 澳 英 美 三 方 安全 夥伴 」 ( aukus ) 新安 全 協議 , 美國 將與 澳洲 分享 核 潛艦 動力 技術 , 使 其 成為 全球 第七 個擁 有 核動力 潛艦 的 國家 。 對此 , 菲律賓 政府 二十一日 表達 支持 , 外交部 長陸辛 ( teodoro locsin ) 指出 , aukus聯盟 有 助 提升 周 邊盟國 投射 能力 , 維持 南海 和平 穩定 。 陸辛力 挺 aukus聯盟 的 立場 , 與馬來 西 亞及 印尼 擔心 可能 引發 南海 軍備 競賽 的 態度 截然 不同 。 路 辛 強調 , aukus聯 盟 應可 恢 復並維 持 區域 平衡 , 而 非 破壞區域 穩定 ; 只要 沒有 部署 核武器 , aukus聯盟 向 澳洲 提供 核動力 潛艦 技術 , 並沒 有 違反 一九九五年 簽訂 的 「 東南 亞無 核武器 區條約 」 。 請繼續 往 下閱 讀... < div id = "ad-ir1" class = " boxtitle ad m" data-desc = " 廣告 ad-ir1" style = " text-align : center ; display : none ; "> displaydfp('ad-ir1' , 'm' ) ; 歐盟 高層 挺 法 批 美 澳 違背 承諾 不過 , 圍繞 此事 的 爭端 仍 在 發酵 。 前往 紐約 出席 聯合國 大會 的 歐洲 理事會 主席 米 歇爾 ( charles michel ) 、 歐盟 執行 委 員會 主席 馮德萊恩 ( ursula von der leyen ) 及歐 盟 外交 和 安全 政策 高級 代表 波 瑞爾 ( josep borrell ) 等 人 , 紛紛 指責美 澳 違背 與歐 盟 在 印 太 地 區加強 合作 的 承諾 , 力 挺 法國 。 米 歇爾 表示 , 美國 已 失去 跨大西洋 聯盟 的 信任 , 「 我們 看到 的 是 盟友 透明度 和 忠誠 的 不足 」 。 馮德萊恩 則說 , 歐盟 成 員國 遭到 「 令 人 無法 接受 的 對待 」 , 在 盟友 關係 可以 繼續 推進 之前 , 歐盟 需要 對此事 提 出 解釋 。 美 國總 統拜登尋 求 和 法 國總 統馬克 宏 ( emmanuel macron ) 對話 , 以 緩解 緊張 情勢 , 但 澳洲 總理 莫里森 表示 , 不會 在 聯合 國與馬 克 宏 晤談 , 並強調 不 後悔 以 澳洲 國家 利益 出發 所 做 的 決定 。 與此 同時 , 馬克 宏與 印度 總理 莫迪 ( narendra modi ) 二十一日 在 電話 會談 中 強調 , 兩國將 在 印 太 地區 「 聯 合行 動 」 。 馬克 宏 還承諾 , 法 國將 持 續 「 致力 加強 印度 的 戰略 自主性 , 包括 工業 和 科技 基礎 , 建立 以 信任 和 相互 尊重 為基礎 的 密切 關係 」 。 「 印度 時報 」 ( the times of india ) 二十一日則 引述 消息 人士 報導 , 美國國 防部 長奧斯汀 ( lloyd austin ) 致電 印度 國防部 長辛赫 ( rajnath singh ) , 向 印度 保證 aukus聯盟 不 會衝擊 美 印兩 國在 「 四 方 安全 對話 」 ( quad ) 多邊架構 下 的 合作 。 disable_ onead_ inread = ( function ( ) { rang0 = [ ( new date('2018-06-08t00:00:00+0800' ) ) .gettime ( ) , ( new date('2018-06-30t23:59:59+0800' ) ) .gettime ( ) , { 'focus' : true } ] ; if ( check_ onead_ mobile_inread ( rang0) ) { return true ; } return false ; } ) ( ) ; function check_ onead_ mobile_inread ( rang ) { now = ( new date ( ) ) .gettime ( ) ; show_ door = false ; if ( now > = rang [ 0 ] && now< = rang [ 1 ] ) { show_ door = true ; cate = rang [ 2 ] ; show_category = cate [ category ] ? cate [ category ] : false ; return ( show_ door&&show_category ) ? true : false ; } return false ; } if ( disable_ onead_ inread ) { googletag.cmd.push ( function ( ) { googletag.defineslot('/21202031/01-news-foc-p-ir2' , [ [ 1 , 1 ] , [ 728 , 90 ] , [ 640,360 ] ] , 'ad-inread' ) .addservice ( googletag.pubads ( ) ) ; googletag.enableservices ( ) ; } ) ; $(function ( ) { googletag.cmd.push ( function ( ) { googletag.display ( 'ad-inread' ) ; } ) ; } ) ; }else{ $(function ( ) { script = document.createelement('script' ) ; script.src="assets/ js/onead_ ir_mir.js " ; el = document.getelementsbytagname ( " script" ) [ 0 ] ; el.parentnode.insertbefore ( script , el ) ; } ) ; } 不用 抽 不 用 搶現 在 用 app 看新 聞保證 天天 中獎 點我 下載 app 按 我 看 活 動辦 法 < div id = "ad-k2" class = " boxtitle ad pc" data-desc = " 廣告 ad-k2" style = " text-align : center ; display : none ; "> displaydfp('ad-k2' , 'pc' ) ; < div id = "ad-b2" class = " boxtitle ad m" data-desc = " 廣告 ad-b2" style = " text-align : center ; display : none ; "> displaydfp('ad-b2' , 'm' ) ; randad = math.ceil ( math.random ( ) 2 ) ;// 決定 第三 則的廣告 商 1 : tenmax 2 : freakout if ( randblock = = 0 ) { // 模 組上 passmobile=4290962;//pass passpc=4290961 ; //pass }else{ // 模 組下 passmobile=4291084;//pass passpc=4291083 ; //pass } 國際 今日 熱門 2022/01/1418:59 日本 單日 確診數 破 2 萬多 地 疫情 創新高 2022/01/1418:51 嚴防 omicron ! 香港 機場 將暫 停 153 個高 風險地區 旅客 轉機 2022/01/1509:47 粉色 口罩 bad ! 義大 利 警方 抗議 拒 戴 2022/01/1420:19 下 一 個輪 到誰 ? 香港 媒體圈 因 國安法 人心惶惶 ( function ( ) { pa = document.createelement('script' ) ; pa.type='text/' ; pa.charset = "utf-8" ; pa.async = true ; pa.src=window.location.protocol+"//api.popin.cc /searchbox/ltn_ tw.js " ; s = document.getelementsbytagname('script' ) [ 0 ] ; s.parentnode.insertbefore(pa , s ) ; if ( randblock ! = 0 ) { $('#_ popin_ remend_ hot_3' ) .attr ( { 'id' : '_popin_ remend_ hot_3_ below' , } ) ; } } ) ( ) ; //pass passdiv = document.createelement ( " div" ) ; passdiv.id = " pass-fit-uaid" ; $('.todaynews' ).append ( passdiv ) ; ua = navigator.useragent ; cf_id ; if ( ua.indexof('iphone' ) > 0| |ua.indexof('ipod' ) > 0| |ua.indexof('android' ) > 0&& ua.indexof('mobile' ) > 0 ) { ua = 'sp' ; }else if ( ua.indexof('ipad' ) > 0| |ua.indexof('android' ) > 0 ) { ua = 'tab' ; }else{ ua = 'pc' ; } if ( ua = = 'sp' ) { cf_id = passmobile; }else{ cf_id = passpc ; } document.getelementbyid('pass-fit-uaid' ) .id = " pass-fit-"+cf_id ; ( function ( ) { _lgy_ lw = document.createelement ( " script" ) ; _lgy_ lw.type = " text/" ; _lgy_ lw.charset = " utf-8" ; _lgy_ lw.async = true ; _lgy_ lw.src=(("https : "= = document.location.protocol ) ? "https : //" : "http : //" ) + "nt.pass-fit.jp /lift_ widget.js ? adspot_id = "+cf_id ; _lgy_ lw_0 = document.getelementsbytagname ( " script" ) [ 0 ] ; _lgy_ lw_0.parentnode.insertbefore(_lgy_ lw , _lgy_ lw_0 ) ; } ) ( ) ; < div id = "ad-c1" class = " boxtitle ad pc" data-desc = " 廣告 ad-c1" style = " text-align : center ; display : none ; "> displaydfp('ad-c1' , 'pc' ) ; < div id = "ad-c2" class = " boxtitle ad pc" data-desc = " 廣告 ad-c2" style = " text-align : center ; display : none ; "> displaydfp('ad-c2' , 'pc' ) ; youmaylikebox = [ 1 , 2 , 3 ] ; randorder = math.ceil ( math.random ( ) 3 ) ; youmaylikeno = youmaylikebox [ randorder-1 ] ; if ( isusa ) { youmaylikeno=4 ; } //a 今日 熱門 下 、 你 可能 會喜歡上 //b 今日 熱門 上 、 你 可能 會喜歡下 abtest = ( randblock = = 0 ) ? 'a' : 'b'; switch ( youmaylikeno ) { case 1 : //pass 0 下 1 上 passad = document.createelement('div' ) ; passdivid = 'pass-fit-uaid' ; passad.setattribute('id' , passdivid ) ; passad.setattribute('class' , ' boxtitle' ) ; passad.setattribute('data-desc' , ' 你 可能 有 興趣 : pass-'+abtest ) ; $('#maybelike' ).append ( passad ) ; passidmo = ( randblock = = 0 ) ?'4289820' : '4291090' ; passidpc = ( randblock = = 0 ) ?'4289819' : '4291089' ; ua = navigator.useragent ; cf_id ; if ( ua.indexof('iphone' ) > 0| |ua.indexof('ipod' ) > 0| |ua.indexof('android' ) > 0&& ua.indexof('mobile' ) > 0 ) { ua = 'sp' ; }else if ( ua.indexof('ipad' ) > 0| |ua.indexof('android' ) > 0 ) { ua = 'tab' ; }else{ ua = 'pc' ; } if ( ua = = 'sp' ) { cf_id = passidmo; }else{ cf_id = passidpc; } document.getelementbyid('pass-fit-uaid' ) .id = " pass-fit-"+cf_id ; ( function ( ) { _lgy_ lw = document.createelement ( " script" ) ; _lgy_ lw.type = " text/" ; _lgy_ lw.charset = " utf-8" ; _lgy_ lw.async = true ; _lgy_ lw.src=(("https : "= = document.location.protocol ) ? "https : //" : "http : //" ) + "nt.pass-fit.jp /lift_ widget.js ? adspot_id = "+cf_id ; _lgy_ lw_0 = document.getelementsbytagname ( " script" ) [ 0 ] ; _lgy_ lw_0.parentnode.insertbefore(_lgy_ lw , _lgy_ lw_0 ) ; } ) ( ) ; break ; case 2 : //popin popinad = document.createelement('div' ) ; popinid = ( randblock = = 0 ) ? '_popin_ remend_ rwd' : '_popin_ remend_ rwd_ top' ; popinad.setattribute('id' , popinid ) ; popinad.setattribute('class' , ' boxtitle' ) ; popinad.setattribute('data-desc' , ' 你 可能 有 興趣 : popin-'+abtest ) ; $('#maybelike' ).append ( popinad ) ; ( function ( ) { pa = document.createelement('script' ) ; pa.type='text/' ; pa.charset = "utf-8" ; pa.async = true ; pa.src=window.location.protocol+"//api.popin.cc /searchbox/ltn_ tw.js " ; s = document.getelementsbytagname('script' ) [ 0 ] ; s.parentnode.insertbefore(pa , s ) ; } ) ( ) ; break ; case 3 : // dable dablead = document.createelement('div' ) ; dableidpc = ( randblock = = 0 ) ?'2xnjzmxd' : 'gokm0nlv' ; dableidmo = ( randblock = = 0 ) ? 'xxayjmxg' : ' jobp0dlw' ; dablead.setattribute('id' , 'dablewidget_' + dableidpc+'_' + dableidmo ) ; dablead.setattribute('class' , ' boxtitle' ) ; dablead.setattribute('data-desc' , ' 你 可能 有 興趣 : dable-'+abtest ) ; dablead.setattribute('data-widget_id-pc' , dableidpc ) ; dablead.setattribute('data-widget_id-mo' , dableidmo ) ; $('#maybelike' ).append ( dablead ) ; ( function(d , a , b , l , e , _ ) { if(d[b ] &&d [ b].q ) return ; d[b ] = function ( ) {(d[b ] .q =d [ b].q || [ ] ).push ( arguments ) }; e=a.createelement(l ) ; e.async = 1 ; e.charset = 'utf-8' ; e.src='//static.dable.io / dist/plugin.min.js' ; _=a.getelementsbytagname(l)[0 ] ; _.parentnode.insertbefore(e , _ ) ; } ) ( window , document , 'dable' , 'script' ) ; dable('setservice' , 'news.ltn..tw' ) ; dable('sendlogonce' ) ; dable('renderwidgetbywidth' , 'dablewidget_' + dableidpc+'_' + dableidmo ) ; break ; //taboola ( 美國 流量 ) case 4 : // 廣告 位置 : 相關 下 ( 上 一則/ 下 一則的下方 ) // 電腦版 window._ taboola = window._ taboola|| [ ] ; _taboola.push ( { mode : 'alternating-thumbnails-a' , container : 'taboola-below-article-thumbnails' , placement : 'below article thumbnails' , target_ type : 'mix' } ) ; // 手 機版 window._ taboola = window._ taboola|| [ ] ; _taboola.push ( { mode : 'alternating-thumbnails-a-mw' , container : 'taboola-mobile-below-article-thumbnails' , placement : 'mobile below article thumbnails' , target_ type : 'mix' } ) ; break ; } if ( isusa ) { // 廣告 位置 : 頁面 底部 網友 回應 上方 if ( cookies_m.ispc ( ) ) { // 電腦版 window._ taboola = window._ taboola|| [ ] ; _taboola.push ( { mode : 'thumbs-feed-01-b' , container : 'taboola-below-article-feed' , placement : 'below article feed' , target_ type : 'mix' } ) ; // 廣告 位置 : 右側 邊條 最 底部 window._ taboola = window._ taboola|| [ ] ; _taboola.push ( { mode : 'alternating-thumbnails-rr' , container : 'taboola-rightrail-thumbnails' , placement : 'rightrail thumbnails' , target_ type : 'mix' } ) ; }else{ // 手 機版 window._ taboola = window._ taboola|| [ ] ; _taboola.push ( { mode : 'thumbs-feed-01' , container : 'taboola-mobile-below-article-feed' , placement : 'mobile below article feed' , target_ type : 'mix' } ) ; } $(function ( ) { // place this code in the section //taboola ( 美國 流量 ) window._ taboola = window._ taboola|| [ ] ; _taboola.push ( { article : 'auto'} ) ; ! function(e , f , u , i ) { if ( ! document.getelementbyid(i) ) { e.async = 1 ; e.src=u ; e.id = i; f.parentnode.insertbefore(e , f ) ; } }(document.createelement('script' ) , document.getelementsbytagname('script' ) [ 0 ] , '//cdn.taboola.libtrc/ltn-ltnwebsite/loader.js' , 'tb_ loader_script' ) ; if ( window.performance&& typeof window.performance.mark = = 'function' ) {window.performance.mark ( 'tbl_ic' ) ; } // place this code where you want the" below article thumbnails" widget to render : window._ taboola = window._ taboola|| [ ] ; _taboola.push ( { flush : true} ) ; } ) ; } function loadapi ( ) { js = document.createelement('script' ) ; js.src='//connect.facebook.net/zh_tw/sdk.js# xfbml = 1&appid = 140490219413038&version=v7.0' ; document.body.appendchild ( js ) ; } window.onscroll = function ( ) { rect = document.getelementsbyclassname('fb-ments' ) [ 0 ] .getboundingclientrect ( ) ; if ( rect.top