2020-08-03 14:11:58 +02:00
|
|
|
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')
|
|
|
|
|
|
|
|
body
|
2020-08-03 14:50:20 +02:00
|
|
|
h3 How to use:
|
2020-08-03 14:11:58 +02:00
|
|
|
|
|
|
|
h5 SVG address
|
2020-08-03 14:50:20 +02:00
|
|
|
code https://count.getloli.com/get/@:name
|
2020-08-03 14:11:58 +02:00
|
|
|
|
|
|
|
h5 Img tag
|
2020-08-03 14:50:20 +02:00
|
|
|
code <img src="https://count.getloli.com/get/@:name" alt=":name" />
|
2020-08-03 14:11:58 +02:00
|
|
|
|
|
|
|
h5 Markdown
|
2020-08-03 14:50:20 +02:00
|
|
|
code ![:name](https://count.getloli.com/get/@:name)
|
2020-08-03 14:11:58 +02:00
|
|
|
|
2020-08-03 14:50:20 +02:00
|
|
|
h3 eg:
|
2020-08-03 14:11:58 +02:00
|
|
|
<img src="https://count.getloli.com/get/@index" alt="Kawaii Count!" />
|
|
|
|
|
2020-08-03 14:50:20 +02:00
|
|
|
h3 Credits
|
|
|
|
ul
|
|
|
|
li
|
|
|
|
a(href='https://repl.it/') https://repl.it/
|
|
|
|
li
|
|
|
|
a(href='https://konachan.com/') http://konachan.com/
|
|
|
|
| NSFW
|
|
|
|
|
|
|
|
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;')
|
|
|
|
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() {
|
|
|
|
var name = document.getElementById('name')
|
|
|
|
var text = name.value ? name.value.trim() : ''
|
|
|
|
if(!text) {
|
|
|
|
alert('Please input counter name.')
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
img.src = 'https://count.getloli.com/get/@' + text
|
|
|
|
})
|
|
|
|
|
2020-08-03 14:11:58 +02:00
|
|
|
p.copy
|
2020-08-03 14:50:20 +02:00
|
|
|
a(href='https://repl.it/@journeyad/kawaii-counter') source code
|