UNPKG

@codedoc/core

Version:

Create beautiful modern documentation websites.

15 lines 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.buildingHtml = void 0; var config_1 = require("./config"); function buildingHtml(renderer) { return renderer.create("html", null, renderer.create("head", null, renderer.create("link", { href: "https://fonts.googleapis.com/css2?family=Work+Sans:wght@300&display=swap", rel: "stylesheet" }), renderer.create("style", null, "\n body {\n font-size: 48px;\n font-family: 'Work Sans', sans-serif;\n background: #eeeeee;\n color: #bdbdbd;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0;\n border: 0;\n }\n ")), renderer.create("body", null, "Building documents, please wait ...", renderer.create("script", null, "\n setInterval(function(){\n var xhr = new XMLHttpRequest();\n xhr.open('GET', '" + config_1.StatusCheckURL + "');\n xhr.onload = function() {\n if (xhr.responseText == '" + config_1.StatusReadyResponse + "')\n location.reload();\n };\n xhr.send();\n }, 500);\n "))); } exports.buildingHtml = buildingHtml; //# sourceMappingURL=building-html.js.map