<!DOCTYPE html>
<html lang="zh-TW">
<head>
    <script>
    let cdnDate = '20260506135440';
    var pvDomain = 'pv.ltn.com.tw';
    var pvServer = 'pv.ltn.com.tw';
    var interstitialSlot;
    var staticSlot = false;
</script>
<script src="/Other/cache.ltn/js/c.js"></script>
    <base href="/Other/ec.ltn/index.html">
    <meta name='ltn:device' content='R'/>
    <title>網址錯誤 - 自由財經</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta property="og:site_name" name="application-name" content="自由時報電子報" />
<meta name="author" itemprop="author" content="自由時報電子報" />
<meta name="dcterms.rightsHolder" content="自由時報電子報" />
<meta name="copyright" content="自由時報電子報" />
<meta property="og:title" itemprop="name" content="網址錯誤 - 自由財經" />
<meta name="title" itemprop="headline" content="網址錯誤 - 自由財經" />
<meta name="keywords" content="自由財經,自由時報,自由時報電子報,Liberty Times Net,LTN" />
<meta name="news_keywords" itemprop="keywords" content="自由財經,自由時報,自由時報電子報,Liberty Times Net,LTN" />
<meta property="og:image" itemprop="image" content="https://ec.ltn.com.tw/assets/images/1200_ec.png" />
<meta property="og:image:type" content="image/png" />
<meta property="article:section" name="section" itemprop="articleSection" content="business" />
<meta name="description" itemprop="description" content="網址錯誤" />
<meta property="og:description" itemprop="description" content="網址錯誤" />
<meta property="og:url" itemprop="url" content="https://ec.ltn.com.tw/" />
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="140490219413038" />
<meta property="twitter:card" content="summary" />
<meta property="twitter:site" content="@ltntw" />
<meta property="twitter:creator" content="@ltntw" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<meta name="robots" content="max-image-preview:large" />
<link rel="shortcut icon" type="image/x-icon" sizes="192x192" href="/assets/images/logo24-finance.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/1200_ec.png" />
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/assets/images/1200_ec.png" />
<link rel="image_src" type="image/png" href="/assets/images/1200_ec.png" />
    <link rel="stylesheet" href="/Other/cache.ltn/css/reset.css">
    <link rel="stylesheet" href="/Other/ec.ltn/fund/foreign/area/assets/css/assets/css/ec_global.css">
    <script src="/Other/cache.ltn/js/jquery-3.4.1.min.js"></script>
    <script>
    var interstitial = 0;
    var userAgent = navigator.userAgent;
    var platform = navigator.platform;
    var 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) {
        var i;
        var isDevice = true;
        for (i = 0; i < device.length; i++) {
            isDevice = (platform.indexOf(device[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);
    var googletag = googletag || {}; googletag.cmd = googletag.cmd || [];
    googletag.cmd.push(function() {
        googletag.pubads().setTargeting("ltn_interstitial", [interstitial.toString()]);

    });
</script>
    <script src="/Other/ec.ltn/fund/foreign/area/assets/css/assets/js/all_rwd.min.js"></script>
    <script>
    var keywords = $('meta[name="keywords"]').attr('content');
    var keywordsArr = keywords.split(',');
    for (var i = 0; i < keywordsArr.length; i++) {
        keywordsArr[i] = keywordsArr[i].trim()
    }
    var googletag = googletag || {};
    googletag.cmd = googletag.cmd || [];

    googletag.cmd.push(function() {
        googletag.pubads().setTargeting("ltn_keywords", keywordsArr);
    });
</script>
    <!-- 快訊 -->
    <script src="/Other/ec.ltn/fund/foreign/area/assets/css/assets/js/jQuery.textSlider.min.js"></script>
    <!--右側欄固定-->
    <script src="/Other/ec.ltn/fund/foreign/area/assets/css/assets/js/sidebar_space.min.js"></script>
    <!--lazyload-->
    <script src="/Other/cache.ltn/js/lazyload.min.js"></script>
    <script src="/Other/cache.ltn/js/resize_imgs_ltn.min.js"></script>
    <!-- DV360 Floodlight Tag -->
<script async src="https://www.googletagmanager.com/gtag/js?id=DC-9530821"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'DC-9530821');
</script>
<!-- Floodlight Tag -->

<!-- Google Tag Manager -->
<script async>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P98PP75');</script>
<!-- End Google Tag Manager -->

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P98PP75"
                  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<!-- Google Analytics PageView -->
<script async>
    (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=/Other/ec.ltn/fund/foreign/area/assets/css/g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-31404335-1', 'auto');
    ga('require', 'displayfeatures');
    ga('require', 'linkid', 'linkid.js');
    ga('send', 'pageview');
</script>
<!-- Google Analytics PageView -->
    <script>
    var pvServer = "pv.ltn.com.tw";

    try {
        var domain=location.hostname; //ec.ltn.com.tw
        var a_group = "";
        var a_no = "";
        var type = "";
        //console.log(a_no);
        getScrNews(domain, type, a_group, a_no);
    }catch(e) {

    }
</script>
    <script>
    $(function () {
        // GA事件
        ga_ec_event();
    });
    // GA 點擊事件統計
    function ga_ec_event() {
        var base_root_org = 'http://ec.ltn.com.tw';

        var deviceDesc = $("meta[name='ltn:device']").attr('content') || 'U';
        /*取頁面說明*/
        var _pageDesc = $('.page-name').attr('data-desc');

        var pageDesc = deviceDesc+':'+_pageDesc;

        $(document.body).on('click.ga', '.boxInput', function(){
            var obj = $(this);
            var objDesc = obj.attr('data-desc');

            var par = obj.parents('.boxTitle');
            var boxDesc = par.attr('data-desc');

            var category = pageDesc;
            var action = boxDesc;
            var label = objDesc || ''; /*使用自定義說明*/

            ga_send_event(category,action,label);

        });

        $('.boxTitle').on('click.count', 'a', function(e){
            if(e.button!=0){return;}
            var 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 ltncookies_news(key, value, time_sec){
            var fn = ltncookies || function(){};
            fn(key, value, time_sec);
        }

        function setltncookies(area, item, elem){
            var 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){

            var objText = obj.text();
            var objDesc = obj.attr('data-desc');

            var par = obj.parents('.boxTitle');
            /*取區塊說明*/
            var boxDesc = par.attr('data-desc');
            /*是否用連結文字*/
            var useText = par.hasClass('boxText');

            var category = pageDesc;
            var action = boxDesc;
            var label = objDesc || ''; /*使用自定義說明*/
            if(useText && label==''){
                label = objText || ''; /*使用連結文字*/
            }

            var labelA = label;
            var idx = $('a', par).index(obj);
            if(label==''){
                /*記錄該區塊第幾則*/
                label = '第'+idx+'則';
            }

            var target = obj.attr('target');
            var href = '';
            var _href = obj.attr('href');

            if(_href){
                href = check_url(/Other/ec.ltn/fund/foreign/area/assets/css/_href/index.html);
            }

            var 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(/Other/ec.ltn/fund/foreign/area/assets/css/_url/index.html){
            if((/^http:/).test(_url)){
                return _url;
            }else if((/^https:/).test(_url)){
                return _url;
            }else if((/^\/\//).test(_url)){
                return _url;
            }else if((/^javascript/).test(_url)){
                return '';
            }else if((/^#/).test(_url)){
                return '';
            }else{
                var 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) {
            var redirectTriggered = false;

            ga_send_event_callback(category, title, label, function(){
                redirectTriggered = true;
                document.location = url;
            });

            setTimeout(function() {
                if (!redirectTriggered) {
                    document.location = url;
                }
            }, 1500);
        }
    };
</script>
    <!-- todayNews -->
    <script src="/Other/cache.ltn/js/hotNewsUrl.js"></script>
    <script>
// fetchHotNews() variables
let hotNewsSource = "BUSINESS";

// load ad popin
function loadPopInRecommanded() {
    var pa = document.createElement('script');
    pa.type = 'text/javascript';
    pa.charset = "utf-8";
    pa.async = true;
    pa.src = window.location.protocol + "//api.popin.cc/searchbox/ltn_ec.js";
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(pa, s);
};
// render hotNewsBottom section
function renderHotNewsBottom(data) {
    const list = document.querySelector('.todaynews');
        list.innerHTML = data.map((item, index) => `
        ${index === 2 ? '<li><div id="_popIn_recommend_ec_onlyad"></div></li>' : ''}
        <li>
            <a href="/Other/ec.ltn/fund/foreign/area/assets/css/${item.LTRT_Url}" class="small" title="${item.LTRT_Title}" data-desc="P:${index}:${item.LTRT_Title}">
                <div class="resize_imgs_ltn">
                    <img class="lazy_imgs_ltn" src="/fund/foreign/area/assets/css/assets/images/default.jpg" data-src="/Other/ec.ltn/fund/foreign/area/assets/css/${item.LTRT_SmallPhotoPath}" alt="${item.LTRT_Title}" title="${item.LTRT_Title}" data-desc="P:${index}:${item.LTRT_Title}">
                </div>
                <h3>
                    ${item.LTRT_Title}
                    ${item.LTRT_VideoFlag ? '<span class="video"></span>' : ''}
                </h3>
            </a>
        </li>
    `).join('');

    // 如果 recommendations 的長度小於等於 2，且 _popIn 還沒代入，代入 _popIn
    if (data.length <= 2 && !list.innerHTML.includes('_popIn_recommend_ec_onlyad')) {
        list.innerHTML += '<li><div id="_popIn_recommend_ec_onlyad"></div></li>';
    }
}
// render hotNewsRight section 
function renderHotNewsRight(data) {
    //check data, if no data remove dom
    const hotNewsHtml = document.querySelector('.hotnews');
        hotNewsHtml.insertAdjacentHTML('beforeend',
            data.map((item, index) => `
            <a class="boxText" title="${item.LTRT_Title}" 
                href="/Other/ec.ltn/fund/foreign/area/assets/css/${item.LTRT_Url}" 
                data-desc="T:${index}:${item.LTRT_Title}">
                ${item.LTRT_Title}
            </a>
        `).join('')
    );
}
// render hotNewsbottom Process
function renderHotNewsBottomProcess(data) {
    // render hotNewsBottom section
    renderHotNewsBottom(data);
    // load ad popin
    loadPopInRecommanded();
}
</script>    <!--更新時間:2026/05/06 13:54:40--><script>
let checkDevice = cookies_m.isPC() ? 'pc' : 'm';
</script>
    <script data-cfasync="false" src="/Other/cache.ltn/js/adpushup.min.js"></script>
<script src="/Other/cache.ltn/js/cache_all.min.js"></script>
<script>
//fetch hotNews data

/**
 * 戳機器學習api
 * @param array categoryAndType 分類跟文章類別[0]分類 [1]文章類別
 * @param int limit 出幾則
 * @param string section 渲染的位置/區塊
 */
function fetchHotNews(categoryAndType, limit, section) {
    let requestData = {
        "category": categoryAndType[0],
        "article_type": categoryAndType[1] ? categoryAndType[1] : "",
        "limit": limit,
        "rh_guid": "guid string",
        "utm_source": hotNewsSource,
        "utm_medium": section
    };

    return fetchNews(hotNewsUrl, requestData, 'recommendations');
};

/**
 * 取機器學習的相關新聞
 * @param string ltc_no 新聞編號
 * @param string ltc_group 新聞分類
 * @param int limit 出幾則
 * @param string utmSource 來源
 */
function fetchRelatedNews(ltc_no, ltc_group, limit, utmSource='')
{
    let requestData = {
        "ltc_no": ltc_no,
        "ltc_group": ltc_group,
        "limit": limit,
        "utm_source": utmSource,
        "utm_medium": "relatedNews"
    };
    return fetchNews(relatedNewsUrl, requestData, 'related_news');
}

// 相關新聞與熱門新聞共用fetch
function fetchNews(url, requestData, resultKey) {
    let urlWithGET = new URL(/Other/ec.ltn/fund/foreign/area/assets/css/url/index.html);
    urlWithGET.search = new URLSearchParams(requestData).toString();
    return fetch(urlWithGET, {
            headers: {
                "Content-Type": "application/json"
            }
        })
        .then(response => {
            if (!response.ok) {
                throw new Error('response error: ' + response.status);
            }
            return response.json();
        })
        .then(data => {
            if (data && data[resultKey]) {
                return data[resultKey];
            } else {
                return [];
            }
        })
        .catch(error => {
            console.error('fetch error:', error);
            return [];
        });
}

/**
 * 檢查originalMoreNews是否有ad並塞入FetchRelatedNews
 * data fetch回來的
 * originalMoreNews 原始的
 */
function insertAdToFetchRelatedNews(data, originalMoreNews)
{
    var hasAd = originalMoreNews.some(function(news) {
        return news.buy;
    });

    if (hasAd) {
        var adNews = originalMoreNews.filter(function(news) {
            return news.buy;
        });
        for (var i = 0; i < adNews.length; i++) {
            insertAdAtPosition(data, adNews[i], (3 + i * 3));
        }
    }
    return data;
}

/**
 * 在指定位置塞入廣告
 * data 整包資料
 * adNews 新聞
 * position 寫入位置
 */
function insertAdAtPosition(data, adNews, position)
{
    (data.length >= position) ? data.splice(position - 1, 0, adNews) : data.push(adNews);
    return data;
}

//if no data remove dom
function removeHotnewsDOM(sectionClass) {
    const elements = document.querySelectorAll('.' + sectionClass);
    elements.forEach(element => {
        element.remove();
    });
}
</script>
</head>
<script type='text/javascript'>
    var googletag = googletag || {};
    googletag.cmd = googletag.cmd || [];
    (function() {
        var gads = document.createElement('script');
        gads.async = true;
        gads.type = 'text/javascript';
        var useSSL = 'https:' == document.location.protocol;
        gads.src = (useSSL ? 'https:' : 'http:') +
            '//securepubads.g.doubleclick.net/tag/js/gpt.js';
        var node = document.getElementsByTagName('script')[0];
        node.parentNode.insertBefore(gads, node);
    })();
</script>

<script type='text/javascript'>
    googletag.cmd.push(function() {
        var dfp = null;
        var device = cookies_m.isPC() ? 'pc' : 'm';
        dfp = dfp[device] || [];
        for (var key in dfp) {
            // 蓋台廣告由cache_ads_h1.php控制
            if (key === 'H1') { continue; }
            if (dfp.hasOwnProperty(key)) {
                var ad = dfp[key];
                var adSize = eval(ad['size']);
                var bodyWidth = $('body').width();
                ad['size'] = [];
                for (var i in adSize) {
                    if (adSize[i][0] > bodyWidth) { continue; }
                    ad['size'].push(adSize[i]);
                }
                if (ad['collapse']) {
                    googletag.defineSlot(
                        ad['slot'],
                        ad['size'],
                        ad['div']
                    ).addService(googletag.pubads()).setCollapseEmptyDiv(true, false);
                } else {
                    googletag.defineSlot(
                        ad['slot'],
                        ad['size'],
                        ad['div']
                    ).addService(googletag.pubads()).setCollapseEmptyDiv(false, false);
                }
            }
        }

        googletag.pubads().addEventListener('slotRenderEnded', function(event) {
            // google回傳的廣告標籤(ex:ad-B1)
            var slotElementId = event.slot.getSlotElementId();

            // === 無廣告時要做的事 ===
            if (event.isEmpty) {
                // 記錄沒有廣告
                console.log('沒有'+slotElementId);
                // 移除廣告單元
                // $('#' + slotElementId).remove();
                return;
            }

            // === 有廣告時要做的事 ===
             // 移除 class suggest_default 樣式
            let adElement = document.getElementById(slotElementId);
            adElement && adElement.classList.remove("suggest_default");
            // 置底浮水印廣告，調整畫面不要蓋住footer
            if (slotElementId == 'ad-I1-bottom') {
                // 廣告的高度
                var ad_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('<i class="close"></i>');
                    $adI1Bottom.find('.close').click(function () {
                        $adI1Bottom.fadeOut(100);
                        $('.door-bottom-space').fadeOut(100);
                        $('#top').css('bottom', '100px');
                    });
                }
                return;
            }

            // 有IR1時顯示「請繼續往下閱讀...」
            if (slotElementId == 'ad-IR1' || slotElementId == 'ad-PCIR1') {
                // 顯示「請繼續往下閱讀...」(class="before_ir"在cache中寫的)
                $('p.before_ir').fadeIn(200);
                $('p.after_ir').fadeIn(200);
            }

            // 再檢查一次 ad-K1 ， 如果有 id ad-K10，把 ad-K1 刪除
            if (slotElementId == 'ad-K1') {
                let specialAdElement = document.getElementById('ad-K10');
                specialAdElement && specialAdElement.classList.remove("suggest_default");
            }
        });
        googletag.enableServices();
    });
</script>

<script>
    // 判斷裝置 並只呼叫相同裝置的廣告
    function displayDFP(div, dfpDevice) {
        var realDevice = cookies_m.isPC() ? 'pc' : 'm';
        if (dfpDevice !== realDevice) {
            $('#'+div).remove();
            return;
        }
        googletag.cmd.push(function() { googletag.display(div); });
    }
</script>
<body id="ec">
<script>
    // —— 1. 通用的 空閒 任務調度器 ——
    (function(global){
        // 存放所有待執行的任務
        const idleQueue = [];
        let scheduled = false;

        // 核心：在本次空閒時間內執行隊列中的任務
        function flushIdleTasks(deadline) {
            scheduled = false;
            // 只要還有空閒時間或已超時，且隊列不空，就繼續執行
            while ((deadline.timeRemaining() > 0 || deadline.didTimeout) && idleQueue.length) {
                const task = idleQueue.shift();
                try { task(); }
                catch(e){ console.error('空閒任務執行錯誤', e); }
            }
            // 如果還有任務未執行，安排下一輪
            if (idleQueue.length) scheduleFlush();
        }

        // 暴露到全局：用於添加新任務
        global.scheduleIdleTask = function(fn, options) {
            idleQueue.push(fn);
            if (!scheduled) {
                scheduled = true;
                if ('requestIdleCallback' in global) {
                    requestIdleCallback(flushIdleTasks, options);
                } else {
                    // fallback：在下一個畫面更新後或 50ms 後執行
                    setTimeout(() => {
                        // 構造一個模擬的 deadline 物件
                        flushIdleTasks({ timeRemaining: () => 0, didTimeout: true });
                    }, options && options.timeout || 50);
                }
            }
        };

        function scheduleFlush() {
            if ('requestIdleCallback' in global) {
                requestIdleCallback(flushIdleTasks);
            } else {
                setTimeout(() => flushIdleTasks({ timeRemaining: () => 0, didTimeout: true }), 50);
            }
        }
    })(window);
</script>
    <!--
Event snippet for LTN_Website_Audience on : Please do not remove.
Place this snippet on pages with events you’re tracking.
Creation date: 07/18/2019
-->
<script>
    //console.log('channel:ec', 'type:', 'no:');
    gtag('event', 'conversion', {
        'allow_custom_scripts': true,
        'u1': 'ec',
        'u2': '',
        'u3': '',
        'u4': '',
        'u5': '',
        'send_to': 'DC-9530821/invmedia/ltn_w0+standard'
    });
</script>
<noscript>
    <img src="https://ad.doubleclick.net/ddm/activity/src=/Other/ec.ltn/fund/foreign/area/assets/css/9530821;type=invmedia;cat=ltn_w0;u1=ec;u2=;u3=;u4=;u5=;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;ord=1/.html" width="1" height="1" alt=""/>
</noscript>
<!-- End of event snippet: Please do not remove -->

    <link rel="stylesheet" href="/Other/cache.ltn/css/rwd_head_tail.css" />

<!-- Header 開始 -->
<div class="ltnheader boxTitle boxText" data-desc="置頂選單">
    <div class="channel">
		        <a title="自由時報" href="/Other/www.ltn/index.html" data-desc="自由時報" class="logo">
			<img src="/images/ltn_logo.png" alt="自由時報" title="自由時報">
		</a>
		
        <!-- Header 選單 -->
        		<ul>
			<li><a title="即時" href="/Other/news.ltn/list/breakingnews/index.html" data-desc="即時">即時</a></li>
			<li><a title="熱門" href="/Other/news.ltn/list/breakingnews/popular/index.html" data-desc="熱門">熱門</a></li>
			<li><a title="政治" href="/Other/news.ltn/list/breakingnews/politics/index.html" data-desc="政治">政治</a></li>
			<li class="li_rich"><a title="財富自由" href="/Other/stock.ltn/index.html" data-desc="財富自由" target="_blank">財富自由</a></li>
			<li><a title="軍武" href="/Other/def.ltn/index.html" data-desc="軍武">軍武</a></li>
			<li><a title="社會" href="/Other/news.ltn/list/breakingnews/society/index.html" data-desc="社會">社會</a></li>
			<li><a title="生活" href="/Other/news.ltn/list/breakingnews/life/index.html" data-desc="生活">生活</a></li>
			<li><a title="健康" href="/Other/health.ltn/index.html" data-desc="健康">健康</a></li>
			<li><a title="國際" href="/Other/news.ltn/list/breakingnews/world/index.html" data-desc="國際">國際</a></li>
			<li><a title="地方" href="/Other/news.ltn/list/breakingnews/local/index.html" data-desc="地方">地方</a></li>
			<li><a title="蒐奇" href="/Other/news.ltn/list/breakingnews/novelty/index.html" data-desc="蒐奇">蒐奇</a></li>
			<li><a title="影音" href="/Other/video.ltn/index.html" data-desc="影音">影音</a></li>
			<li><a title="財經" href="/Other/ec.ltn/index.html" data-desc="財經">財經</a></li>
			<li><a title="娛樂" href="/Other/ent.ltn/index.html" data-desc="娛樂">娛樂</a></li>
			<li><a title="汽車" href="/Other/auto.ltn/index.html" data-desc="汽車">汽車</a></li>
			<li><a title="時尚" href="/Other/istyle.ltn/index.html" data-desc="時尚">時尚</a></li>
			<li><a title="體育" href="/Other/sports.ltn/index.html" data-desc="體育">體育</a></li>
			<li><a title="3C" href="/Other/3c.ltn/index.html" data-desc="3C">3 C</a></li>
			<li><a title="評論" href="/Other/talk.ltn/index.html" data-desc="評論">評論</a></li>
			<li><a title="藝文" href="/Other/art.ltn/index.html" data-desc="藝文">藝文</a></li>
			<li><a title="玩咖" href="/Other/playing.ltn/index.html" data-desc="玩咖">玩咖</a></li>
			<li><a title="食譜" href="/Other/food.ltn/index.html" data-desc="食譜">食譜</a></li>
			<li><a title="地產" href="/Other/estate.ltn/index.html" data-desc="地產">地產</a></li>
			<li><a title="求職" href="/Other/ltn_jobs.yes123/index.html" data-desc="求職" target="_blank">求職</a></li>
		</ul>
    </div>
</div>    <style>
    @charset "utf-8";
    
/* CSS Document */
#mobileMenu * { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; }
#mobileMenu{width:200px; /*width:100%;*/ height:100vh; overflow-y:scroll; overflow-x:hidden; transition:all 0.1s 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:200px; background-color:#5e5e5e; position:absolute; top:0; z-index:50; box-shadow:0px 0px 8px 3px rgba(0,0,0,0.3), -6px 0px 10px 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.icon_item, #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.icon_item:before {
    content:"";
    display:block;
    width:18px;
    height:20px;
    position:absolute;
    left:13px;
    top:15px;
}
#mobileMenu .ltn_home a.home:before, #mobileMenu .ltn_home a.icon_item:before { background-size: 18px; background-repeat: no-repeat; background-position: center 1px; }
#mobileMenu .ltn_home a.home:before { background-image: url(/Other/cache.ltn/images/icon/mobileBT_home.svg); }
#mobileMenu .ltn_home a.app:before { background-image: url(/Other/cache.ltn/images/icon/mobileBT_app.svg); }
#mobileMenu .ltn_home a.fb:before { background-image: url(/Other/cache.ltn/images/icon/mobileBT_fb.svg); }
#mobileMenu .ltn_home a.line:before { background-image: url(/Other/cache.ltn/images/icon/mobileBT_line.svg); }
#mobileMenu .ltn_home a.twitter:before { background-image: url(/Other/cache.ltn/images/icon/mobileBT_x.svg); }
#mobileMenu .ltn_home a.dot:before {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    left: 18px;
    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:30px; 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 10px 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:10px solid #000; overflow:hidden; padding:0;margin:0; }
#mobileMenu .channel .tit { height:25px; background-color:#000; color:#fff; font-size:0.85rem; line-height:25px; text-align:left; padding-left:10px; margin:0; }
#mobileMenu .channel a { padding-left:10px; 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:-200px; }
#mobileMenu .mobileMenu_left_close { left: 200px; }
#mobileMenu .mobileMenu_left_MM { left: 0; }

/* --- 右側選單 --- */
.mobileMenu_right { right:-200px; }
#mobileMenu .mobileMenu_right_close { right: 200px; }
#mobileMenu .mobileMenu_right_MM { right:0; }

/* --- 遮罩 --- */
.maskMM { background:rgba(255,255,255,0.7); width:100vw; height:100vh; position:fixed; z-index:3000; top:0; left:0; right:0; overflow:hidden; transition:all 0.1s 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:10px; top:0; background:url(/Other/cache.ltn/images/icon/g_menu.svg) 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:150px; z-index:55; background:url(/Other/cache.ltn/images/icon/g_close.svg) no-repeat center, #aaa; background-size:30px; -webkit-tap-highlight-color:rgba(0,0,0,0); }

/* --- rwd頻道需要 ---*/
@media screen and (min-width:800px){
    #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] */
</style>
<script src="/Other/cache.ltn/js/mobilemenu.js"></script>

<div id="mobileMenu" class="mobileMenu mobileMenu_right">
    <div class="close mobileMenu_right_close"></div>
    <div class="MM mobileMenu_right_MM">
        <!-- ltn首頁 -->
        <div class="ltn_home boxTitle boxText" data-desc="側邊選單:自由時報電子報">
            <a title="自由時報電子報" href="/Other/www.ltn/index.html" class="home">自由電子報</a>
        </div>
        <!-- 目前頻道選單 -->
                    <div class="channel partner boxTitle boxText" data-desc="側邊選單:自由財經">
                <div class="tit" data-desc="自由財經">自由財經</div>
                                        <a title="財經首頁" href="/Other/ec.ltn/index.html" class="half" target="_self">財經首頁</a>
                                            <a title="財經即時" href="/Other/ec.ltn/list/breakingnews/index.html" class="half" target="_self">財經即時</a>
                                            <a title="財經政策" href="/Other/ec.ltn/list/strategy/index.html" class="half" target="_self">財經政策</a>
                                            <a title="國際財經" href="/Other/ec.ltn/list/international/index.html" class="half" target="_self">國際財經</a>
                                            <a title="證券產業" href="/Other/ec.ltn/list/securities/index.html" class="half" target="_self">證券產業</a>
                                            <a title="房產資訊" href="/Other/ec.ltn/list/estate/index.html" class="half" target="_self">房產資訊</a>
                                            <a title="財經週報" href="/Other/ec.ltn/list/weeklybiz/index.html" class="half" target="_self">財經週報</a>
                                            <a title="基金查詢" href="/Other/ec.ltn/fund/index.html" class="half" target="_self">基金查詢</a>
                                            <a title="投資理財" href="/Other/ec.ltn/list/investment/index.html" class="half" target="_self">投資理財</a>
                                            <a title="粉絲團" href="https://www.facebook.com/ec.ltn.tw" class="half" target="_blank"><img width='16' height='16' src='/Other/cache.ltn/images/icon/mobileBT_fb.svg' alt='粉絲團' title='粉絲團'>粉絲團</a>
                                </div>
                <!-- 所有頻道選單 -->
        <div class="mainM boxTitle boxText" data-desc="側邊選單:頻道選單">
            <a title="自由影音" href="/Other/video.ltn/index.html" class="full">自由影音</a>
            <!-- 即時 -->
            <div class="ltnM boxText">
                <a title="即時" href="/Other/news.ltn/list/breakingnews/index.html">即時</a>
                <a title="熱門" href="/Other/news.ltn/list/breakingnews/popular/index.html">熱門</a>
                <a title="政治" href="/Other/news.ltn/list/breakingnews/politics/index.html">政治</a>
                <a title="軍武" href="/Other/def.ltn/index.html">軍武</a>
                <a title="社會" href="/Other/news.ltn/list/breakingnews/society/index.html">社會</a>
                <a title="生活" href="/Other/news.ltn/list/breakingnews/life/index.html">生活</a>
                <a title="健康" href="/Other/health.ltn/index.html">健康</a>
                <a title="國際" href="/Other/news.ltn/list/breakingnews/world/index.html">國際</a>
                <a title="地方" href="/Other/news.ltn/list/breakingnews/local/index.html">地方</a>
                <a title="蒐奇" href="/Other/news.ltn/list/breakingnews/novelty/index.html">蒐奇</a>
            </div>
            <!-- 頻道 -->
			<a title="財富自由" href="/Other/stock.ltn/index.html" class="full" target="_blank">財富自由</a>
            <a title="財經" href="/Other/ec.ltn/index.html">財經</a>
            <a title="娛樂" href="/Other/ent.ltn/index.html">娛樂</a>
            <a title="藝文" href="/Other/art.ltn/index.html">藝文</a>
            <a title="汽車" href="/Other/auto.ltn/index.html">汽車</a>
            <a title="時尚" href="/Other/istyle.ltn/index.html">時尚</a>
            <a title="體育" href="/Other/sports.ltn/index.html">體育</a>
            <a title="3C" href="/Other/3c.ltn/index.html">3 C</a>
            <a title="評論" href="/Other/talk.ltn/index.html">評論</a>
            <a title="玩咖" href="/Other/playing.ltn/index.html">玩咖</a>
            <a title="食譜" href="/Other/food.ltn/index.html">食譜</a>
            <a title="地產" href="/Other/estate.ltn/index.html">地產</a>
            <!--<a style="cursor: default;"></a>-->
            <a title="專區" href="/Other/features.ltn/index.html">專區</a>
            <a title="服務" href="/Other/service.ltn/index.html">服務</a>
        </div>
        <!-- 其他 -->
        <div class="ltn_home boxTitle boxText" data-desc="側邊選單:其他選單">

            <a title="自由時報電子報APP" href="/Other/service.ltn/app/index.html" target="_blank" class="icon_item app">自由電子報 APP</a>

            <a title="自由時報電子報粉絲團" href="https://www.facebook.com/m.ltn.tw" target="_blank" class="icon_item fb">自由電子報粉絲團</a>

            <a title="自由時報電子報Line" href="https://line.me/R/ti/p/%40ltnnews" target="_blank" class="icon_item line">自由電子報 Line</a>

            <a title="自由時報電子報Twitter" href="https://twitter.com/ltntw" target="_blank" class="icon_item twitter">自由電子報 X</a>

            <a title="熱門新訊" href="/Other/market.ltn/m/index.html" class="dot">熱門新訊</a>

            <div class="spacing"></div>
        </div>
    </div>
</div>
<div id="maskMM" class="maskMM"></div>

    <header class="ecHeader" >
    <div class="con boxTitle boxText" data-desc="置頂選單">
        <a title="財經" href="/Other/ec.ltn/index.html" class="ecLogo" data-desc="財經"><img title="自由財經" alt="自由財經" src="/fund/foreign/area/assets/css/assets/images/finance_logo.png"></a>
        <ul class="level1">
            <li><a title="財經即時" class="L1" href="/Other/ec.ltn/list/breakingnews/index.html" data-desc="財經即時">財經即時<div class="fs">Breakingnews</div></a></li>
            <li><a title="財經政策" class="L1" href="/Other/ec.ltn/list/strategy/index.html" data-desc="財經政策">財經政策<div class="fs">Strategy</div></a></li>
            <li><a title="影音專區" class="L1" href="/Other/ec.ltn/video/index.html" data-desc="影音專區">影音專區<div class="fs">video</div></a></li>
            <li><a title="國際財經" class="L1" href="/Other/ec.ltn/list/international/index.html" data-desc="國際財經">國際財經<div class="fs">International</div></a></li>
            <li><a title="證券產業" class="L1" href="/Other/ec.ltn/list/securities/index.html" data-desc="證券產業">證券產業<div class="fs">Securities</div></a></li>
            <li><a title="房產資訊" class="L1" href="/Other/ec.ltn/list/estate/index.html" data-desc="房產資訊">房產資訊<div class="fs">Estate</div></a></li>
            <li><a title="財經週報" class="L1" href="/Other/ec.ltn/list/weeklybiz/index.html" data-desc="財經週報">財經週報<div class="fs">Weeklybiz</div></a></li>
            <li><a title="基金查詢" class="L1" href="/Other/ec.ltn/fund/index.html" data-desc="基金查詢">基金查詢<div class="fs">Fund</div></a></li>
            <li><a title="投資理財" class="L1" href="/Other/ec.ltn/list/investment/index.html" data-desc="投資理財">投資理財<div class="fs">Investment</div></a></li>
        </ul>

        <div class="nav_bar"></div>
        <a title="搜尋" id="search_btn" class="Hsearch" data-desc="搜尋"></a>
        <a title="自由財經Youtube" href="https://www.youtube.com/channel/UCdm3nYbbJ3gcbbOWhGDNqhw" class="yt" data-desc="自由財經Youtube"></a>
        <a title="自由財經粉絲專頁" href="https://www.facebook.com/ec.ltn.tw/" class="ec_fb" data-desc="自由財經粉絲專頁"></a>

        <!-- 搜尋 -->
        <div class="mask_search" data-desc="搜尋">
            <div class="mask"></div>
            <div class="mask_content">
                <div class="channel_search_close"></div>
                <p class="formTit">新聞查詢</p>
                <form class="form-search" id="searchb" action="/Other/ec.ltn/search/index.html" name="form1" method="get">
                    <input type="text" name="keyword" placeholder="輸入關鍵字" class="boxText" data-desc="新聞查詢:輸入關鍵字">
                    <button class="boxInput" type="submit" data-desc="Search">Search</button>
                </form>
                <p class="formTit">基金查詢</p>
                <form class="form_fund" name="" method="get" action="/Other/ec.ltn/fund/search/index.html">
                    <input type="text" name="fund_code" placeholder="請輸入基金代碼" class="boxText" data-desc="基金查詢:基金代碼">
                    <button class="boxInput" type="submit" data-desc="Search"/>Search</button>
                </form>
                <form class="form_fund" name="" method="get" action="/Other/ec.ltn/fund/search/index.html">
                    <input type="text" name="keyword" placeholder="請輸入基金名稱或關鍵字" class="boxText" data-desc="基金查詢:關鍵字">
                    <button class="boxInput" type="submit" data-desc="Search"/>Search</button>
                </form>
            </div>
        </div>
    </div>
</header>

    <!-- 巨橫幅廣告 -->
    <div class="suggest">
            </div>

    <link rel="stylesheet" href="/Other/ec.ltn/assets/css/ec_content.css">

<span class="page-name" data-desc="404頁面"></span>

<!-- 內文頁 -->
<div class="content">
	<!-- 940 左側欄 開始 -->
	<section class="content940">
		<div class="breadcrumbs boxTitle" data-desc="麵包屑">
			<a href="/Other/ec.ltn/index.html" class="boxText" data-desc="財經" title="財經">財經</a><span>></span><a href="/Other/ec.ltn/fund/foreign/area/assets/css/ec_global.css" title="網址錯誤" data-desc="網址錯誤" class="boxText breadcrumbSort">網址錯誤</a>
		</div>
		<link rel="stylesheet" href="/Other/cache.ltn/css/rwd_404page.css" />

<!-- error404page -->
<section class="error-box">
    <div class="error-textbox">
        <span class="error-text">Oops!</span>
        <span class="error-info">Sorry,the page not found.<br>很抱歉！頁面被移除或者是不存在。</span>
    </div>
    <div class="error-picarea">
        <img src="/images/ltn_404.gif" alt="找不到網頁">

        <div class="input-holder" role="search">
        <input type="text" placeholder="請輸入關鍵字" aria-label="input-search" id="search404input">
        <button class="go" id="search404btn"></button>
        </div>
    </div>
</section>

<script>
    const search404input = document.querySelector('#search404input');
    const search404btn = document.querySelector('#search404btn');

    function performSearch() {
        const keyword = search404input.value.trim();
        if (keyword) {
            window.location.href = `https://search.ltn.com.tw/list?keyword=${keyword}`;
        }
    }

    search404input.addEventListener('keypress', function(event) {
        if (event.key === 'Enter') {
            performSearch();
        }
    });
    search404btn.addEventListener('click', performSearch);
</script>
		
	</section>
</div>

    <div class="top boxTitle" id="top" data-desc="top"><a href="javascript:void(0);" data-desc="top" title="top"></a></div>

    
<div class="footer_sort boxTitle" data-desc="底部選單">
    <a href="/Other/ec.ltn/list/breakingnews/index.html" title="財經即時" data-desc="財經即時">財經即時</a>
    <a href="/Other/ec.ltn/list/strategy/index.html" title="財經政策" data-desc="財經政策">財經政策</a>
    <a href="/Other/ec.ltn/list/international/index.html" title="國際財經" data-desc="國際財經">國際財經</a>
    <a href="/Other/ec.ltn/list/securities/index.html" title="證券產業" data-desc="證券產業">證券產業</a>
    <br>
    <a href="/Other/ec.ltn/list/estate/index.html" title="房產資訊" data-desc="房產資訊">房產資訊</a>
    <a href="/Other/ec.ltn/list/weeklybiz/index.html" title="財經週報" data-desc="財經週報">財經週報</a>
    <a href="/Other/ec.ltn/fund/index.html" title="基金查詢" data-desc="基金查詢">基金查詢</a>
    <a href="/Other/ec.ltn/list/investment/index.html" title="投資理財" data-desc="投資理財">投資理財</a>
</div>

<footer class="ec_footer boxTitle" data-desc="底部選單">
    <a title="自由時報" href="/Other/www.ltn/index.html" data-desc="自由時報"><img title="自由時報" alt="自由時報" src="/images/logo_foot.png"></a>
    <p>自由時報版權所有不得轉載 <span>© 2026 The Liberty Times. All Rights Reserved.<span></p>
</footer>

    <!-- 浮水印廣告 -->
    <div class="suggest">
                <div class='door-bottom door-bottom-space' style="display:none;"></div>
    </div>
    <script src="/Other/ec.ltn/fund/foreign/area/assets/css/assets/js/rwdImageLazyload.min.js"></script>
<script src="/Other/cache.ltn/js/getTargetTime.js"></script>
<script type='text/javascript'><!--//<![CDATA[
    const thisTimeZoneDate = new Date();
    const inTheTimeZone = (function () {
        const checkTimeZone = [-4, -5, -6, -7, -8];
        // ../cache/js/getTargetTime.js:getDiffTime() 兩地相差時間
        for (let key in checkTimeZone) {
            if (getDiffTime(thisTimeZoneDate, checkTimeZone[key]) === 0) {
                return true;
            }
        }
        return false;
    })();

    function checkSpecificDate() {
        const today = new Date();
        const year = today.getFullYear();
        const month = today.getMonth() + 1;
        const date = today.getDate();
        return (year === 2023 && month === 10 && date >= 1 && date <= 31);
    }

    const show_amg_footer = (function () {
        const AMGHostName = location.hostname.toLowerCase().replace(".ltn.com.tw", "");
        const AMGOpenTime = {
            'www':[
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'news': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'auto': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'sports': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            '3c': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'ec': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'features': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'istyle': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'art': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'food': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'estate': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'ent': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'health': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
            'playing': [
                {'start': '2020-09-28T00:00:00', 'end': '2220-09-28T00:00:00'}
            ],
        };
        //AMGOpenTime沒設定的頻道回傳false防測試機報錯
        if (AMGOpenTime[AMGHostName] != 'undefined') {
            const AMGNowTime = thisTimeZoneDate.getFullYear() + "-" + ('0' + (thisTimeZoneDate.getMonth() + 1)).substr(-2, 2) + "-" + ('0' + thisTimeZoneDate.getDate()).substr(-2, 2) + "T" + ('0' + thisTimeZoneDate.getHours()).substr(-2, 2) + ":" + ('0' + thisTimeZoneDate.getMinutes()).substr(-2, 2) + ":" + ('0' + thisTimeZoneDate.getSeconds()).substr(-2, 2);
            let openTime = AMGOpenTime[AMGHostName];
            for (let key in openTime) {
                let start = openTime[key]['start'];
                let end = openTime[key]['end'];
                if (AMGNowTime >= start && AMGNowTime <= end) {
                    return true;
                }
            }
        }
        return false;
    })();

    const get_amg_zoneid = (function () {
        const AMGHostName = location.hostname.toLowerCase().replace(".ltn.com.tw", "");
        switch (AMGHostName) {
            case 'health':
            case 'ent':
            case 'istyle':
            case 'art':
            case 'playing':
            case 'food':
                return '562';
            case 'ec':
            case 'estate':
            case 'auto':
            case 'sports':
            case '3c':
                return '680';
            default:
                return '96';
        }
    })();

    const shiftvValue = (function () {
        const AMGHostName = location.hostname.toLowerCase().replace(".ltn.com.tw", "");
        switch (AMGHostName) {
            case 'health':
            case 'ent':
            case 'istyle':
            case 'art':
            case 'playing':
            case 'food':
                return '22';
            case 'ec':
            case 'estate':
            case 'auto':
            case 'sports':
            case '3c':
            default:
                return '15';
        }
    })();

    if (inTheTimeZone && show_amg_footer) {
        let ox_u = 'https://amgs5.com/AS/www/delivery/al.php?zoneid=' + get_amg_zoneid + '&layerstyle=simple&align=center&valign=bottom&padding=2&padding=2&shifth=0&shiftv=' + shiftvValue + '&closebutton=t&backcolor=FFFFFF&bordercolor=000000';

        if (document.context) ox_u += '&context=' + escape(document.context);
        document.write("<scr"+"ipt type='text/javascript' src='" + ox_u + "'></scr"+"ipt>");
    }
//]]>--></script>
<script>
    let webPushOrigin = 'https://www.ltn.com.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.com.tw/assets/images/all/ltn.png');
        softPushNotificationImg.setAttribute('alt', '自由時報');
        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) ? 7 * 24 * 60 * 60 * 1000 : extension;
        expires.setTime(expires.getTime() + extension);
        let ti = 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('www.webPush.ask', 'ask', '', '1');
        $(".softPush_notification").remove();
    });

    $(document).on("click",".softPush_refuse",function(){
        $(".softPush_notification").remove();
        getScrNews('www.webPush.ask', 'ask', '', '0');
        setSoftPushCookie();
    });
</script>
<style>
    /******************** 瀏覽器推播通知 ********************/
    .softPush_notification { width: 400px; height: 170px; padding: 20px; border-radius: 10px; position: fixed; left: 50%; margin-left: -200px; top: 28%;  background: #fbfbfb; box-shadow: 0px 0px 30px 6px rgb(0 0 0 / 40%); z-index:  300; text-align: justify;}
    .softPush_notification img { width: 80px; height: auto; float: left; margin-right: 10px; }
    .softPush_notification span.softPush_word { margin-bottom: 10px; font-size: 18px; line-height: 30px; 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: .2s linear;}
    .softPush_notification button.softPush_refuse { position: absolute; right: 80px; bottom: 20px; color: #8e8e8e; transition: .2s linear;}
    .softPush_notification button.softPush_confirm:hover { background: #c58901; }
    .softPush_notification button.softPush_refuse:hover { background: #dedede; }

    @media screen and (max-width:500px) {
        /* 瀏覽器推播通知 */
        .softPush_notification {
            width: 280px;
            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 12px;
            font-size: 12px;
        }

        .softPush_notification button.softPush_confirm,
        .softPush_notification button.softPush_refuse {
            bottom: 12px;
        }

        .softPush_notification button.softPush_confirm {
            right: 16px;
        }
    }
</style>
<script src="/Other/cache.ltn/js/initAviviD.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
    initAviviD();
});
</script>
</body>
</html>
