Liberty Times electronic

  • 2022-01-10Abholtermin
  • 2022-02-15Aktualisiert
Liberty Times electronic
  • Webseitenadressse:www.ltn.com.tw
  • Server IP:13.226.225.43
  • Seitenbeschreibung:Liberty Times bietet wichtige Nachrichteninformationen für Netizens, Berichte aus erster Hand über die dringendsten Notfälle auf der ganzen Welt, präzise erfassen den Nachrichtenpuls für Netizens und starten verschiedene Nachrichtenzonen, um die Mehrheit der Netizens von Zeit zu Zeit zu bedienen

Domainnamewww.ltn.com.twBewertung

etwa 5000~500000

Domainnamewww.ltn.com.twfließen

282

Domainnamewww.ltn.com.twGut oder schlecht

Wünsche erfüllen. Erfolg zu erwarten

Webseite:Liberty Times electronicGewichte

2

Webseite:Liberty Times electronicIP

13.226.225.43

Webseite:Liberty Times electronicInhalt

自由時報電子報varinterstitial=0;varuserent=nigator.userent;varplatform=nigator.platform;variOSDevice=['iPhone','iPad'];functionisiPhone(){return(userent.indexOf('iPhone')>=0)?true:false;}functionisAndroid(){return(userent.indexOf('Android')>=0)?true:false;}functionisFB(){return(userent.indexOf('FB')>=0)?true:false;}functionisLine(){return(userent.indexOf('Line')>=0)?true:false;}functionisChrome(){return(userent.indexOf('Chrome')>=0||userent.indexOf('CriOS')>=0)?true:false;}functionisSimulator(device){vari;varisDevice=true;for(i=0;i=0)?false:true;if(!isDevice){break;}}returnisDevice;}if(isFB()){interstitial=1;}elseif(isLine()){interstitial=1;}elseif(isAndroid()&&!isChrome()){interstitial=1;}elseif(isiPhone()&&!isSimulator(iOSDevice)&&!isChrome()){interstitial=1;}console.log('interstitial='+interstitial);vargooglet=googlet||{};googlet.cmd=googlet.cmd||[];googlet.cmd.push(function(){googlet.pubads().setTargeting("ltn_interstitial",[interstitial.toString()]);});varpvServer='pv.ltn.com.tw';varnewsServer='news.ltn.com.tw';var='/';varadDevice='P';if($(window).outerWidth()vargooglet=googlet||{};googlet.cmd=googlet.cmd||[];(function(){vargads=document.createElement('script');gads.async=true;gads.type='text/jascript';varuseSSL=':'==document.location.protocol;gads.src=(useSSL?':':'http:')+'//securepubads.g.doubleclick.net/t/js/gpt.js';varnode=document.getElementsByTName('script')[0];node.parentNode.insertBefore(gads,node);})();googlet.cmd.push(function(){vardfp={"pc":{"BD1":{"slot":"\/\/00-ltn-home-BD1","size":"[[300,250],[300,600]]","div":"ad-BD1","class":"ad-BD1adHeight250","collapse":1},"BD2":{"slot":"\/\/00-ltn-home-BD2","size":"[[300,250],[300,600]]","div":"ad-BD2","class":"ad-BD2adHeight250","collapse":1},"K1":{"slot":"\/\/00-ltn-home-K1","size":"[[1,1],[970,90],[970,160],[970,250],[1260,90],[1260,160],[1260,250]]","div":"ad-K1","class":"ad-K1adHeight250","collapse":0}},"m":{"B1":{"slot":"\/\/02-mobile-home-B1","size":"['fluid',[1,1],[300,250],[336,280]]","div":"ad-B1","class":"ad-B1adHeight359","collapse":0},"B3":{"slot":"\/\/02-mobile-home-B3","size":"['fluid',[1,1],[300,250],[336,280]]","div":"ad-B3","class":"ad-B3adHeight280","collapse":1},"B4":{"slot":"\/\/02-mobile-home-B4","size":"['fluid',[1,1],[300,250],[336,280]]","div":"ad-B4","class":"ad-B4adHeight280","collapse":1},"B2":{"slot":"\/\/02-mobile-home-B2","size":"['fluid',[1,1],[300,250],[336,280]]","div":"ad-B2","class":"ad-B2adHeight280","collapse":1}}};vardevice=cookies_m.isPC()?'pc':'m';dfp=dfp[device]||[];for(varkeyindfp){//蓋台廣告由cache_ads_h1.php控制if(key==='H1'){continue;}if(dfp.hasOwnProperty(key)){varad=dfp[key];varadSize=eval(ad['size']);varbodyWidth=$('body').width();ad['size']=[];for(variinadSize){if(adSize[i][0]>bodyWidth){continue;}ad['size'].push(adSize[i]);}if(ad['collapse']){googlet.defineSlot(ad['slot'],ad['size'],ad['div']).addService(googlet.pubads()).setCollapseEmptyDiv(true,false);}else{googlet.defineSlot(ad['slot'],ad['size'],ad['div']).addService(googlet.pubads()).setCollapseEmptyDiv(false,false);}}}googlet.pubads().addEventListener('slotRenderEnded',function(event){//google回傳的廣告標籤(ex:ad-B1)varslotElementId=event.slot.getSlotElementId();//===無廣告時要做的事===if(event.isEmpty){//記錄沒有廣告console.log('沒有'+slotElementId);//移除廣告單元//$('#'+slotElementId).remove();return;}//===有廣告時要做的事===//置底浮水印廣告,調整畫面不要蓋住footerif(slotElementId=='ad-I1-bottom'){//廣告的高度varad_height=event.size[1];var$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','100px');});}return;}//有IR1時顯示「請繼續往下閱讀...」if(slotElementId=='ad-IR1'){//顯示「請繼續往下閱讀...」(class="before_ir"在cache中寫的)$('p.before_ir').fadeIn(200);$('p.after_ir').fadeIn(200);}});googlet.enableServices();});//判斷裝置並只呼叫相同裝置的廣告functiondisplayDFP(div,dfpDevice){varrealDevice=cookies_m.isPC()?'pc':'m';if(dfpDevice!==realDevice){$('#'+div).remove();return;}googlet.cmd.push(function(){googlet.display(div);});}window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','DC-');window.dataLayer=window.dataLayer||[];dataLayer.push({'event':'testEvent','article':{'authorName':'自由時報'}});(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P98PP75');(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*newDate();a=s.createElement(o),m=s.getElementsByTName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','///analytics.js','ga');ga('create','UA--1','auto');ga('require','displayfeatures');ga('require','linkid','linkid.js');ga('send','peview');//GA點擊事件統計$(function(){ga_news_event();});functionga_news_event(){varbase_root_org='http'+newsServer;vardeviceDesc=$("meta[name='ltn:device']").attr('content')||'U';/*取頁面說明*/var_peDesc=$('.pe-name').attr('data-desc');varpeDesc=deviceDesc+':'+_peDesc;$(document.body).on('click.ga','.boxInput',function(){varobj=$(this);varobjDesc=obj.attr('data-desc');varpar=obj.parents('.boxTitle');varboxDesc=par.attr('data-desc');varcategory=peDesc;varaction=boxDesc;varlabel=objDesc||'';/*使用自定義說明*/ga_send_event(category,action,label);});$('.boxTitle').on('click.count','a',function(e){if(e.button!=0){return;}if(getinfo($(this),false))e.preventDefault();}).on('mouseup.count','a',function(e){if(e.button!=1){return;}getinfo($(this),true);e.preventDefault();});functionsetltncookies(area,item,elem){varov_sec=30;ltncookies_news("ltn_device",deviceDesc,ov_sec);ltncookies_news("ltn_pe",_peDesc,ov_sec);ltncookies_news("ltn_area",area,ov_sec);ltncookies_news("ltn_item",item,ov_sec);ltncookies_news("ltn_elem",elem,ov_sec);}functiongetinfo(obj,SendOnly){varobjText=obj.text();varobjDesc=obj.attr('data-desc');varpar=obj.parents('.boxTitle');/*取區塊說明*/varboxDesc=par.attr('data-desc');/*是否用連結文字*/varuseText=par.hasClass('boxText');varcategory=peDesc;varaction=boxDesc;varlabel=objDesc||'';/*使用自定義說明*/if(useText&&label==''){label=objText||'';/*使用連結文字*/}varlabelA=label;varidx=$('a',par).index(obj);if(label==''){/*記錄該區塊第幾則*/label='第'+idx+'則';}vartarget=obj.attr('target');varhref='';var_href=obj.attr('href');if(_href){href=check_url(_href);}varsend_type='send';if(!target&&href!=''){send_type='redirect';}if(SendOnly)send_type='send';setltncookies(action,idx,labelA);//Addarea,item,if(send_type=='send'){ga_send_event(category,action,label);returnfalse;}else{send2ga2pe(category,action,label,href);returntrue;}}functioncheck_url(_url){if((/^http:/).test(_url)){return_url;}elseif((/^:/).test(_url)){return_url;}elseif((/^\/Liberty Times electronic\//).test(_url)){return_url;}elseif((/^jascript/).test(_url)){return'';}elseif((/^#/).test(_url)){return'';}else{varbase_root=$('base').attr('href')||base_root_org;returnbase_root+_url;}}/*GA事件追蹤:頁面不轉換*/functionga_send_event(category,title,label){ga_send_event_callback(category,title,label,function(){});}/*GTA事件追蹤:頁面轉換*/functiongta_send_event_callback(category,title,label){gt('event',title,{'category':category,'label':label,'send_to':'G-3MJGE7SCXJ','debug_mode':false});}/*GA事件追蹤:頁面轉換*/functionga_send_event_callback(category,title,label,fn_callback){//returnfn_callback();gta_send_event_callback(category,title,label);ga('send','event',category,title,label,{'hitCallback':function(){fn_callback();}});//console.log(category+'-'+title+'-'+label);//returnfalse;}/*GA事件追蹤:連結點擊*/functionsend2ga2pe(category,title,label,url){varredirectTriggered=false;ga_send_event_callback(category,title,label,function(){redirectTriggered=true;document.location=url;});setTimeout(function(){if(!redirectTriggered){document.location=url;}},1500);}};letwebPushOrigin='';letwebPushFile=webPushOrigin+'/webNotificationCheck';letwebPushNotification=webPushOrigin+'/webNotification';//監聽檢查回應window.addEventListener('messe',function(e){if(e.origin==webPushOrigin){if(e.data=='isOK'){letcheckIframe=document.getElementById('checkIframe');checkIframe.contentWindow.postMesse('getPermission',webPushOrigin);}elseif(e.data=='granted'){$("#checkIframe").remove();console.log(e.data);}elseif(e.data=='denied'||e.data=='default'){//defaultordenied$("#checkIframe").remove();console.log(e.data);softConfirm();}}},false);$(function(){letwebPush=getCookie("softPush");if(webPush===undefined||webPush=0||userent.indexOf('Firefox')>=0||userent.indexOf('Edge/')>=0){initFcm();}elseif(userent.indexOf('Safari')>=0){}}});//檢查notificationfunctioninitFcm(){console.log('checknotification');if('Notification'inwindow){checkFcm();}}//檢查notificationpermissionfunctioncheckFcm(){console.log('checkFcm');letcheckIframe=document.createElement('iframe');checkIframe.setAttribute('id','checkIframe');checkIframe.setAttribute('src',webPushFile);checkIframe.setAttribute('allow','payment');document.body.appendChild(checkIframe);}//觸發軟詢問functionsoftConfirm(){letsoftPushNotificaton=document.createElement('div');softPushNotificaton.setAttribute('class','softPush_notification');letsoftPushNotificationImg=document.createElement('img');softPushNotificationImg.setAttribute('src','news.ltn.com.tw/assets/imes/all/ltn.png');softPushNotificaton.appendChild(softPushNotificationImg);letsoftPushNotificationSpan=document.createElement('span');softPushNotificationSpan.setAttribute('class','softPush_word');letsoftPushNotificationText=document.createTextNode('感謝您的訂閱自由時報電子報隨時提供您即時、熱門的新聞訊息。');softPushNotificationSpan.appendChild(softPushNotificationText);softPushNotificaton.appendChild(softPushNotificationSpan);letsoftPushNotificationButton=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);}//設定軟詢問時間functionsetSoftPushCookie(extension=0){letst="";letexpires=newDate();//延展時間extension=(extension==0)?7*24*60*60*1000:extension;expires.setTime(expires.getTime()+extension);letti=getCookie("softPush");if(ti===undefined)ti=0;st="softPush="+(Number(ti)+1)+";domain=ltn.com.tw;expires="+expires.toGMTString()+";path=/";document.cookie=st;}$(document).on("click",".softPush_confirm",function(){window.open(webPushNotification);getScrNews('','ask','','1');$(".softPush_notification").remove();});$(document).on("click",".softPush_refuse",function(){$(".softPush_notification").remove();getScrNews('','ask','','0');setSoftPushCookie();});/********************瀏覽器推播通知********************/.softPush_notification{width:400px;height:170px;padding:20px;border-radius:10px;position:fixed;left:50%;margin-left:-200px;top:28%;background:#fbfbfb;box-shadow:0px0px30px6pxrgb(000/40%);z-index:300;text-align:justify;}.softPush_notificationimg{width:80px;height:auto;float:left;margin-right:10px;}.softPush_notificationspan.softPush_word{margin-bottom:10px;font-size:18px;line-height:30px;font-family:'NotoSansTC',"微軟正黑體";}.softPush_notificationbutton{border-radius:5px;padding:5px8px;letter-spacing:1px;cursor:pointer;border:0px;font-size:16px;}.softPush_notificationbutton.softPush_confirm{position:absolute;right:25px;bottom:20px;background:#daa01c;color:#fff;transition:.2slinear;}.softPush_notificationbutton.softPush_refuse{position:absolute;right:80px;bottom:20px;color:#8e8e8e;transition:.2slinear;}.softPush_notificationbutton.softPush_confirm:hover{background:#c;}.softPush_notificationbutton.softPush_refuse:hover{background:#dedede;}@mediascreenand(max-width:500px){/*瀏覽器推播通知*/.softPush_notification{width:280px;height:140px;padding:16px;margin-left:-140px;}.softPush_notificationimg{width:60px;}.softPush_notificationspan.softPush_word{font-size:16px;line-height:24px;}.softPush_notificationbutton{padding:6px12px;font-size:12px;}.softPush_notificationbutton.softPush_confirm,.softPush_notificationbutton.softPush_refuse{bottom:12px;}.softPush_notificationbutton.softPush_confirm{right:16px;}}letcheckDevice=cookies_m.isPC()?'pc':'m';//fetchhotNewsdatafunctionfetchHotNews(articleType,limit,section,fn=null){leturl=newURL(hotNewsUrl);letrequestData={"category":hotNewsCategory,"article_type":articleType,"limit":limit,"rh_guid":"guidstring","utm_source":hotNewsSource,"utm_medium":section};url.search=newURLSearchParams(requestData).toString();returnfetch(url,{//method:'GET',headers:{'Content-Type':'application/json','Authorization':hotNewsAuth},}).then(response=>{if(!response.ok){thrownewError('responseerror:'+response.status);}returnresponse.json();}).then(data=>{fn(data);}).catch(error=>{console.error('fetcherror:',error);});}; 為達佳瀏覽效果,建議使用Chrome、Firefox或MicrosoftEdge的瀏覽器。 請至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(); })即時熱門政治軍武社會生活健康國際地方蒐奇影音財經娛樂汽車時尚體育3C評論藝文玩咖食譜地產專區TAIPEITIMES求職爆 Search applyWeather();//天氣主程式functionapplyWeather(){if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|OperaMini/i.test(nigator.userent)){isWeather();}}functionsetCity(lat,lon){//cityarrayvarcityNameArr=['新北市','臺北市','基隆市','桃園市','新竹市','宜蘭縣','新竹縣','臺中市','苗栗縣','彰化縣','南投縣','雲林縣','臺南市','高雄市','嘉義市','嘉義縣','屏東縣','澎湖縣','臺東縣','臺東市','花蓮縣','花蓮市','台中市','連江縣','金門縣'];leturl="api.bigdatacloud.net/data/reverse-geocode-client?latitude="+lat+"&longitude="+lon+"&localityLangue=zh";letrequest=newXML();request.open('GET',url,true);request.onload=function(){letdata=JSON.parse(this.response);letcityName='臺北市';if(request.status>=200&&request.status{returncityNameArr.includes(obj.name)});if(result!=undefined){cityName=(result.name=='台中市')?'臺中市':result.name;}}addWeather(cityName,1);};request.send();}functionisWeather(){varisWeather=document.getElementById('ltnRWD')?1:0;//判斷是否顯示天氣if(isWeather){$(document).ready(function(){//先取用cookie先前天氣資料if(getCookie('city')&&getCookie('temperature')&&getCookie('icon')&&getCookie('status')){letdata={temperature:getCookie('temperature'),icon:getCookie('icon'),status:getCookie('status')};letcity=getCookie('city');setAttribute(city,data);return;}//還沒確認地理位置前先預設addWeather('臺北市',1);//cookie沒值則抓取user位置天氣if(window.nigator.geolocation){geo=window.nigator.geolocation;geo.getCurrentPosition(function(position){setCity(position.coords.latitude,position.coords.longitude);},addWeather('臺北市',0));}});}}functionaddWeather(city,isGEO){//isGEO0:無法取得定位1:可以取得定位letweatherUrl='cache.ltn.com.tw'+'/getWeather/'+city;letxmlHttp=newXML();xml("GET",weatherUrl,true);//falseforsynchronousrequestxml=function(){letdata=JSON.parse(this.response);data.city=city;setCookie(data,isGEO);//設定cookiesetAttribute(city,data);//設定天氣html};xml();}functionsetCookie(data,isGEO){letcityNow=newDate();letweatherNow=newDate();varexpireCityTime=(isGEO==0)?24:2;varexpireWeatherTime=8;cityNow.setTime(cityNow.getTime()+expireCityTime*3600*1000);weatherNow.setTime(weatherNow.getTime()+expireWeatherTime*3600*1000);for(letkeyindata){document.cookie=(key=='city')?key+'='+data[key]+';expires='+cityNow.toUTCString()+';domain=.ltn.com.tw;path=/':key+'='+data[key]+';expires='+weatherNow.toUTCString()+';domain=.ltn.com.tw;path=/';}}functionsetAttribute(city,data){//設定天氣htmldocument.getElementById('weather_text').innerHTML=city+''+data.temperature;document.getElementById('weather_img').setAttribute("src",'cache.ltn.com.tw/imes/weather/'+data.icon);document.getElementById('weather_img').setAttribute("alt",data.status);document.getElementById('weather_img').setAttribute("title",data.status);}functiongetCookie(name){//依名字取cookieconstvalue=`;${document.cookie}`;constparts=value.split(`;${name}=`);if(parts.length===2)returnparts.pop().split(';').shift();}varcount=0;functionsend(){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;returnfalse;}elseif(kw.length>3){alert("超過三組關鍵字");count=0;returnfalse;}elseif((kw.length==1&&kw[0].length自由影音即時熱門政治軍武社會生活健康國際地方蒐奇財經娛樂藝文汽車時尚體育3C評論玩咖食譜地產專區服務自由電子報APP自由電子報粉絲團自由電子報Line自由電子報Twitter熱門新訊[{"@context":"httpschema.org","@type":"WebSite","name":"自由時報電子報","alternateName":["LTN","自由時報"],"url":"/","keywords":["自由時報","自由時報電子報","LibertyTimesNet","LTN"],"potentialAction":{"@type":"SearchAction","target":"search.ltn.com.tw/list?keyword={search_term_string}","query-input":"requiredname=search_term_string"}},{ "@context":"httpschema.org", "@type":"Organization", "name":"自由時報電子報", "url":"", "logo":"/assets/imes/all/250_ltn.png", "sameAs":"/m.ltn.tw/"},{ "@context":"httpschema.org", "@type":"BreadcrumbList", "itemListElement":[ { "@type":"ListItem", "position":1, "item":{ "@id":"", "name":"自由時報電子報" } } ]}]$(function(){//新聞快訊varprotocol=document.location.protocol;$.ajax({type:"get",async:false,url:protocol+"//cache.ltn.com.tw/data/getExtra?"+newDate().getTime(),dataType:"json",success:function(data){insertMarqueeData(data);//插入新聞快訊runMarquee();//顯示快訊(包含廣告)},error:function(e){console.log('getextrafailed!');console.log(e);}});functioninsertMarqueeData(data){varhtml='';varorder=0;vartime_now=newDate().getTime();for(typeindata){//extra,ad_153,ad_311三種快訊varlist=data[type];for(iinlist){varitem=list[i];if(typeof(item['title'])=="undefined"){continue;}switch(type){case'extra':html+=''+item['title']+'';order++;break;case'ad_153':html+='';html+=''+item['title']+'PR';html+='';html+='';order++;break;case'ad_311':html+='';html+=''+item['title']+'';html+='';html+='';order++;break;default:break;}}}if(html==''){return;}$('#marquee').find('ul').prepend(html);}functionrunMarquee(){var$marquee=$('#marquee');varextras=$marquee.find('li');//無快訊時不處理if(extras.length1){$marquee.find('.arrow').show();$marquee.textSlider({line:1,speed:500,timer:5000});}//顯示快訊$marquee.slideDown(500);//手機版置頂浮動marqueePosition(extras);$(window).resize(function(){marqueePosition(extras);});functionmarqueePosition($extras){varHconHeight=$('div.ltnheader>.Hcon').outerHeight(true);varmarqueeHeight=$extras.outerHeight(true);if($(window).outerWidth(true)狂風襲北京!中國央視大樓洗窗工「半空狂盪」驚險畫面曝光06:31感謝總仔平野跨欄力挺猛登看重播笑了2024/06/0122:38新光三越新據點【藏美表參道】首當受惠一窩蜂!中國逾1500萬人搞直播 98%溫飽成問題06:15孫安佐指我爸偷下毒孫鵬爆心情低落交律師處理06:30抽筋吃什麼?補充關鍵5營養素助改善健康網》端午吃粽不腹脹!營養師:熱熱吃好消化06:31印度大選落幕出口民調:執政黨大勝06:42碳佐誠品來了!台南南區超級黑馬光合作用的氧來自哪?國小教甄出錯教育局不改2024/06/0118:21$(function(){$("div.news12>a.L1ad").each(function(){varadNo=$(this).data('no');$(this).after('');varadHref=$(this).attr('href');$(this).attr('href',adHref+'&device='+adDevice+'&source='+document.URL);});});.news2.hidden{display:none;}varvideoData=[{"videoId":"vpU-Rny3kHA","pic":":\/\/img.ltn.com.tw\/Upload\/Module\/4\/678\/.jpg","url":":\/\/video.ltn.com.tw\/article\/vpU-Rny3kHA\/PLI7xntdRxhw0WAtjar8mbBJH6nFzOOxRb","title":"\u81ea\u7531\u8aaa\u65b0\u805e\u300b\u5996\u98a8\u72c2\u8972\u5317\u4eac\uff01\u6545\u5bae\u5c4b\u74e6\u6158\u88ab\u6380\u7db2\u71b1\u8b70\uff1a\u653f\u6b0a\u5c8c\u5c8c\u53ef\u5371\uff1f"},{"videoId":"pOJuwp3G1bA","pic":":\/\/img.ltn.com.tw\/Upload\/Module\/4\/677\/.jpg","url":":\/\/video.ltn.com.tw\/article\/pOJuwp3G1bA\/PLI7xntdRxhw0WAtjar8mbBJH6nFzOOxRb","title":"\u81ea\u7531\u8aaa\u65b0\u805e\u300b\u6230\u8eca\u906d\u70b8\u4fc4\u8ecd\u6025\u9003\u756b\u9762\u66dd\uff01\u7f8e\u5fb7\u958b\u7da0\u71c8\u5141\u70cf\u653b\u64ca\u4fc4\u672c\u571f"},{"videoId":"aQkXuvG99KI","pic":":\/\/img.ltn.com.tw\/Upload\/Module\/4\/677\/.jpg","url":":\/\/video.ltn.com.tw\/article\/aQkXuvG99KI\/PLI7xntdRxhw0WAtjar8mbBJH6nFzOOxRb","title":"\u9996\u50b3\u4e2d\u570b\u9678\u8ecd\u88dc\u7d66\u8239\u95d6\u91d1\u9580\u9650\u5236\u6c34\u57df\u6d77\u5de1\u76e3\u63a7\u9a45\u96e2\uff08\u6d77\u5de1\u7f72\u63d0\u4f9b\uff09"},{"videoId":"6Ht73iLfuSs","pic":":\/\/img.ltn.com.tw\/Upload\/Module\/4\/677\/.jpg","url":":\/\/video.ltn.com.tw\/article\/6Ht73iLfuSs\/PLI7xntdRxhw0WAtjar8mbBJH6nFzOOxRb","title":"\u81ea\u7531\u7206\u65b0\u805e\u300b\u9752\u9ce5\u5f8c\u6c11\u8abf\u300c\u85cd\u767d\u5d29\u76e4\u300d\uff01\u7f77\u514d\u71b1\u5340\u66dd\u5149"},{"videoId":"32Y3706koMA","pic":":\/\/img.ltn.com.tw\/Upload\/Module\/4\/677\/.jpg","url":":\/\/video.ltn.com.tw\/article\/32Y3706koMA\/PLI7xntdRxhw0WAtjar8mbBJH6nFzOOxRb","title":"\u65b0\u805e360\u300b\u7f8e\u796d\u300c\u6bba\u624b\u9427\u300d\u58d3\u5236\u5171\u8ecd\uff1f\u5c08\u5bb6\u63ed\u53f0\u300c\u4e0d\u6c89\u7684\u795e\u76fe\u8266\u300d\u6230\u7565"}];//指定影片IDvarcount=Math.floor(Math.random()*5);//回傳0或1或2或3或4varplay=false;//是否播放$('div.pc_YouTube').find('a.linkMask').attr({'href':videoData[count]['url'],'data-desc':videoData[count]['title'],'title':videoData[count]['title'],});$('div.pc_YouTube').find('.videoLiveTit').html(videoData[count]['title']);$(function(){writeLtnVideoNews(videoData,count);//一開始先排除則影片去隨機取一篇});functionnewVideoBoxApi(){varplayer=newYT.Player('muteYouTubeVideoPlayer',{videoId:videoData[count]['videoId'],//YouTube影片IDwidth:440,//播放器寬度(inpx)height:247,//播放器長度(inpx)playerVars:{autoplay:0,//取消自動播放功能controls:0,//顯示播放/暫停按鈕showinfo:0,//隱藏影片標題modestbranding:1,//隱藏YouTubeLOGOloop:0,//循環播放cc_load_policty:0,//隱藏關閉字幕iv_load_policy:3,//隱藏影片註釋autohide:1,//播放時隱藏影片控制按鈕rel:0,//不顯示相關影片fs:0,//隱藏全螢幕按鈕},events:{onReady:function(e){if(!nigator.userent.match(/(iphone|ipad|ipod);?/i)&&$('.pc_YouTube').css('display')!='none'){play=false;}playAndMute(e,play);$('.news2').on('click','#videoBtnPrev',function(){count=prevVideo(e,videoData,count,play);});$('.news2').on('click','#videoBtnNext',function(){count=nextVideo(e,videoData,count,play);});},onStateChange:function(e){if(e.data===0){count=nextVideo(e,videoData,count,play);}}}});}//播放且靜音functionplayAndMute(e,play){if(play){e.target.playVideo();}e.target.mute();//靜音}//除了的影片以外隨機取一則放在自由影音Video左側區塊functionwriteLtnVideoNews(videoData,count){varothervideoData=videoData.slice(0);//copyothervideoData.splice(count,1);varrandIdx=Math.floor(Math.random()*4);varurl=othervideoData[randIdx]['url'];varpic=otherviLiberty Times electronicdeoData[randIdx]['pic'];varvid=othervideoData[randIdx]['videoId'];vartitle=othervideoData[randIdx]['title'];$('.ltn_video.big_v#boxVideoUrl').attr('href',url);$('.ltn_video.big_v#boxVideoUrl').attr('title',title);$('.ltn_video.big_v#boxVideoUrl').attr('data-desc','P:0:'+title);$('.ltn_video.big_v#boxVideoImg').attr('src',pic);$('.ltn_video.big_v#boxVideoImg').attr('alt',title);$('.ltn_video.big_v#boxVideoImg').attr('title',title);$('.ltn_video.big_v#boxVideoTitle').text(title);}//下一則functionnextVideo(e,videoData,count,play){count++;if(count>=videoData.length){count=0;}e.target.cueVideoById(videoData[count]['videoId']);playAndMute(e,play);$('div.pc_YouTube').find('a.linkMask').attr({'href':videoData[count]['url'],'data-desc':videoData[count]['title'],'title':videoData[count]['title'],});$('div.pc_YouTube').find('.videoLiveTit').html(videoData[count]['title']);writeLtnVideoNews(videoData,count);returncount;}//上一則functionprevVideo(e,videoData,count,play){count--;if(count自由說新聞》妖風狂襲北京!故宮屋瓦慘被掀網熱議:政權岌岌可危?自由說新聞》戰車遭炸俄軍急逃畫面曝!美德開綠燈允烏攻擊俄本土首傳中國陸軍補給船闖金門限制水域海巡監控驅離(海巡署提供)自由爆新聞》青鳥後民調「藍白崩盤」!罷免熱區曝光新聞360》美祭「殺手鐧」壓制共軍?專家揭台「不沉的神盾艦」戰略varswiperVideo=initSwiperVideo();//影音框1SwiperswiperVideo.slideTo(count+1,0);$(window).resize(function(){swiperVideo.destroy();swiperVideo=initSwiperVideo();swiperVideo.slideTo(count+1,0);});functioninitSwiperVideo(){returnnewSwiper('#news2_video.swiper-container',{direction:'horizontal',slidesPerView:1,spaceBetween:0,loop:true,nigation:{nextEl:'.news2.ltn_video.swipLiberty Times electronicer-button-next',prevEl:'.news2.ltn_video.swiper-button-prev',},autoplay:{delay:8000,//8秒切换一次},});}不分區立委,人民也應有罷免權!varliveEventData=0;varmy_video_player1,my_video_player2;$(function(){window.fbAsyncInit=function(){FB.init({appId:'3038',xfbml:true,version:'v3.2'});//GetEmbeddedVideoPlayerAPIInstanceFB.Event.subscribe('xfbml.ready',function(msg){if(msg.type==='video'){if(msg.id==='muteVideoPlayer1'){my_video_player1=msg.instance;}if(msg.id==='muteVideoPlayer2'){my_video_player2=msg.instance;}}});};if(liveEventData!==0){loadLive(1);$('#videoLive1').html(makeEventHtml(liveEventData[0],1));loadEventIframeMaker();clickMaskAndListener();//點擊和監聽事件}else{//直播影片$.ajax({type:"get",async:false,url:"cache.ltn.com.tw/data/getLiveEvent?"+newDate().getTime(),dataType:"json",success:function(data){data=data.slice(0,2);vardataLength=data.length;if(dataLength0){varlist=$('.mov').map(function(){vart_id=$(this).attr('id');varYT_id=$(this).data('ytid');return{'t_id':t_id,'YT_id':YT_id};});jQuery.each(list,function(i,val){YTPlayers.push(newYTPlayer(val['t_id'],val['YT_id']));});}elseif($('.mov').length==0&&$('.fb-video').length==0){YTPlayers.push(newVideoBoxApi());}if($('div.topLiveBox').length>0){YTPlayers.push(newSpecialLiveBox());}}functionnewYTPlayer(t_id,YT_id){returnnewYT.Player(t_id,{height:'247',width:'100%',videoId:YT_id,playerVars:{autoplay:1,//自動播放視頻controls:1,//顯示播放和暫停按鈕modestbranding:1,//隱藏YouTubeLOGOloop:1,//循環播放cc_load_policty:0,//隱藏關閉字幕iv_load_policy:3,//隱藏影片註釋autohide:0,//播放時隱藏影片控制按鈕rel:0,//不顯示相關影片fs:0,//隱藏全螢幕按鈕},events:{'onReady':function(event){if(!nigator.userent.match(/(iphone|ipad|ipod);?/i)){event.target.playVideo();}else{//IOSYTVideoclickevent$('#'+t_id).parents('.box440').find('.linkMask').on('click',function(){event.target.playVideo();event.target.unMute();});}event.target.mute();if(!nigator.userent.match(/(iphone|ipad|ipod);?/i)){//監聽YT全螢幕$('#'+t_id).on('webkitfullscreenchangemozfullscreenchangefullscreenchange',function(){if(document.fullscreenElement==null&&document.mozfullscreenchange==null&&document.webkitfullscreenchange==null){event.target.mute();}else{event.target.unMute();}});}},'onStateChange':function(event){if(event.data===0){if(!nigator.userent.match(/(iphone|ipad|ipod);?/i)){event.target.playVideo();}}}}})}functionclickMaskAndListener(){if(!nigator.userent.match(/(iphone|ipad|ipod);?/i)){$('.linkMask').click(function(){variframe=this.parentNode.getElementsByTName('iframe')[0];varrequestFullScreen=iframe.requestFullScreen||iframe.mozRequestFullScreen||iframe.webkitRequestFullScreen;if(requestFullScreen){requestFullScreen.bind(iframe)();}});}else{//IOSFBVideoclickevent$('.fb-video').parents('.box440').on('click','.linkMask',function(){vart_id=$(this).parents('.box440').find('.fb-video').attr('id');if(t_id=='muteVideoPlayer1'){my_video_player1.play();}elseif(t_id=='muteVideoPlayer2'){my_video_player2.play();}})}if(!nigator.userent.match(/(iphone|ipad|ipod);?/i)){//監聽facebook全螢幕$('#videoLive1,#videoLive2').on('webkitfullscreenchangemozfullscreenchangefullscreenchange','iframe',function(){varisFbIframe=$(this).parents('.fb-video').length;varmyVideoPlayer=null;if(isFbIframe>0){vart_id=$(this).parents('.fb-video').attr('id');if(t_id=='muteVideoPlayer1'){myVideoPlayer=my_video_player1;}elseif(t_id=='muteVideoPlayer2'){myVideoPlayer=my_video_player2;}}if(myVideoPlayer!=null){if(document.fullscreenElement==null&&document.mozfullscreenchange==null&&document.webkitfullscreenchange==null){myVideoPlayer.mute();}else{myVideoPlayer.play();myVideoPlayer.unmute();}}});}}即時新聞#反國會擴權#羽球#大谷翔平#黃國昌#民眾黨09:28MLB》大谷翔平近況下滑與舊傷有關?主帥:有看到一些奇怪的揮棒09:23法網》球王喬科維奇5盤脫困衛冕者搶搭16強末班車新光三越新據點【藏美表參道】首當受惠09:23台中宮廟梅山玉虛宮進香乩身突倒地不起09:15回波來了!鄭明典:帶狀強對流往南部接近抽筋吃什麼?補充關鍵5營養素助改善09:13四叉貓通告滿檔破天荒感恩讚嘆徐巧芯09:11鋒面影響雲嘉南慎防大雷雨!碳佐誠品來了!台南南區超級黑馬09:1012共機艦擾台2架次闖我空域距基隆69浬09:00法國生活節在高雄6/7登場「重量級」演出陣容今曝光09:00阿信挨罵後吐修行念頭!逆風撐完鳥巢10場噴藥畫面曝光08:57朱立倫喊砍考監預算拒修憲林俊憲翻大法官釋字打臉「憲法文盲」08:57孫安佐現身曝「和解狄鶯」開酸孫鵬:做偷雞摸狗的事08:56醫院床上被綁6天孫安佐驚曝:過非人生活08:50鋒面來襲!中南部10縣市大雨特報08:47MiLB》155公里火球K掉洋基潛力新秀!台灣巨投林振瑋6局狂飆7K08:35WTT挑戰賽》4局逆轉鄭先知39歲黃怡樺驚奇闖進女單決賽08:31健康網》竹筍10日內採收鮮嫩農糧署:超過纖維會太硬08:30孫藝真雙辮子頭私照超萌!21年前拍電影就綁過相同髮型曝驚人凍齡08:13孫安佐控孫鵬放符水驚喊:喝下去苦苦的08:10MLB》緊逼洋基「法官」!太空人砲手炸裂、19轟高居全壘打榜第208:08果粉準備掏錢!新iPadPro、iPadAir通過NCC電檢即將開賣更多即時新聞$(function(){$("div.breakingnews>ul>li>a.L1ad").each(function(){varadHref=$(this).attr('href');$(this).attr('href',adHref+'&device='+adDevice+'&source='+document.URL);});});熱門新聞1.2024/06/0110:55台灣上榜2024全球前20大黃金儲備國!持有量好驚人2.2024/06/0113:2517歲情定初戀妻!黃仁勳戀愛史曝光網感動封「純愛戰士」3.07:46習近平崩潰在路上!黃仁勳熱情挺台金句1次看......4.2024/06/0121:32戰車營下基地爆連長「把排長當沙包踹」花防部:派員專案調查5.06:30孫安佐指「我爸偷下毒」孫鵬爆心情低落交律師處理6.2024/06/0120:52張學友不忍了!追問台灣歌迷:非常難買到票真的嗎更多熱門新聞自由說新聞》妖風狂襲北京!故宮屋瓦慘被掀網熱議:政權岌岌可危?中職》昔與林襄自拍蔣萬安1日「牽手李多慧」搶占C位自由說新聞》戰車遭炸俄軍急逃畫面曝!美德開綠燈允烏攻擊俄本土首傳中國陸軍補給船闖金門限制水域海巡監控驅離(海巡署提供)自由爆新聞》青鳥後民調「藍白崩盤」!罷免熱區曝光新聞360》美祭「殺手鐧」壓制共軍?專家揭台「不沉的神盾艦」戰略簡舒培指警察局長不是糖果、要不到就哭鬧蔣萬安嗆:妳能接受?直擊!張學友台灣露面了握手、擊拳、寒暄專寵歌迷蕭美琴聽到都搖擺!拍謝少年力挺青鳥行動親上街頭全說了郭書瑤深陷惡鄰風波現身活動再度道歉快閃$(function(){varmaxWidth=828;varswiperLive=initSwiperLive(maxWidth);//自由影音Swiper$(window).resize(function(e){swiperLive.destroy();swiperLive=initSwiperLive(maxWidth);});});functioninitSwiperLive(maxWidth){vardirect,perView;if($(window).width()每週油價品項中油2024-05-27起台塑2024-05-27起9229.2(0)29.2(0)9530.7(0)30.7(0)9832.7(0)32.7(0)柴油26.7(-0.1)26.5(-0.1)$(function(){T=$(".ad_w300.C3");if(T.length>0){$.each(T,function(){ADRand=ADRandCeil(1,$("a",this).length)-1;$("a:eq("+ADRand+")",this).show();varadno=$("a:eq("+ADRand+")",this).attr("href");varadnoArray=newArray();adnoArray=adno.split("=");varadpv=$('');adpv.appendTo(this);$("a",this).each(function(){$(this).attr('href',$(this).attr('href')+'&device='+adDevice+'&source='+document.URL);});});}});統一發票113年03-04月113年01-02月獎別中獎號碼特別獎特獎頭獎747152523獎別中獎號碼特別獎特獎頭獎743047429領獎期間自113年06月06日起至113年09月05日止中獎號碼以財政部為準領獎期間自113年04月06日起至113年07月05日止中獎號碼以財政部為準開啟對獎功能請輸入對獎號碼沒中!下一個對獎操作說明:輸入碼,比對獎號倒數第三碼數字。輸入第二碼,比對獎號倒數第三碼及第二碼數字。輸入第三碼,比對獎號後三碼數字。系統僅提供獎號後三碼比對。使用滑鼠點數字鍵。$(function(){$('.foraward').hide();$.extend({right:function(s,n){if(ns.length){returns;}else{variLen=s.length;returns.substring(iLen,iLen-n);}},left:function(s,n){if(ns.length){returns;}else{returns.substring(0,n);}},mid:function(s,starnum,endnum){returns.substr(starnum,endnum);}});varitemData=[{"time":"113-03-04","data":[{"note":"\u7279\u5225\u734e","no":"","type":"A"},{"note":"\u7279\u734e","no":"","type":"A"},{"note":"\u982d\u734e","no":"","type":"B"},{"note":"\u982d\u734e","no":"","type":"B"},{"note":"\u982d\u734e","no":"","type":"B"}],"starttime":"113-06-06","overtime":"113-09-05"},{"time":"113-01-02","data":[{"note":"\u7279\u5225\u734e","no":"","type":"A"},{"note":"\u7279\u734e","no":"","type":"A"},{"note":"\u982d\u734e","no":"","type":"B"},{"note":"\u982d\u734e","no":"","type":"B"},{"note":"\u982d\u734e","no":"","type":"B"}],"starttime":"113-04-06","overtime":"113-07-05"}];varitem1=itemData[0]['data'];varitem2=itemData[1]['data'];varmk=[0,item1,item2];$('.invoice#tab.j-tab-n').on('click','a',function(){varidx=$.right($(this).attr('id'),1)-0*1;$('#lottery'+idx).parent('.tab-con-item').show().siblings().hide();$('#date_award'+idx).show().siblings('.date_award').hide();varstr='新:開啟對獎功能';if(idx==2){str='上次:開啟對獎功能';}$('#redemption').data('desc',str);data=mk[idx];chang_data();$input.val('');move.css({'margin-top':0});});$('.lottery-over-time-close').on('click',function(){$('.lottery-over-time').hide();});$("#lot1").show();vardata=mk[1];var$root=$('.foraward');var$input=$('.foraward.for_award_no');vartime;varmove=$('.lst_award_move');varisclose=true;$('.foraward_sw').on('click',function(){if(isclose){$(this).text('關閉對獎功能');isclose=false;$('.foraward').show().animate({opacity:1,height:485},500);load_init();}else{$(this).text('開啟對獎功能');isclose=true;$('.foraward').animate({opacity:0,height:1},500,function(){$('.foraward').hide();});}});//run_d4open();functionrun_d4open(){$('.foraward_sw').text('關閉對獎功能');isclose=false;$('.foraward').show().css({opacity:0.95,height:500});load_init();}$root.on('click.clear','.clear_text',function(){//清除文字$input.val('');move.css({'margin-top':0});}).on('click.input','.input_no',function(){//輸入文字add_no($(this).val());}).on('keydown','.for_award_no',function(e){//手動輸入varcode=e.which;});/*typedescA:完全符合B:{完全符合,中20萬元末7碼,中4萬元末6碼,中1萬元末5碼,中4千元末4碼,中1千元末3碼,中2百元}C:末3碼,中2百元*/functionchang_data(){varlst_award_no_items='';each_data(function(obj,idx){varno=(obj.no.length==8)?$.left(obj.no,5)+''+$.right(obj.no,3)+'':''+obj.no+'';$('.lst_award_no_item'+idx).html(''+obj.note+''+no);if($('.lst_award_no.lst_award_no_item'+idx).length

Seite? ˅:Liberty Times electronicBericht

Wenn ein Verstoß gegen die Website vorliegt, klicken Sie bitte auf MeldenBericht

Empfohlene Informationen

Empfohlene Seite