Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
var cdb = require('internal-carto.js');
var template = require('./loading.tpl');
var randomQuote = require('./random-quote');
/**
* @param {Object} opts
* @param {String=} opts.title
* @param {String=} opts.desc
*/
module.exports = function (opts) {
var customDesc = opts.desc && cdb.core.sanitize(opts.desc);
return template({
title: opts.title || '',
descHTML: customDesc || randomQuote()
});
};