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
|
html
head
title='Urushi 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')
body
.tool
code #{site}/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;')
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='urushi') urushi
option(value='asoul') asoul
option(value='moebooru') moebooru
option(value='moebooru-h') moebooru-h
option(value='rule34') rule34
option(value='gelbooru') gelbooru
option(value='gelbooru-h') gelbooru-h
button#get(style='margin: 10px 0;', onclick='_evt_push("click", "normal", "get_counter")') Get
img#result(style='display: block;')
script.
var btn = document.getElementById('get'),
img = document.getElementById('result')
btn.addEventListener('click', function() {
var name = document.getElementById('name'),
themeEl = document.getElementById('theme')
var text = name.value ? name.value.trim() : ''
var theme = themeEl.value || 'moebooru'
if(!text) {
alert('Please input counter name.')
return
}
img.src = '#{site}/get/@' + text + '?theme=' + theme
})
h2 Usage
p(style='margin: 0;') Replace <code>:name</code> with your counter name.
h5 HTML
code <img src="#{site}/get/@:name" alt=":name" />
h5 Markdown
code 
br
br
h2 Example
p(style='margin: 0;') <a href="#{site}/get/@index?theme=urushi" target="_blank"><code>#{site}/get/@index?theme=urushi</code></a>
p <img src="#{site}/get/@index?theme=urushi" alt="Urushi Counter" />
|