use selfhosted tweets/fahrplan json
This commit is contained in:
parent
31db1ad426
commit
d08ac54520
4
index.js
4
index.js
|
@ -48,7 +48,7 @@ var tweets = {};
|
||||||
/* === EXTERNAL DATA === */
|
/* === EXTERNAL DATA === */
|
||||||
function update_tweets() {
|
function update_tweets() {
|
||||||
var request = new XMLHttpRequest();
|
var request = new XMLHttpRequest();
|
||||||
request.open('GET', 'https://api.oct.re/tweets-rc3.json', true);
|
request.open('GET', 'tweets-rc3.json', true);
|
||||||
request.onload = function() {
|
request.onload = function() {
|
||||||
if (this.status >= 200 && this.status < 400) {
|
if (this.status >= 200 && this.status < 400) {
|
||||||
tweets = JSON.parse(this.response);
|
tweets = JSON.parse(this.response);
|
||||||
|
@ -61,7 +61,7 @@ function update_tweets() {
|
||||||
|
|
||||||
function update_fahrplan() {
|
function update_fahrplan() {
|
||||||
var request = new XMLHttpRequest();
|
var request = new XMLHttpRequest();
|
||||||
request.open('GET', 'https://api.oct.re/fahrplan.json', true);
|
request.open('GET', 'fahrplan.json', true);
|
||||||
request.onload = function() {
|
request.onload = function() {
|
||||||
if (this.status >= 200 && this.status < 400) {
|
if (this.status >= 200 && this.status < 400) {
|
||||||
fahrplan = JSON.parse(this.response);
|
fahrplan = JSON.parse(this.response);
|
||||||
|
|
Loading…
Reference in New Issue