init opencollective
This commit is contained in:
parent
9c8be1a264
commit
3dd032a7f9
3 changed files with 4 additions and 3 deletions
|
@ -4,10 +4,11 @@ import '../css/tripledot.css';
|
|||
|
||||
import { MyIP } from './plugins/myip.js';
|
||||
import { Time } from './plugins/time.js';
|
||||
|
||||
import { OpenCollective } from './plugins/opencollective.js';
|
||||
|
||||
|
||||
(function() {
|
||||
var time = new Time();
|
||||
var myip = new MyIP();
|
||||
var opencollective = new OpenCollective();
|
||||
})();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { html } from '../html.js';
|
||||
import { vhtml } from './vhtml.js';
|
||||
export class shield extends vhtml {
|
||||
constructor() {
|
||||
super();
|
||||
|
|
|
@ -9,7 +9,7 @@ export class OpenCollective extends shield {
|
|||
this._ip = "";
|
||||
this._source = "https://ip.zutto.fi/"
|
||||
|
||||
vj.watcher.watch('[content="myip"]', (element) => {
|
||||
vj.watcher.watch('[content="opencollective"]', (element) => {
|
||||
this.loadingStart(element);
|
||||
this.ip().then((data) => {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue