on 69fe92f help sign in
webring/scripts/hallway.js
21 lines 455 B history raw
1'use strict'
3function Hallway (sites) {
4 this.sites = sites
5 this.el = document.createElement('div')
7 this.install = function (host) {
8 host.appendChild(this.el)
9 }
11 this.start = function () {
12 this.el.innerHTML = 'hello'
13 this.fetch('https://wiki.xxiivv.com/twtxt.txt')
14 }
16 this.fetch = function (location) {
17 Promise.all([ fetch(location).then(x => x.text()) ]).then(([sampleResp]) => {
18 console.log(sampleResp)
19 })
20 }