mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 18:56:00 +02:00
* New @systemMethod
This commit is contained in:
parent
ec5f1836c5
commit
5ab89f952f
7 changed files with 99 additions and 41 deletions
|
@ -94,6 +94,14 @@ function initAvailableThemes(cb) {
|
|||
);
|
||||
}
|
||||
|
||||
function getRandomTheme() {
|
||||
if(Object.getOwnPropertyNames(availableThemes).length > 0) {
|
||||
var themeIds = Object.keys(availableThemes);
|
||||
return themeIds[Math.floor(Math.random() * themeIds.length)];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
function getRandomTheme(cb) {
|
||||
if(Object.getOwnPropertyNames(availableThemes).length > 0) {
|
||||
var themeIds = Object.keys(availableThemes);
|
||||
|
@ -102,6 +110,7 @@ function getRandomTheme(cb) {
|
|||
cb(new Error('No themes available'));
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
function getThemeArt(name, themeID, options, cb) {
|
||||
// allow options to be optional
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue