var minisrv_service_file = true; var WTVBGMusic = require("./WTVBGMusic.js"); var wtvbgm = new WTVBGMusic(minisrv_config, ssid_sessions[socket.ssid]) headers = `200 OK Connection: Keep-Alive wtv-expire-all: wtv- wtv-expire-all: http Content-Type: text/html` data = ` Background music styles
Background music styles
Choose the styles you'd like to hear. Choose a style name to see the songs for that style.
`; var catsListed = 0; var numCats = wtvbgm.categories.length; var divide = Math.round(numCats / 2, 0); Object.keys(wtvbgm.categories).forEach(function (k) { if (catsListed == divide) { data += `
`; } var pubcat = parseInt(k) + 1; data += `
${wtvbgm.categories[k]}
`; catsListed++; }); data += `
`;