-
Notifications
You must be signed in to change notification settings - Fork 366
/
feedlist.html
176 lines (141 loc) · 3.22 KB
/
feedlist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
---
layout: vue-inline-page
title: R Weekly Live Feed List
---
<script>
var global_notdone = false;
</script>
<style>
.inner-app-hide {
display: none;
}
.long-ds {
display: none;
}
.inner-text {
font-size: 16px;
display: inline;
}
.podcast {
display: none;
}
.tocify {
display: none;
}
.container {
max-width: 38rem;
padding-left: 1.5em;
padding-right: 1.5rem;
margin-left: auto;
margin-right: auto;
}
.post a:visited {
color: #999;
}
.post-hide-ds .is-ds {
display: none
}
@media (min-width: 650px) {
.masthead {
position: fixed;
background-color: white;
opacity: 0.9;
width: 100%;
z-index: 10;
-webkit-box-shadow: 0px 0px 8px 8px white;
box-shadow: 0px 0px 8px 8px white;
padding-bottom: 0.4rem;
}
#main-article {
padding-top: 90px;
}
.long-ds {
display: inline;
}
.short-ds {
display: none;
}
}
.title-inline {
font-size: 16px;
font-weight: normal;
}
.weibo-hide {
display: none;
}
body.no-feature-like .upvote-click {
display: initial;
}
body.no-feature-like .like-beta {
display: initial;
}
body.no-feature-like .liketext {
display: initial;
}
body.no-feature-like .hidetext {
display: none;
}
body.night .masthead {
background-color: #262626;
box-shadow: 0px 0px 8px 8px #262626;
}
body.night .masthead-title a {
color: #cbcbcb;
}
</style>
{% raw %}
<div id="main-post" class="post">
<form id="search-form-inline" target="_blank" action="/search.html" method="get">
<label for="search-box-inline"></label>
<input type="text" class="github-search-box" id="search-box-inline" name="query" placeholder="search">
</form>
<script>
document.getElementById('search-form-inline').addEventListener('submit', function(e){
e.preventDefault();
var value_search = document.getElementById('search-box-inline').value;
setTimeout(function(){
document.location = "https://github.com/rweekly/rweekly.org/search?utf8=%E2%9C%93&q=" + encodeURIComponent(value_search) + "+extension%3Ar+extension%3Amd&type=Code";
}, 250);
});
</script>
<div id="latest-app" class="inner-app-hide">
<h3>R Weekly Live Feed List</h3>
<div class="like-table" v-for="item in post_date">
<ul>
<li>
<p>
{{ item }}
</p>
</li>
</ul>
</div>
</div>
</div>
<script>
var latest_data = [];
var latest_app = new Vue({
el: '#latest-app',
data: {
post_date: latest_data
}
});
function load_latest() {
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://live.rweekly.org/feedlist.json");
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
var myArr = JSON.parse(xhr.responseText);
// force DOM update
latest_app.post_date = [];
latest_app.post_date = myArr;
document.getElementById('latest-app').classList.remove('inner-app-hide');
// add_external_links();
}
};
xhr.send();
}
document.addEventListener('DOMContentLoaded', function () {
load_latest();
});
</script>
{% endraw %}