Moe-Counter/views/index.pug

80 lines
3.2 KiB
Plaintext
Raw Normal View History

2020-08-03 12:11:58 +00:00
html
head
title='Kawaii Counter!'
meta(name='viewport', content='width=device-width, initial-scale=1')
2020-08-04 08:36:37 +00:00
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')
2020-08-03 12:11:58 +00:00
body
2020-08-03 12:50:20 +00:00
h3 How to use:
2020-08-03 12:11:58 +00:00
h5 SVG address
2020-08-03 12:50:20 +00:00
code https://count.getloli.com/get/@:name
2020-08-03 12:11:58 +00:00
h5 Img tag
2020-08-03 12:50:20 +00:00
code <img src="https://count.getloli.com/get/@:name" alt=":name" />
2020-08-03 12:11:58 +00:00
h5 Markdown
2020-08-03 12:50:20 +00:00
code ![:name](https://count.getloli.com/get/@:name)
2020-08-03 12:11:58 +00:00
2020-08-03 12:50:20 +00:00
h3 eg:
2020-08-03 12:11:58 +00:00
<img src="https://count.getloli.com/get/@index" alt="Kawaii Count!" />
2020-08-04 02:28:30 +00:00
i Data can access by anyone, please
| <span style="color: #ff4500;"> DO NOT</span>
| enter personal information
2020-08-05 05:37:12 +00:00
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')
h5 rule34
img(src='https://count.getloli.com/get/@demo?theme=rule34', alt='Rule34')
2020-08-03 12:50:20 +00:00
h3 Credits
ul
li
2020-08-04 08:44:19 +00:00
a(href='https://repl.it/', target='_blank', rel='nofollow') repl.it
2020-08-03 12:50:20 +00:00
li
2020-08-04 02:28:30 +00:00
a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') konachan.com
2020-08-03 12:50:20 +00:00
| NSFW
2020-08-05 05:37:12 +00:00
li
a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') rule34.xxx
| NSFW
2020-08-04 08:44:19 +00:00
li
a(href='https://icons8.com/icons/set/star', target='_blank', rel='nofollow') Icons8
2020-08-03 12:50:20 +00:00
h3 Tool
.tool
code https://count.getloli.com/get/@
2020-08-04 08:36:37 +00:00
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;')
2020-08-05 05:37:12 +00:00
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='rule34') rule34
2020-08-03 12:50:20 +00:00
button#get(style='margin: 10px 0') Get
img#result(style='display: block; width: 315px; height: 100px')
script.
var btn = document.getElementById('get'),
img = document.getElementById('result')
btn.addEventListener('click', function() {
2020-08-05 05:37:12 +00:00
var name = document.getElementById('name'),
themeEl = document.getElementById('theme')
2020-08-03 12:50:20 +00:00
var text = name.value ? name.value.trim() : ''
2020-08-05 05:37:12 +00:00
var theme = themeEl.value || 'konachan'
2020-08-03 12:50:20 +00:00
if(!text) {
alert('Please input counter name.')
return
}
2020-08-05 05:37:12 +00:00
img.src = 'https://count.getloli.com/get/@' + text + '?theme=' + theme
2020-08-03 12:50:20 +00:00
})
2020-08-09 16:18:18 +00:00
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%;")
2020-08-03 12:11:58 +00:00
p.copy
2020-08-03 12:50:20 +00:00
a(href='https://repl.it/@journeyad/kawaii-counter') source code