Compare commits

...

2 commits

Author SHA1 Message Date
zutto
a76b429acd init opencollective 2024-06-15 14:06:38 +03:00
zutto
9c8be1a264 rm hmtl.js 2024-06-15 14:05:34 +03:00
2 changed files with 2 additions and 25 deletions

View file

@ -1,24 +0,0 @@
class html {
constructor() {
this.html = '';
}
async loadingStart(element) {}
async loadingEnd(element) {}
async render(element, content) {
var template = '%s';
if (element.hasAttribute('html-template'))
template = element.getAttribute('html-template');
else if (element.hasAttribute("template")) {
template = element.innerHTML;
element.setAttribute('html-template', template);
}
element.innerHTML = template.replace('%s', content);
}
}

View file

@ -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();
})();