on 863200d help sign in
webring/scripts/wiki.js
28 lines 614 B history raw
1'use strict'
3function Wiki (sites) {
4 const feeds = {}
5 this.sites = sites
6 this.el = document.createElement('div')
7 this.el.id = 'wiki'
9 this.install = function (host) {
10 console.log('Wiki','Installing..')
11 this.fetch()
12 host.appendChild(this.el)
13 }
15 this.start = function () {
16 console.log('Wiki','Starting..')
17 this.el.innerHTML = 'hello.'
18 }
20 this.fetch = function () {
21 console.log('Wiki','Fetching..')
22 for (const site of sites) {
23 if(!site.wiki || !site.author){continue}
24 console.log(site)
25 }
26 console.log(`Found ${Object.keys(feeds).length} feeds.`)
27 }