2
1
mirror of https://github.com/s00500/nodeMessageBoard.git synced 2025-07-12 19:11:00 +00:00

Added handlers and emojize for apple style sprite emoji

This commit is contained in:
2016-03-15 10:42:21 +01:00
parent 097faef1a5
commit 4aeef6c8db
8 changed files with 5230 additions and 2 deletions

View File

@ -12,4 +12,19 @@ function sendInterface(response) {
response.end(html);
}
function sendCss(response) {
console.log("Request handler 'css' was called.");
response.writeHead(200, {"Content-Type": "text/css"});
var html = fs.readFileSync(__dirname + "/served/emoji.css")
response.end(html);
}
function sendPng(response) {
console.log("Request handler 'png' was called.");
response.writeHead(200, {"Content-Type": "image/png"});
var html = fs.readFileSync(__dirname + "/served/emoji.png")
response.end(html);
}
exports.sendPng = sendPng;
exports.sendCss = sendCss;
exports.sendInterface = sendInterface;