PageSourceSearch

https://reurl.cc/asset/javascripts/common/renews.js

js reurl.cc collected 2026-09-24 08:23:57 UTC 690 bytes, 26 lines download raw bytes

1var renews = new Vue({
2    el: '#renews',
3    data: {
4        latestPosts: []
5    },
6    mounted: async function() {
7       this.latestPosts = await getRenewsFeeds()
8    }
9})
10
11function getRenewsFeeds() {
12    return new Promise((resolve, reject) => {
13        const url = "https://re-news.tw/feeds"
14        const xhr = new XMLHttpRequest()
15        xhr.open('GET', url, true)
16        xhr.send()
17        xhr.onload = function() {
18            if (this.readyState === 4 && this.status === 200) {
19                const posts = JSON.parse(this.responseText)
20                return resolve(posts)
21            } else {
22                return reject(this.responseText)
23            }
24        }
25    })
26}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.