There was an error while loading. Please reload this page.
1 parent e22d6bb commit d02c7d6Copy full SHA for d02c7d6
1 file changed
index.html
@@ -129,5 +129,30 @@ <h3>社区活动</h3>
129
<p class="copyright">© Since 2014. 官方 QQ 群:39615502</p>
130
</footer>
131
132
+<script>
133
+(function () {
134
+ var url = '//api.github.com/repos/yncoder/yncoder.github.io/issues';
135
+ var param = {
136
+ state: 'open'
137
+ };
138
+
139
+ var query = Object.keys(param).map(function (key) {
140
+ return key + '=' + encodeURIComponent(param[key]);
141
+ }).join('&');
142
143
+ var request = new XMLHttpRequest();
144
+ request.open('GET', url + (query ? '?' + query : ''), true);
145
146
+ request.onreadystatechange = function () {
147
+ if (this.readyState == 4 &&
148
+ this.status >= 200 && this.status < 300) {
149
+ console.log(this.responseText);
150
+ }
151
152
153
+ request.send(null);
154
+})();
155
+</script>
156
157
</body>
158
</html>
0 commit comments