blob: 075f25b168a0061f4db467bb101deed075bc8919 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
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
h3 How to use:
h5 SVG address
code https://count.getloli.com/get/@:name
h5 Img tag
code <img src="https://count.getloli.com/get/@:name" alt=":name" />
h5 Markdown
code 
h3 eg:
<img src="https://count.getloli.com/get/@index" alt="Kawaii Count!" />
i Data can access by anyone, please
| <span style="color: #ff4500;"> DO NOT</span>
| enter personal information
h3 Credits
ul
li
a(href='https://repl.it/') repl.it
li
a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') 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
})
p.copy
a(href='https://repl.it/@journeyad/kawaii-counter') source code
|