diff options
| author | Jad <[email protected]> | 2020-08-12 10:03:35 +0000 |
|---|---|---|
| committer | Jad <[email protected]> | 2020-08-12 10:03:35 +0000 |
| commit | 3bd1ae58e4e9019cc0bab7c9221da73f02d914c7 (patch) | |
| tree | d824e32c08eec7ede53aec0340d2f2dfe74949db /views | |
| parent | feat: add message board (diff) | |
| download | counter-3bd1ae58e4e9019cc0bab7c9221da73f02d914c7.tar.xz counter-3bd1ae58e4e9019cc0bab7c9221da73f02d914c7.zip | |
feat: support mongoDB
feat: support dynamic image size
docs: add Readme.md
Diffstat (limited to 'views')
| -rw-r--r-- | views/index.pug | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/views/index.pug b/views/index.pug index 1908114..e2fa8d3 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,9 +1,10 @@ html head - title='Kawaii Counter!' + title='Moe Counter!' meta(name='viewport', content='width=device-width, initial-scale=1') 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') + link(rel='stylesheet', href='style.css') body h3 How to use: @@ -18,7 +19,7 @@ html code  h3 eg: - <img src="https://count.getloli.com/get/@index" alt="Kawaii Count!" /> + <img src="https://count.getloli.com/get/@index" alt="Moe Count!" /> i Data can access by anyone, please | <span style="color: #ff4500;"> DO NOT</span> @@ -27,23 +28,27 @@ html details summary(style='display: inline-block;') h3(style='display: inline-block; cursor: pointer;') More theme - p(style='margin: 0;') Just use the query parameters <code>theme</code>, like this: <code>https://count.getloli.com/get/@:name?theme=konachan</code> - h5 konachan - img(src='https://count.getloli.com/get/@demo?theme=konachan', alt='Konachan') + p(style='margin: 0;') Just use the query parameters <code>theme</code>, like this: <code>https://count.getloli.com/get/@:name?theme=moebooru</code> + h5 moebooru + img(src='https://count.getloli.com/get/@demo?theme=moebooru', alt='moebooru') h5 rule34 img(src='https://count.getloli.com/get/@demo?theme=rule34', alt='Rule34') + h5 gelbooru + img(src='https://count.getloli.com/get/@demo?theme=gelbooru', alt='Gelbooru') h3 Credits ul li a(href='https://repl.it/', target='_blank', rel='nofollow') repl.it li - a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') konachan.com - | NSFW + a(href='https://github.com/moebooru/moebooru', target='_blank', rel='nofollow') moebooru li a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') rule34.xxx | NSFW li + a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') gelbooru.com + | NSFW + li a(href='https://icons8.com/icons/set/star', target='_blank', rel='nofollow') Icons8 h3 Tool @@ -52,10 +57,11 @@ html 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;') code ?theme= select#theme(style='display: inline-block; height: 1.6em; line-height: 1.6em; font-size: 14px; margin: 0 4px; padding: 0 4px; vertical-align: middle;') - option(value='konachan') konachan + option(value='moebooru') moebooru option(value='rule34') rule34 - button#get(style='margin: 10px 0') Get - img#result(style='display: block; width: 315px; height: 100px') + option(value='gelbooru') gelbooru + button#get(style='margin: 10px 0;') Get + img#result(style='display: block;') script. var btn = document.getElementById('get'), @@ -65,7 +71,7 @@ html var name = document.getElementById('name'), themeEl = document.getElementById('theme') var text = name.value ? name.value.trim() : '' - var theme = themeEl.value || 'konachan' + var theme = themeEl.value || 'moebooru' if(!text) { alert('Please input counter name.') return @@ -74,7 +80,7 @@ html img.src = 'https://count.getloli.com/get/@' + text + '?theme=' + theme }) - iframe(src="https://chat.getloli.com/room/@kawaii-counter?title=%E5%8F%AF%E7%88%B1%E7%9A%84%E8%AE%A1%E6%95%B0%E5%99%A8%E7%9A%84%E7%95%99%E8%A8%80%E6%9D%BF", scrolling="no", frameborder="0", height="70%", width="26%", style="position: fixed;top: 2%;right: 5%;") + iframe(src="https://chat.getloli.com/room/@Moe-counter?title=%E5%8F%AF%E7%88%B1%E7%9A%84%E8%AE%A1%E6%95%B0%E5%99%A8%E7%9A%84%E7%95%99%E8%A8%80%E6%9D%BF", scrolling="no", frameborder="0", height="70%", width="26%", style="position: fixed;top: 2%;right: 5%;") p.copy - a(href='https://repl.it/@journeyad/kawaii-counter') source code
\ No newline at end of file + a(href='https://repl.it/@journeyad/Moe-counter') source code
\ No newline at end of file |