forked from lbsadmin/nodeMessageBoard
added emoji-font for standardised experience
This commit is contained in:
parent
195e1eca34
commit
1f2104e8e2
1
app.js
1
app.js
@ -10,6 +10,7 @@ handle["/interface"] = requestHandlers.sendInterface;
|
|||||||
handle["/js/jquery-1.12.1.min"] = requestHandlers.sendJquery;
|
handle["/js/jquery-1.12.1.min"] = requestHandlers.sendJquery;
|
||||||
handle["/js/jquery-ui.js"] = requestHandlers.sendJqueryUI;
|
handle["/js/jquery-ui.js"] = requestHandlers.sendJqueryUI;
|
||||||
handle["/css/bootstrap.min.css"] = requestHandlers.sendBootstrap;
|
handle["/css/bootstrap.min.css"] = requestHandlers.sendBootstrap;
|
||||||
|
handle["/sprite/emoji.ttf"] = requestHandlers.sendEmojiTtf;
|
||||||
|
|
||||||
handle["/clear"] = requestHandlers.sendClear;
|
handle["/clear"] = requestHandlers.sendClear;
|
||||||
if(server.demoMode()){
|
if(server.demoMode()){
|
||||||
|
11
board.html
11
board.html
@ -13,10 +13,17 @@
|
|||||||
<style>
|
<style>
|
||||||
/* Sticky footer styles
|
/* Sticky footer styles
|
||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
|
@import url('https://fonts.googleapis.com/css?family=Noto+Sans');
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Emoji';
|
||||||
|
src: url('/sprite/emoji.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
font-family: 'Noto Sans', sans-serif;
|
||||||
/* The html and body elements cannot have any padding or margin. */
|
/* The html and body elements cannot have any padding or margin. */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +44,10 @@ body {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-family: 'Emoji', 'Noto Sans', sans-serif;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,17 @@ function sendDemo(response) {
|
|||||||
response.end(html);
|
response.end(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sendEmojiTtf(response) {
|
||||||
|
console.log("Request handler 'EmojiTtf' was called.");
|
||||||
|
response.writeHead(200, {"Content-Type": "font/ttf"});
|
||||||
|
var html = fs.readFileSync(__dirname + "/served/NotoColorEmoji.ttf")
|
||||||
|
response.end(html);
|
||||||
|
}
|
||||||
|
|
||||||
exports.sendClear = sendClear;
|
exports.sendClear = sendClear;
|
||||||
exports.sendDemo = sendDemo;
|
exports.sendDemo = sendDemo;
|
||||||
|
|
||||||
|
exports.sendEmojiTtf = sendEmojiTtf;
|
||||||
|
|
||||||
exports.sendBootstrap = sendBootstrap;
|
exports.sendBootstrap = sendBootstrap;
|
||||||
exports.sendJqueryUI = sendJqueryUI;
|
exports.sendJqueryUI = sendJqueryUI;
|
||||||
|
BIN
served/NotoColorEmoji.ttf
Normal file
BIN
served/NotoColorEmoji.ttf
Normal file
Binary file not shown.
BIN
served/NotoEmoji-Regular.ttf
Normal file
BIN
served/NotoEmoji-Regular.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user