var CurrTasks = {}; var CurrentTimeline = []; var CurrentTimelineExp = 0; function LogDebug(Data, Status) { if (Debug) { for (var i=0; i ${Item.created_at} ${Item.friendica_author.url} ${Item.friendica_html} `; }); }}); }; */ function DisplayFriendicaTimeline(Timeline) { ApiCall({Target: "Friendica", Method: Timeline, CallFine: function(Res){ DataView.innerHTML = Res.responseText; JSON.parse(DataView.innerHTML).forEach(function(Item){ var Title = Item.friendica_title ? `

${Item.friendica_title}

` : ''; TimelineView.innerHTML += `
${Item.created_at} ${Item.friendica_author.url} ${Title} ${Item.friendica_html}
`; }); }}); }; function FetchMastodon(Proc) { return ApiCall({Target: "Mastodon", Method: "timelines/public", CallFine: function(Res){ //console.log(JSON.parse(Res.responseText)[0]) var New = [ TransParsers.Mastodon.Status( JSON.parse(Res.responseText)[0] ) ]; console.log(New) //return [ // TransParsers.Mastodon.Status(JSON.parse(Res.responseText)[0]) //]; //CurrentTimeline = CurrentTimeline.concat([TransParsers.Mastodon.Status(JSON.parse(Res.responseText)[0])]); //CurrentTimelineExp -= 1; CurrTasks[Res.Proc[0]].Remains -= 1; // TODO: store data in global object CurrTasks[Res.Proc[0]].Result = New; }}, Proc); }; function FillTimeline(Notes) { console.log('notes', Notes) Notes.forEach(function(Note){ TimelineView.innerHTML += `
${Note.Time} ${Note.Author} ${Note.Content}
`; }); }; PlazasView.innerHTML = `

Featured

Categories

`;