diff options
| author | Jad <[email protected]> | 2020-08-04 08:36:37 +0000 |
|---|---|---|
| committer | Jad <[email protected]> | 2020-08-04 08:36:37 +0000 |
| commit | 860d6813c13bd68a60284f065e8ad01ebda334ea (patch) | |
| tree | 4a5b0212d95c86dabb6b5b3a09ba163162a34dd7 | |
| parent | docs: update index template (diff) | |
| download | counter-860d6813c13bd68a60284f065e8ad01ebda334ea.tar.xz counter-860d6813c13bd68a60284f065e8ad01ebda334ea.zip | |
feat: add favicon
| -rw-r--r-- | assets/favicon.png | bin | 0 -> 4523 bytes | |||
| -rw-r--r-- | count.db | bin | 20480 -> 20480 bytes | |||
| -rw-r--r-- | index.js | 1 | ||||
| -rw-r--r-- | views/index.pug | 5 |
4 files changed, 4 insertions, 2 deletions
diff --git a/assets/favicon.png b/assets/favicon.png Binary files differBinary files differnew file mode 100644 index 0000000..3f9e9a8 --- /dev/null +++ b/assets/favicon.png @@ -31,6 +31,7 @@ function getCountImage(count) { const app = express() +app.use(express.static('assets')) app.use(compression()) app.set('view engine', 'pug') diff --git a/views/index.pug b/views/index.pug index 075f25b..5e2c559 100644 --- a/views/index.pug +++ b/views/index.pug @@ -2,7 +2,8 @@ html head title='Kawaii Counter!' meta(name='viewport', content='width=device-width, initial-scale=1') - link(rel='stylesheet',href='https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css') + link(rel='icon', type='image/png', href='favicon.png') + link(rel='stylesheet', href='https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css') body h3 How to use: @@ -34,7 +35,7 @@ html h3 Tool .tool code https://count.getloli.com/get/@ - input#name(type='text', placeholder=':name', style='display: inline-block;width: 80px;height: 1.4em;line-height: 1.4em;margin: 0 4px;vertical-align: middle;') + input#name(type='text', placeholder=':name', style='display: inline-block; width: 80px; height: 1.4em; line-height: 1.4em; margin: 0 4px; vertical-align: middle;') button#get(style='margin: 10px 0') Get img#result(style='display: block; width: 315px; height: 100px') |