1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
eorg_oz 1f2104e8e2 added emoji-font for standardised experience 2017-03-16 21:07:12 +01:00
eorg_oz 195e1eca34 minor changes 2017-03-10 20:12:08 +01:00
16 changed files with 20 additions and 0 deletions

0
.gitignore vendored Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

1
app.js Executable file → Normal file
View File

@ -10,6 +10,7 @@ handle["/interface"] = requestHandlers.sendInterface;
handle["/js/jquery-1.12.1.min"] = requestHandlers.sendJquery;
handle["/js/jquery-ui.js"] = requestHandlers.sendJqueryUI;
handle["/css/bootstrap.min.css"] = requestHandlers.sendBootstrap;
handle["/sprite/emoji.ttf"] = requestHandlers.sendEmojiTtf;
handle["/clear"] = requestHandlers.sendClear;
if(server.demoMode()){

11
board.html Executable file → Normal file
View File

@ -13,10 +13,17 @@
<style>
/* 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,
body {
height: 100%;
font-family: 'Noto Sans', sans-serif;
/* The html and body elements cannot have any padding or margin. */
}
@ -37,6 +44,10 @@ body {
bottom: 0;
width: 100%;
}
h1 {
font-family: 'Emoji', 'Noto Sans', sans-serif;
}
</style>

0
clear.html Executable file → Normal file
View File

0
demo.html Executable file → Normal file
View File

0
package.json Executable file → Normal file
View File

View File

@ -47,9 +47,17 @@ function sendDemo(response) {
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.sendDemo = sendDemo;
exports.sendEmojiTtf = sendEmojiTtf;
exports.sendBootstrap = sendBootstrap;
exports.sendJqueryUI = sendJqueryUI;

0
route.js Executable file → Normal file
View File

0
sample.config.json Executable file → Normal file
View File

BIN
served/NotoColorEmoji.ttf Normal file

Binary file not shown.

Binary file not shown.

0
served/bootstrap.min.css vendored Executable file → Normal file
View File

0
served/jquery-1.12.1.min.js vendored Executable file → Normal file
View File

0
served/jquery-ui.js vendored Executable file → Normal file
View File

0
server.js Executable file → Normal file
View File