It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: http://www.taipeitimes.com/News/index.rss

  1. <!doctype html>
  2. <html>
  3. <head>
  4.    <base href="https://www.taipeitimes.com/">
  5.    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
  7.    <title>Page Not Found - Taipei Times</title>
  8. <meta property="og:title" content="Page Not Found - Taipei Times" />
  9. <meta name="keywords" content="台北時報,The Taipei Times" />
  10. <meta name="news_keywords" content="台北時報,The Taipei Times" />
  11. <meta property="og:image" content="https://www.taipeitimes.com/assets/images/TaipeiTimesLogo-1200X1200px_new.jpg" />
  12. <meta name="description" content="Bringing Taiwan to the World and the World to Taiwan" />
  13. <meta property="og:description" content="Bringing Taiwan to the World and the World to Taiwan" />
  14. <meta property="og:url" content="https://www.taipeitimes.com/News/index.rss" />
  15. <link rel="image_src" type="images/jpeg" href="https://www.taipeitimes.com/assets/images/TaipeiTimesLogo-1200X1200px_new.jpg" />
  16.    <meta name='ltn:device' content='R'/>
  17.    <meta property="fb:app_id" content="204610739643846">
  18.    <meta property="fb:pages" content="210998785327" />
  19.    <link rel="apple-touch-icon" href="https://www.taipeitimes.com/assets/images/TT_web_icon-mobile.jpg" />
  20.    <link rel="apple-touch-icon-precomposed" href="https://www.taipeitimes.com/assets/images/TT_web_icon-mobile.jpg" />
  21.    <link rel="shortcut icon" href="assets/images/taipeitimes.ico">
  22.    <link rel="stylesheet" type="text/css" href="assets/css/reset.css" />
  23.    <link rel="stylesheet" type="text/css" href="assets/css/style.css?2024111" />
  24.    <link rel="stylesheet" type="text/css" href="assets/css/animate.css" />
  25.    <link rel="stylesheet" type="text/css" href="assets/css/daterangepicker.css" />
  26.    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Gelasio:400,700&display=swap">
  27.    <script src="assets/js/jquery.min.js"></script>
  28.    <script src="assets/js/jquery.sticky.js"></script>
  29.    <script>
  30.        if ( /Android|webOS|iPhone|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
  31.  
  32.        } else {
  33.            $(window).load(function(){
  34.                var menuEl = '.menu';
  35.                wrapMenu(menuEl);
  36.                $(window).resize(function() {
  37.                    wrapMenu(menuEl);
  38.                });
  39.            });
  40.  
  41.            function wrapMenu(el)
  42.            {
  43.                if ($(window).innerWidth(true)[0].innerWidth > 760) {
  44.                    $(el).sticky({topSpacing: 0});
  45.                } else {
  46.                    $(el).unstick();
  47.                }
  48.            }
  49.        }
  50.    </script>
  51.    <script src="assets/js/header.js"></script>
  52.    <script src="assets/js/moment.min.js"></script>
  53.    <script src="assets/js/daterangepicker.js"></script>
  54.    <script src="assets/js/all.js?20200312"></script>
  55.    <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
  56. <script>
  57.    if(window.outerWidth <= 1100) { // 只有手機顯示
  58.        window.googletag = window.googletag || {cmd: []};
  59.        googletag.cmd.push(function() {
  60.                interstitialSlot = googletag.defineOutOfPageSlot(
  61.                    '/21202031/TT-mobile-H2',
  62.                    googletag.enums.OutOfPageFormat.INTERSTITIAL);
  63.                if (interstitialSlot) interstitialSlot.addService(googletag.pubads());
  64.                googletag.enableServices();
  65.            }
  66.        );
  67.        googletag.cmd.push(function() {
  68.            googletag.pubads().addEventListener('slotRenderEnded', function(event) {
  69.                if (interstitialSlot === event.slot) {
  70.                    staticSlot = true;
  71.                    console.log('staticSlot = true');
  72.                }
  73.            });
  74.        });
  75.        $(function(){
  76.            googletag.cmd.push(function() {
  77.                // Ensure the first call to display comes after static ad slot
  78.                // divs are defined.
  79.                googletag.display(interstitialSlot);
  80.            });
  81.        });
  82.    }
  83. </script>
  84.            <script src="assets/js/interstitial.js?20200316"></script>
  85.        <script type='text/javascript'>
  86.    window.googletag = window.googletag || {cmd: []};
  87.    (function() {
  88.        var gads = document.createElement('script');
  89.        gads.async = true;
  90.        gads.type = 'text/javascript';
  91.        var useSSL = 'https:' == document.location.protocol;
  92.        gads.src = (useSSL ? 'https:' : 'http:') +
  93.            '//securepubads.g.doubleclick.net/tag/js/gpt.js';
  94.        var node = document.getElementsByTagName('script')[0];
  95.        node.parentNode.insertBefore(gads, node);
  96.    })();
  97. </script>
  98. <script type='text/javascript'>
  99.    googletag.cmd.push(function() {
  100.        var dfp = {"pc":{"K1":{"slot":"\/21202031\/TT-sub-P-K1","size":"[[1260, 250], [1260, 90], [1260, 160], [970, 250], [970, 90], [970, 160]]","div":"ad-K1","class":"web ad_mg_t","collapse":1},"K2":{"slot":"\/21202031\/TT-sub-P-K2","size":"[[1, 1], [728, 90]]","div":"ad-K2","class":"web ad_mg_b","collapse":1},"BD1":{"slot":"\/21202031\/TT-sub-P-BD1","size":"[[300, 250], [300, 600]]","div":"ad-BD1","class":"web ad_mg_b","collapse":1},"BD2":{"slot":"\/21202031\/TT-sub-P-BD2","size":"[[300, 250], [300, 600]]","div":"ad-BD2","class":"web ad_mg_b","collapse":1}},"m":{"B1-ATF":{"slot":"\/21202031\/TT-mobile-sub-P-B1-ATF","size":"[[1, 1], 'fluid', [300, 250], [336, 280]]","div":"ad-B1-ATF","class":"mob ad_mg_b","collapse":1},"B2":{"slot":"\/21202031\/TT-mobile-sub-P-B2","size":"[[336, 280], [1, 1], [300, 250], [320, 480], 'fluid']","div":"ad-B2","class":"mob ad_pd_t ad_bd_t ad_mg_b","collapse":1},"IR2":{"slot":"\/21202031\/TT-mobile-sub-P-IR2","size":"[[336, 280], [1, 1], [300, 250], [320, 480], 'fluid']","div":"ad-IR2","class":"mob ad_mg_b","collapse":1},"I1-bottom":{"slot":"\/21202031\/TT-mobile-sub-P-I1-bottom","size":"['fluid', [1, 1], [320, 100], [320, 50]]","div":"ad-I1-bottom","class":"mob door-bottom door-bottom-head","collapse":1},"H1":{"slot":"\/21202031\/TT-mobile-H1","size":"[320, 480]","div":"ad-H1","class":"mob","collapse":1}}};
  101.        var device = cookies_m.isPC() ? 'pc' : 'm';
  102.        dfp = dfp[device] || [];
  103.        for (var key in dfp) {
  104.            if (dfp.hasOwnProperty(key)) {
  105.                var ad = dfp[key];
  106.                var adSize = eval(ad['size']);
  107.                var bodyWidth = $('body').width();
  108.                ad['size'] = [];
  109.                for (var i in adSize) {
  110.                    if (adSize[i][0] > bodyWidth) { continue; }
  111.                    ad['size'].push(adSize[i]);
  112.                }
  113.                googletag.defineSlot(
  114.                    ad['slot'],
  115.                    ad['size'],
  116.                    ad['div']
  117.                ).addService(googletag.pubads()).setCollapseEmptyDiv(true, true);
  118.            }
  119.        }
  120.  
  121.        googletag.pubads().addEventListener('slotRenderEnded', function(event) {
  122.            // google回傳的廣告標籤(ex:ad-B1)
  123.            var slotElementId = event.slot.getSlotElementId();
  124.  
  125.            // === 無廣告時要做的事 ===
  126.            if (event.isEmpty) {
  127.                // 記錄沒有廣告
  128.                console.log('沒有'+slotElementId);
  129.                // 移除廣告單元
  130.                // $('#' + slotElementId).remove();
  131.                return;
  132.            }
  133.  
  134.            if (slotElementId == 'ad-H1') {
  135.                $('.splash').show();
  136.                window.hideClose = function() {$('.banner_close').remove();};
  137.                window.closeAD = function() {$('.splash').remove();};
  138.  
  139.                $(document).on("closeAD", function() {
  140.                    window.closeAD();
  141.                }).on("hideClose", function() {
  142.                    window.hideClose();
  143.                });
  144.  
  145.                $(document).on('click', '.splash, .banner_close', function(e){
  146.                    e.preventDefault();
  147.                    e.stopPropagation();
  148.                    window.closeAD();
  149.                });
  150.                setTimeout(function(){$('.banner_close').show();},2000);
  151.                if( window.innerHeight > 460 ){
  152.                    var paddingTop = (( window.innerHeight-460 )/2-10);
  153.                    $('.splash').css("padding-top", paddingTop).show();
  154.                    $('.banner_close').css("top", paddingTop);
  155.                }
  156.            }
  157.  
  158.            // === 有廣告時要做的事 ===
  159.            // 置底浮水印廣告,調整畫面不要蓋住footer
  160.            if (slotElementId == 'ad-I1-bottom') {
  161.                // 廣告的高度
  162.                var ad_height = event.size[1];
  163.                var $adI1Bottom = $('#ad-I1-bottom');
  164.                // 調整廣告位置與footer墊底高度
  165.                $adI1Bottom.css('height', ad_height + 'px');
  166.                $('.door-bottom-space').show().css('height', ad_height + 'px');
  167.  
  168.                // 顯示關閉按鈕並綁定關閉事件
  169.                if (ad_height > 50) {
  170.                    // 調整Top按鈕高度
  171.                    // $('#top').css('bottom', (ad_height + 20) + 'px');
  172.                    // 監聽關閉按鈕
  173.                    $adI1Bottom.prepend('<i class="close"></i>');
  174.                    $adI1Bottom.find('.close').click(function () {
  175.                        $adI1Bottom.fadeOut(100);
  176.                        $('.door-bottom-space').fadeOut(100);
  177.                        $('#top').css('bottom', '100px');
  178.                    });
  179.                }
  180.                return;
  181.            }
  182.  
  183.            // 有IR1時顯示「請繼續往下閱讀...」
  184.            if (slotElementId == 'ad-IR1') {
  185.                // 顯示「請繼續往下閱讀...」(class="before_ir"在cache中寫的)
  186.                $('p.before_ir').fadeIn(200);
  187.                $('p.after_ir').fadeIn(200);
  188.            }
  189.        });
  190.        googletag.enableServices();
  191.    });
  192. </script>
  193.  
  194. <script>
  195.    // 判斷裝置 並只呼叫相同裝置的廣告
  196.    function displayDFP(div, dfpDevice) {
  197.        var realDevice = cookies_m.isPC() ? 'pc' : 'm';
  198.        if (dfpDevice !== realDevice) {
  199.            $('#'+div).remove();
  200.            return;
  201.        }
  202.        googletag.cmd.push(function() { googletag.display(div); });
  203.    }
  204. </script>
  205.    </head>
  206.  
  207. <body>
  208.  
  209. <div class="logobar boxTitle boxText" data-desc="LOGO">
  210.    <ul>
  211.        <li>
  212.            <a data-desc="TAIPEI TIMES" href="https://www.taipeitimes.com/"><img src="assets/images/logo1_forfooter.gif" width="100%" class="slogo"></a>
  213.            <br>
  214.        </li>
  215.        <li>
  216.            <a data-desc="TAIPEI TIMES" href="https://www.taipeitimes.com/"><img src="assets/images/logo.gif" width="100%" class="wlogo"></a>
  217.        </li>
  218.        <li><div class="micon" id="mopen"></div><div class="micon mc" id="mclose"></div></li>
  219.    </ul>
  220. </div>
  221. <div class="hhbox"></div>
  222. <div class="menu boxTitle boxText" data-desc="頭部選單">
  223.    <div class="nav">
  224.        <ul>
  225.            <li><a href="https://www.taipeitimes.com/" data-desc="TAIPEI TIMES"><div><i><img src="assets/images/home.png" width="18" class="iconimg4"></i></div></a></li>
  226.                        <li><a href="https://www.taipeitimes.com/News/front"><div>Front Page</div></a></li>
  227.                        <li><a href="https://www.taipeitimes.com/News/taiwan"><div>Taiwan News</div></a></li>
  228.                        <li><a href="https://www.taipeitimes.com/News/biz"><div>Business</div></a></li>
  229.                        <li><a href="https://www.taipeitimes.com/News/editorials"><div>Editorial & Opinion</div></a></li>
  230.                        <li><a href="https://www.taipeitimes.com/News/sport"><div>Sports</div></a></li>
  231.                        <li><a href="https://www.taipeitimes.com/News/world"><div>World News</div></a></li>
  232.                        <li><a href="https://www.taipeitimes.com/News/feat"><div>Features</div></a></li>
  233.                        <li><a href="https://www.taipeitimes.com/News/lang"><div>Bilingual Pages</div></a></li>
  234.                        <li><div class="opense">Search<i><img src="assets/images/search2.png" width="16" class="iconimg2"></i></div><div class="closese">Search<i><img src="assets/images/times.png" width="16" class="iconimg3"></i></div></li>
  235.        </ul>
  236.    </div>
  237.    <div class="search boxTitle boxText" data-desc="搜尋區塊">
  238.        <ul>
  239.            <li>
  240.                <select class="navs">
  241.                    <option class="boxInput" value="all" data-desc="分類: All" selected>All</option>
  242.                                            <option class="boxInput" value="front" data-desc="分類: front"  >Front Page</option>
  243.                                            <option class="boxInput" value="taiwan" data-desc="分類: taiwan"  >Taiwan News</option>
  244.                                            <option class="boxInput" value="biz" data-desc="分類: biz"  >Business</option>
  245.                                            <option class="boxInput" value="editorials" data-desc="分類: editorials"  >Editorial & Opinion</option>
  246.                                            <option class="boxInput" value="sport" data-desc="分類: sport"  >Sports</option>
  247.                                            <option class="boxInput" value="world" data-desc="分類: world"  >World News</option>
  248.                                            <option class="boxInput" value="feat" data-desc="分類: feat"  >Features</option>
  249.                                            <option class="boxInput" value="lang" data-desc="分類: lang"  >Bilingual Pages</option>
  250.                                    </select>
  251.            </li>
  252.            <li><div id="reportrange" class="date boxInput" data-desc="時間範圍" data-start=""  data-end=""><span></span></div></li>
  253.            <li><input type="text" class="boxInput news " data-desc="關鍵字輸入框" value=""></li>
  254.            <li><div class="gose" data-base-url="https://www.taipeitimes.com/">GO</div></li>
  255.        </ul>
  256.    </div>
  257.    <div class="msbg"></div>
  258. </div>
  259. <div class="meun_bg"></div>
  260.  
  261.        <!-- /21202031/TT-sub-P-K1 -->
  262.        <div id="ad-K1"
  263.         class="boxTitle ad pc web ad_mg_t"
  264.         data-desc="廣告ad-K1"
  265.         style="text-align: center; display:none;">
  266.        <script> displayDFP('ad-K1', 'pc'); </script>
  267.    </div>
  268.    
  269. <div class="page spage">
  270.            <!-- /21202031/TT-mobile-sub-P-B1-ATF -->
  271.        <div id="ad-B1-ATF"
  272.         class="boxTitle ad m mob ad_mg_b"
  273.         data-desc="廣告ad-B1-ATF"
  274.         style="text-align: center; display:none;">
  275.        <script> displayDFP('ad-B1-ATF', 'm'); </script>
  276.    </div>
  277.        <h6>Sat, Apr 27, 2024</h6>
  278.    <ul>
  279.        <li id="left_blake">
  280.            <div class="oops">
  281.                <img src="assets/images/404.png" width="100%">
  282.                <h5>Page Not Found</h5>
  283.                <p>We can’t find the page you're looking for.<br>If you typed the URL into your browser,<br>check that you entered it correctly.</p>
  284.                <ul class="gohome404">
  285.                    <li><a href="https://www.taipeitimes.com/"><div>Home</div></a></li>
  286.                </ul>
  287.            </div>
  288.                    <!-- /21202031/TT-sub-P-K2 -->
  289.        <div id="ad-K2"
  290.         class="boxTitle ad pc web ad_mg_b"
  291.         data-desc="廣告ad-K2"
  292.         style="text-align: center; display:none;">
  293.        <script> displayDFP('ad-K2', 'pc'); </script>
  294.    </div>
  295.                        <!-- /21202031/TT-mobile-sub-P-IR2 -->
  296.        <div id="ad-IR2"
  297.         class="boxTitle ad m mob ad_mg_b"
  298.         data-desc="廣告ad-IR2"
  299.         style="text-align: center; display:none;">
  300.        <script> displayDFP('ad-IR2', 'm'); </script>
  301.    </div>
  302.            </li>
  303.        <li>
  304.            <div id="right_blake">
  305.                        <!-- /21202031/TT-sub-P-BD1 -->
  306.        <div id="ad-BD1"
  307.         class="boxTitle ad pc web ad_mg_b"
  308.         data-desc="廣告ad-BD1"
  309.         style="text-align: center; display:none;">
  310.        <script> displayDFP('ad-BD1', 'pc'); </script>
  311.    </div>
  312.    
  313.                <div class="popular boxTitle boxText" id="read" data-desc="Most Popular">
  314.    <a href="https://www.taipeitimes.com/News/Mostread"><h1>Most Popular<i><img src="assets/images/right.png" width="10" class="iconimg2"></i></h1></a>
  315.    <ul>
  316.                    <li><a href="https://www.taipeitimes.com/News/front/archives/2024/04/23/2003816817" data-desc="T:0:Weather front, quakes hit Taiwan"><div class="no">1</div><h5 class="bf3">Weather front, quakes hit Taiwan</h5></a></li>
  317.                    <li><a href="https://www.taipeitimes.com/News/front/archives/2024/04/24/2003816862" data-desc="T:1:Aftershocks could last for a year: CWA"><div class="no">2</div><h5 class="bf3">Aftershocks could last for a year: CWA</h5></a></li>
  318.                    <li><a href="https://www.taipeitimes.com/News/front/archives/2024/04/21/2003816720" data-desc="T:2:China uses UN against Taiwan allies: ex-staffer"><div class="no">3</div><h5 class="bf3">China uses UN against Taiwan allies: ex-staffer</h5></a></li>
  319.                    <li><a href="https://www.taipeitimes.com/News/front/archives/2024/04/21/2003816721" data-desc="T:3:Nymphia Wind becomes first Taiwanese to win ‘RuPaul’s Drag Race’"><div class="no">4</div><h5 class="bf3">Nymphia Wind becomes first Taiwanese to win ‘RuPaul’s Drag Race’</h5></a></li>
  320.                    <li><a href="https://www.taipeitimes.com/News/front/archives/2024/04/22/2003816764" data-desc="T:4:Aid package for Taiwan passes US House"><div class="no">5</div><h5 class="bf3">Aid package for Taiwan passes US House</h5></a></li>
  321.            </ul>
  322. </div>
  323.  
  324.                        <!-- /21202031/TT-sub-P-BD2 -->
  325.        <div id="ad-BD2"
  326.         class="boxTitle ad pc web ad_mg_b"
  327.         data-desc="廣告ad-BD2"
  328.         style="text-align: center; display:none;">
  329.        <script> displayDFP('ad-BD2', 'pc'); </script>
  330.    </div>
  331.                            <!-- /21202031/TT-mobile-sub-P-B2 -->
  332.        <div id="ad-B2"
  333.         class="boxTitle ad m mob ad_pd_t ad_bd_t ad_mg_b"
  334.         data-desc="廣告ad-B2"
  335.         style="text-align: center; display:none;">
  336.        <script> displayDFP('ad-B2', 'm'); </script>
  337.    </div>
  338.    
  339.                <div class="fbbox web pad">
  340.                    <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FTaipei-Times-210998785327%2F&tabs=timeline&width=300&height=382&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId=213492305352346" width="300" height="382" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>
  341.                </div>
  342.                            </div>
  343.        </li>
  344.    </ul>
  345. </div>
  346.        <!-- /21202031/TT-mobile-H1 -->
  347.            <link rel="stylesheet" href="//cache.ltn.com.tw/css/cache_ads_h1.css" />
  348.        <div class="splash" align="center" style="display:none;">
  349.        <div class="banner_close" id="closeID" style="display:none;"></div>
  350.        <div id="ad-H1"
  351.         class="boxTitle ad m mob"
  352.         data-desc="廣告ad-H1"
  353.         style="text-align: center; display:none;">
  354.        <script> displayDFP('ad-H1', 'm'); </script>
  355.    </div>
  356.            </div>
  357.    
  358. <div class="footer boxTitle boxText" data-desc="置底選單">
  359.    <ul>
  360.        <li>
  361.            <img src="assets/images/logo1_forfooter.gif" width="318">
  362.        </li>
  363.        <li>
  364.            <div class="dnav">
  365.                <ul>
  366.                                            <li><a href="https://www.taipeitimes.com/News/front"><div>Front Page</div></a></li>
  367.                                            <li><a href="https://www.taipeitimes.com/News/taiwan"><div>Taiwan News</div></a></li>
  368.                                            <li><a href="https://www.taipeitimes.com/News/biz"><div>Business</div></a></li>
  369.                                            <li><a href="https://www.taipeitimes.com/News/editorials"><div>Editorial & Opinion</div></a></li>
  370.                                            <li><a href="https://www.taipeitimes.com/News/sport"><div>Sports</div></a></li>
  371.                                            <li><a href="https://www.taipeitimes.com/News/world"><div>World News</div></a></li>
  372.                                            <li><a href="https://www.taipeitimes.com/News/feat"><div>Features</div></a></li>
  373.                                            <li><a href="https://www.taipeitimes.com/News/lang"><div>Bilingual Pages</div></a></li>
  374.                                    </ul>
  375.            </div>
  376.        </li>
  377.        <li>
  378.            <div class="dnav">
  379.                <ul>
  380.                    <li><a href="https://www.taipeitimes.com/Service#AboutUs"><div>About Us</div></a></li>
  381.                    <li><a href="https://www.taipeitimes.com/Service#Job"><div>Employment</div></a></li>
  382.                    <li><a href="https://www.taipeitimes.com/Service#Contact"><div>Contact Us</div></a></li>
  383.                    <li><a href="https://www.taipeitimes.com/xml/index.rss"><div><i><img src="assets/images/rss.png" width="14" class="iconimg2"></i> RSS</div></a></li>
  384.                </ul>
  385.            </div>
  386.        </li>
  387.    </ul>
  388. </div>
  389. <div class="copy">Copyright © 1999-2024 The Taipei Times. All rights reserved.</div>
  390. <script>
  391.    function openCity(evt, cityName) {
  392.        var i, tabcontent, tablinks;
  393.        tabcontent = document.getElementsByClassName("tabcontent3");
  394.        for (i = 0; i < tabcontent.length; i++) {
  395.            tabcontent[i].style.display = "none";
  396.        }
  397.        tablinks = document.getElementsByClassName("tablinks3");
  398.        for (i = 0; i < tablinks.length; i++) {
  399.            tablinks[i].className = tablinks[i].className.replace(" active", "");
  400.        }
  401.        document.getElementById(cityName).style.display = "block";
  402.        evt.currentTarget.className += " active";
  403.    }
  404. </script>
  405.  
  406.  
  407. <script>
  408.    function openCity2(evt, cityName2) {
  409.        var i2, tabcontent2, tablinks2;
  410.        tabcontent2 = document.getElementsByClassName("tabcontent1");
  411.        for (i = 0; i < tabcontent2.length; i++) {
  412.            tabcontent2[i].style.display = "none";
  413.        }
  414.        tablinks2 = document.getElementsByClassName("tablinks1");
  415.        for (i = 0; i < tablinks2.length; i++) {
  416.            tablinks2[i].className = tablinks2[i].className.replace(" active", "");
  417.        }
  418.        document.getElementById(cityName2).style.display = "block";
  419.        evt.currentTarget.className += " active";
  420.    }
  421. </script>
  422.  
  423. <!-- 浮水印廣告 -->
  424.        <!-- /21202031/TT-mobile-sub-P-I1-bottom -->
  425.        <div id="ad-I1-bottom"
  426.         class="boxTitle ad m mob door-bottom door-bottom-head"
  427.         data-desc="廣告ad-I1-bottom"
  428.         style="text-align: center; display:none;">
  429.        <script> displayDFP('ad-I1-bottom', 'm'); </script>
  430.    </div>
  431.    <div class="door-bottom door-bottom-space" style="display: none;"></div>
  432. <script src="https://www.taipeitimes.com/log/tt.js"></script>
  433. <!-- Global site tag (gtag.js) - Google Analytics -->
  434. <script async src="https://www.googletagmanager.com/gtag/js?id=G-9B3XE39JST"></script>
  435. <script>
  436.    window.dataLayer = window.dataLayer || [];
  437.    function gtag(){
  438.        dataLayer.push(arguments);
  439.    }
  440.    gtag('js', new Date());
  441.    gtag('config', 'G-9B3XE39JST');
  442.  
  443.    window.onload = function ()
  444.    {
  445.        $('#rtad ins').css("margin-bottom","5px");
  446.        $('#rad ins').css("margin-top","5px");
  447.    }
  448.  
  449.    $( function() {
  450.        // TT GA
  451.        ga_tt_event();
  452.  
  453.        // TT大數據
  454.        var tt_url = 'www.taipeitimes.com';
  455.        var tt_type = 'oops';
  456.        var tt_group = '';
  457.        var tt_ano = '';
  458.        getScrNews(tt_url, tt_type, tt_group, tt_ano);
  459.    });
  460.    // GA 點擊事件統計
  461.    function ga_tt_event()
  462.    {
  463.        var base_root_org = 'https://www.taipeitimes.com/';
  464.  
  465.        var deviceDesc = $("meta[name='ltn:device']").attr('content') || 'U';
  466.        /*取頁面說明*/
  467.        var _pageDesc = $('.page-name').attr('data-desc');
  468.  
  469.        var pageDesc =deviceDesc+':'+_pageDesc;
  470.  
  471.        $(document.body).on('click.ga', '.boxInput', function(){
  472.            var obj = $(this);
  473.            var objDesc = obj.attr('data-desc');
  474.  
  475.            var par = obj.parents('.boxTitle');
  476.            var boxDesc = par.attr('data-desc');
  477.  
  478.            var category = pageDesc;
  479.            var action = boxDesc;
  480.            var label = objDesc || ''; /*使用自定義說明*/
  481.  
  482.            ga_send_event(category,action,label);
  483.  
  484.        });
  485.  
  486.        $('.boxTitle').on('click.count', 'a', function(e){
  487.            if(e.button!=0){return;}
  488.            if(getinfo($(this), false)) {
  489.                if (!staticSlot) {
  490.                    e.preventDefault();
  491.                }
  492.            }
  493.        }).on('mouseup.count', 'a', function(e){
  494.            if(e.button!=1){return;}
  495.            getinfo($(this), true);
  496.            if (!staticSlot) {
  497.                e.preventDefault();
  498.            }
  499.        });
  500.  
  501.        function getinfo(obj, SendOnly){
  502.  
  503.            var objText = obj.text();
  504.            var objDesc = obj.attr('data-desc');
  505.  
  506.            var par = obj.parents('.boxTitle');
  507.            /*取區塊說明*/
  508.            var boxDesc = par.attr('data-desc');
  509.            /*是否用連結文字*/
  510.            var useText = par.hasClass('boxText');
  511.  
  512.            var category = pageDesc;
  513.            var action = boxDesc;
  514.            var label = objDesc || ''; /*使用自定義說明*/
  515.            if(useText && label==''){
  516.                label = objText || ''; /*使用連結文字*/
  517.            }
  518.  
  519.            var labelA = label;
  520.            var idx = $('a', par).index(obj);
  521.            if(label==''){
  522.                /*記錄該區塊第幾則*/
  523.                var idx = $('a', par).index(obj);
  524.                label = '第'+idx+'則';
  525.            }
  526.  
  527.            var target = obj.attr('target');
  528.            var href = '';
  529.            var _href = obj.attr('href');
  530.  
  531.            if(_href){
  532.                href = check_url(_href);
  533.            }
  534.  
  535.            var send_type = 'send';
  536.  
  537.            if(!target && href!=''){
  538.                send_type = 'redirect';
  539.            }
  540.  
  541.            if(SendOnly) send_type = 'send';
  542.  
  543.            if (staticSlot) {
  544.                send_type = 'send';
  545.            }
  546.  
  547.            setltncookies(action, idx, labelA);
  548.  
  549.            if(send_type=='send'){
  550.                ga_send_event(category,action,label);
  551.                return false;
  552.            }else{
  553.                send2ga2page(category,action,label,href);
  554.                return true;
  555.            }
  556.  
  557.            function setltncookies(area, item, elem){
  558.                var ov_sec = 30;
  559.                ltncookies_news("ltn_device", deviceDesc, ov_sec);
  560.                ltncookies_news("ltn_page", _pageDesc, ov_sec);
  561.                ltncookies_news("ltn_area", area, ov_sec);
  562.                ltncookies_news("ltn_item", item, ov_sec);
  563.                ltncookies_news("ltn_elem", elem, ov_sec);
  564.            }
  565.  
  566.            function ltncookies_news(key, value, time_sec) {
  567.                var fn = ltncookies || function () {};
  568.                fn(key, value, time_sec);
  569.            }
  570.        }
  571.  
  572.        function check_url(_url){
  573.            if((/^http:/).test(_url)){
  574.                return _url;
  575.            }else if((/^https:/).test(_url)){
  576.                return _url;
  577.            }else if((/^javascript/).test(_url)){
  578.                return '';
  579.            }else if((/^#/).test(_url)){
  580.                return '';
  581.            }else{
  582.                var base_root = $('base').attr('href') || base_root_org;
  583.                return base_root+_url;
  584.            }
  585.        }
  586.  
  587.        /*GA事件追蹤:頁面不轉換*/
  588.        function ga_send_event(category, title, label){
  589.            ga_send_event_callback(category, title, label, function(){});
  590.        }
  591.  
  592.        /*GA事件追蹤:頁面轉換*/
  593.        function ga_send_event_callback(category, title, label, fn_callback){
  594.            //return fn_callback();
  595.            gtag('event', title, {
  596.                    'event_category' : category,
  597.                    'event_label' : label,
  598.                    'event_callback': fn_callback(),
  599.                }
  600.            );
  601.        }
  602.  
  603.        /*GA事件追蹤:連結點擊*/
  604.        function send2ga2page(category, title, label, url) {
  605.            var redirectTriggered = false;
  606.  
  607.            ga_send_event_callback(category, title, label, function(){
  608.                redirectTriggered = true;
  609.                document.location = url;
  610.            });
  611.  
  612.            setTimeout(function() {
  613.                if (!redirectTriggered) {
  614.                    document.location = url;
  615.                }
  616.            }, 1500);
  617.        }
  618.    }
  619. </script>
  620.  
  621. </body>
  622. </html>
  623.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda