1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-02-22 04:54:06 +01:00

Start again

This commit is contained in:
2020-10-04 17:14:00 +02:00
parent c0d3912413
commit 091f119048
4382 changed files with 1762543 additions and 9606 deletions

View File

@@ -0,0 +1,17 @@
var fs = require("fs");
var base = fs.readFileSync('base.html').toString();
['top','bottom'].forEach(function(v){
['left','right'].forEach(function(h){
['1','2','3','4','5'].forEach(function(t){
var text = fs.readFileSync('t' +t+'.html').toString();
var outFile = 'out/' + t +v.charAt(0) + h.charAt(0) + '.html';
var out = base
.replace(/\{\{\{t\}\}\}/g,text)
.replace(/\{\{v\}\}/g,v)
.replace(/\{\{h\}\}/g,h);
fs.writeFileSync(outFile, out);
});
});
});