2020-08-03 12:11:58 +00:00
|
|
|
html
|
|
|
|
head
|
2020-08-12 10:03:35 +00:00
|
|
|
title='Moe Counter!'
|
2024-10-22 19:59:07 +00:00
|
|
|
meta(name='viewport', content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no')
|
2024-10-31 05:58:21 +00:00
|
|
|
link(rel='icon', type='image/png', href=`${site}/favicon.png`)
|
2024-10-22 19:59:07 +00:00
|
|
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/normalize.css')
|
|
|
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/bamboo.css')
|
2024-10-31 05:58:21 +00:00
|
|
|
link(rel='stylesheet/less', href=`${site}/style.less`)
|
2024-10-22 19:59:07 +00:00
|
|
|
script(less, src='https://cdn.jsdelivr.net/npm/less')
|
2024-10-31 05:58:21 +00:00
|
|
|
if ga_id
|
|
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2024-10-31 06:11:39 +00:00
|
|
|
script(async, src=`https://www.googletagmanager.com/gtag/js?id=${ga_id}`)
|
2021-01-01 20:05:02 +00:00
|
|
|
script.
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
2024-10-31 05:58:21 +00:00
|
|
|
function gtag() { dataLayer.push(arguments); }
|
2021-01-01 20:05:02 +00:00
|
|
|
gtag('js', new Date());
|
|
|
|
|
2024-10-31 05:58:21 +00:00
|
|
|
gtag('config', '#{ga_id}');
|
2021-01-01 20:05:02 +00:00
|
|
|
|
2024-10-20 16:19:35 +00:00
|
|
|
function _evt_push(type, category, label) {
|
2021-01-01 20:05:02 +00:00
|
|
|
gtag('event', type, {
|
|
|
|
'event_category' : category,
|
|
|
|
'event_label' : label
|
|
|
|
});
|
|
|
|
}
|
2024-10-20 16:19:35 +00:00
|
|
|
|
|
|
|
script.
|
2024-10-21 04:22:51 +00:00
|
|
|
var __global_data = { site: "#{site}" };
|
2020-08-03 12:11:58 +00:00
|
|
|
|
|
|
|
body
|
2024-10-22 19:59:07 +00:00
|
|
|
h1#main_title
|
2024-10-19 21:11:14 +00:00
|
|
|
i Moe Counter!
|
|
|
|
|
|
|
|
h3 How to use
|
|
|
|
p Set a unique id for your counter, replace
|
|
|
|
code :name
|
2024-10-20 00:29:58 +00:00
|
|
|
| in the url, That's it!
|
2020-08-03 12:11:58 +00:00
|
|
|
|
|
|
|
h5 SVG address
|
2024-10-19 21:11:14 +00:00
|
|
|
code #{site}/@:name
|
2020-08-03 12:11:58 +00:00
|
|
|
|
|
|
|
h5 Img tag
|
2024-10-19 21:11:14 +00:00
|
|
|
code <img src="#{site}/@:name" alt=":name" />
|
2020-08-03 12:11:58 +00:00
|
|
|
|
|
|
|
h5 Markdown
|
2024-10-19 21:11:14 +00:00
|
|
|
code ![:name](#{site}/@:name)
|
2020-08-03 12:11:58 +00:00
|
|
|
|
2024-10-19 21:11:14 +00:00
|
|
|
h5 e.g.
|
2024-10-20 16:19:35 +00:00
|
|
|
img(src=`${site}/@index` alt="Moe Counter!")
|
2020-08-03 12:11:58 +00:00
|
|
|
|
2024-10-22 19:59:07 +00:00
|
|
|
details#themes
|
2024-10-19 21:11:14 +00:00
|
|
|
summary#more_theme(onclick='_evt_push("click", "normal", "more_theme")')
|
2024-10-22 19:59:07 +00:00
|
|
|
h3 More theme✨
|
|
|
|
p Just use the query parameters <code>theme</code>, like this: <code>#{site}/@:name?theme=moebooru</code>
|
2024-10-20 00:29:58 +00:00
|
|
|
each theme in Object.keys(themeList)
|
2024-10-20 16:19:35 +00:00
|
|
|
div.item(data-theme=theme)
|
|
|
|
h5 #{theme}
|
2024-10-21 04:22:51 +00:00
|
|
|
img(data-src=`${site}/@demo?theme=${theme}` alt=theme)
|
2020-08-05 05:37:12 +00:00
|
|
|
|
2020-08-03 12:50:20 +00:00
|
|
|
h3 Credits
|
|
|
|
ul
|
2024-10-21 04:22:51 +00:00
|
|
|
li: a(href='https://glitch.com/', target='_blank', rel='nofollow') Glitch
|
|
|
|
li: a(href='https://space.bilibili.com/703007996', target='_blank', title='A-SOUL_Official') A-SOUL
|
|
|
|
li: a(href='https://github.com/moebooru/moebooru', target='_blank', rel='nofollow') moebooru
|
2020-08-12 10:03:35 +00:00
|
|
|
li
|
|
|
|
a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') gelbooru.com
|
|
|
|
| NSFW
|
2024-10-21 04:22:51 +00:00
|
|
|
li: a(href='https://icons8.com/icon/80355/star', target='_blank', rel='nofollow') Icons8
|
|
|
|
span: i And all booru site...
|
2020-08-03 12:50:20 +00:00
|
|
|
|
|
|
|
h3 Tool
|
|
|
|
.tool
|
2024-10-19 21:11:14 +00:00
|
|
|
table
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Param
|
2024-10-20 00:29:58 +00:00
|
|
|
th Description
|
2024-10-19 21:11:14 +00:00
|
|
|
th Value
|
|
|
|
tbody
|
|
|
|
tr
|
2024-10-21 04:22:51 +00:00
|
|
|
td: code name
|
2024-10-20 00:29:58 +00:00
|
|
|
td Unique counter name
|
2024-10-21 04:22:51 +00:00
|
|
|
td: input#name(type='text', placeholder=':name')
|
2024-10-19 21:11:14 +00:00
|
|
|
tr
|
2024-10-21 04:22:51 +00:00
|
|
|
td: code theme
|
2024-10-20 00:29:58 +00:00
|
|
|
td Select a counter image theme, default is
|
|
|
|
code moebooru
|
2024-10-19 21:11:14 +00:00
|
|
|
td
|
|
|
|
select#theme
|
2024-10-20 00:29:58 +00:00
|
|
|
option(value="random", selected) * random
|
|
|
|
each theme in Object.keys(themeList)
|
2024-10-20 16:19:35 +00:00
|
|
|
option(value=theme) #{theme}
|
2024-10-19 21:11:14 +00:00
|
|
|
tr
|
2024-10-21 04:22:51 +00:00
|
|
|
td: code padding
|
2024-11-02 13:44:48 +00:00
|
|
|
td Set the minimum length, between 1-16, default is
|
2024-10-20 00:29:58 +00:00
|
|
|
code 7
|
2024-10-21 04:22:51 +00:00
|
|
|
td: input#padding(type='number', value='7', min='1', max='32', step='1', oninput='this.value = this.value.replace(/[^0-9]/g, "")')
|
2024-10-19 21:11:14 +00:00
|
|
|
tr
|
2024-10-21 04:22:51 +00:00
|
|
|
td: code offset
|
2024-10-20 00:29:58 +00:00
|
|
|
td Set the offset pixel value, between -500-500, default is
|
|
|
|
code 0
|
2024-10-21 04:22:51 +00:00
|
|
|
td: input#offset(type='number', value='0', min='-500', max='500', step='1', oninput='this.value = this.value.replace(/[^0-9|\-]/g, "")')
|
2024-10-20 00:29:58 +00:00
|
|
|
tr
|
2024-10-21 04:22:51 +00:00
|
|
|
td: code scale
|
2024-10-25 04:53:34 +00:00
|
|
|
td Set the image scale, between 0.1-2, default is
|
2024-10-20 00:29:58 +00:00
|
|
|
code 1
|
2024-10-21 04:22:51 +00:00
|
|
|
td: input#scale(type='number', value='1', min='0.1', max='2', step='0.1', oninput='this.value = this.value.replace(/[^0-9|\.]/g, "")')
|
2024-10-30 07:46:17 +00:00
|
|
|
tr
|
|
|
|
td: code align
|
|
|
|
td Set the image align, Enum top/center/bottom, default is
|
|
|
|
code top
|
|
|
|
td: select#align(name="align")
|
|
|
|
option(value="top", selected) top
|
|
|
|
option(value="center") center
|
|
|
|
option(value="bottom") bottom
|
2024-10-20 00:29:58 +00:00
|
|
|
tr
|
2024-10-21 04:22:51 +00:00
|
|
|
td: code pixelated
|
2024-10-20 00:29:58 +00:00
|
|
|
td Enable pixelated mode, Enum 0/1, default is
|
|
|
|
code 1
|
2024-10-22 19:59:07 +00:00
|
|
|
td
|
|
|
|
input#pixelated(type='checkbox', role='switch', checked)
|
2024-10-30 07:46:17 +00:00
|
|
|
label(for='pixelated'): span
|
2024-10-19 21:11:14 +00:00
|
|
|
tr
|
2024-10-21 04:22:51 +00:00
|
|
|
td: code darkmode
|
2024-10-20 00:29:58 +00:00
|
|
|
td Enable dark mode, Enum 0/1/auto, default is
|
|
|
|
code auto
|
2024-10-21 04:22:51 +00:00
|
|
|
td: select#darkmode(name="darkmode")
|
2024-10-19 21:11:14 +00:00
|
|
|
option(value="auto", selected) auto
|
|
|
|
option(value="1") yes
|
|
|
|
option(value="0") no
|
2024-10-25 04:53:34 +00:00
|
|
|
tr
|
|
|
|
td(colspan=3)
|
|
|
|
h4.caption Unusual Options
|
|
|
|
tr
|
|
|
|
td: code num
|
|
|
|
td Set counter display number, 0 for disable, default is
|
|
|
|
code 0
|
2024-10-31 08:53:35 +00:00
|
|
|
td: input#num(type='number', value='0', min='0', max='1e15', step='1', oninput='this.value = this.value.replace(/[^0-9]/g, "")')
|
2024-11-02 13:44:48 +00:00
|
|
|
tr
|
|
|
|
td: code prefix
|
|
|
|
td Set the prefix number, empty for disable
|
|
|
|
td: input#prefix(type='number', value='', min='0', max='999999', step='1', oninput='this.value = this.value.replace(/[^0-9]/g, "")')
|
2024-10-19 21:11:14 +00:00
|
|
|
|
2024-10-22 19:59:07 +00:00
|
|
|
button#get(onclick='_evt_push("click", "normal", "get_counter")') Generate
|
2024-10-19 21:11:14 +00:00
|
|
|
|
|
|
|
div
|
2024-10-22 19:59:07 +00:00
|
|
|
code#code
|
|
|
|
img#result
|
2020-08-03 12:50:20 +00:00
|
|
|
|
2024-10-22 19:59:07 +00:00
|
|
|
p.github
|
2024-10-20 00:29:58 +00:00
|
|
|
a(href='https://github.com/journey-ad/Moe-Counter', target='_blank', onclick='_evt_push("click", "normal", "go_github")') source code
|
|
|
|
|
|
|
|
div.back-to-top
|
|
|
|
|
2024-10-22 19:59:07 +00:00
|
|
|
script(async, src='https://cdn.jsdelivr.net/npm/party-js@2/bundle/party.min.js')
|
2024-10-31 05:58:21 +00:00
|
|
|
script(async, src=`${site}/script.js`)
|