Moe-counter/views/index.pug

102 lines
3.8 KiB
Plaintext
Raw Permalink Normal View History

2020-08-03 08:11:58 -04:00
html
head
title='Moe Counter!'
2020-08-03 08:11:58 -04:00
meta(name='viewport', content='width=device-width, initial-scale=1')
2020-08-04 04:36:37 -04:00
link(rel='icon', type='image/png', href='favicon.png')
2023-07-16 03:52:29 -04:00
link(rel='stylesheet', href='./light.min.css')
link(rel='stylesheet', href='./custom.css')
// GOODBYE GOOGLE SHIT
2020-08-03 08:11:58 -04:00
body
2020-08-03 08:50:20 -04:00
h3 How to use:
2020-08-03 08:11:58 -04:00
h5 SVG address
code #{site}/get/@:name
2020-08-03 08:11:58 -04:00
h5 Img tag
code <img src="#{site}/get/@:name" alt=":name" />
2020-08-03 08:11:58 -04:00
h5 Markdown
code ![:name](#{site}/get/@:name)
2020-08-03 08:11:58 -04:00
2020-08-03 08:50:20 -04:00
h3 eg:
<img src="#{site}/get/@index" alt="Moe Count!" />
2020-08-03 08:11:58 -04:00
2023-07-16 03:52:29 -04:00
i(style='color: #FFFFFF') Data can access by anyone, please
2020-08-03 22:28:30 -04:00
| <span style="color: #ff4500;"> DO NOT</span>
| enter personal information
2020-08-05 01:37:12 -04:00
details
2021-01-01 17:05:02 -03:00
summary(style='display: inline-block;', onclick='_evt_push("click", "normal", "more_theme")')
2023-07-16 03:52:29 -04:00
h3(style='display: inline-block; cursor: pointer;') More themes
p(style='margin: 0;') Just use the query parameters <code>theme</code>, like this: <code>#{site}/get/@:name?theme=moebooru</code>
2022-03-03 05:24:37 -03:00
h5 asoul
img(src='#{site}/get/@demo?theme=asoul', alt='A-SOUL')
h5 moebooru
img(src='#{site}/get/@demo?theme=moebooru', alt='Moebooru')
2021-01-01 16:22:23 -03:00
h5 moebooru-h
img(src='#{site}/get/@demo?theme=moebooru-h', alt='Moebooru-Hentai')
2020-08-05 01:37:12 -04:00
h5 rule34
img(src='#{site}/get/@demo?theme=rule34', alt='Rule34')
h5 gelbooru
img(src='#{site}/get/@demo?theme=gelbooru', alt='Gelbooru')
2021-01-01 16:22:23 -03:00
h5 gelbooru-h
img(src='#{site}/get/@demo?theme=gelbooru-h', alt='Gelbooru-Hentai')
2020-08-05 01:37:12 -04:00
2023-07-16 03:52:29 -04:00
// h3 Credits
// ul
// li
// a(href='https://repl.it/', target='_blank', rel='nofollow') repl.it
// 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
// li
// a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') rule34.xxx
// | NSFW
// li
// a(href='javascript:alert("!!! NSFW LINK !!!\\nPlease enter the url manually")') gelbooru.com
// | NSFW
// li
// a(href='https://icons8.com/icons/set/star', target='_blank', rel='nofollow') Icons8
2020-08-03 08:50:20 -04:00
h3 Tool
.tool
code #{site}/get/@
2020-08-04 04:36:37 -04: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 01:37:12 -04: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;')
2022-03-03 05:24:37 -03:00
option(value='asoul') asoul
option(value='moebooru') moebooru
2021-01-01 16:22:23 -03:00
option(value='moebooru-h') moebooru-h
2020-08-05 01:37:12 -04:00
option(value='rule34') rule34
option(value='gelbooru') gelbooru
2021-01-01 16:22:23 -03:00
option(value='gelbooru-h') gelbooru-h
2021-01-01 17:05:02 -03:00
button#get(style='margin: 10px 0;', onclick='_evt_push("click", "normal", "get_counter")') Get
img#result(style='display: block;')
2020-08-03 08:50:20 -04:00
script.
var btn = document.getElementById('get'),
img = document.getElementById('result')
btn.addEventListener('click', function() {
2020-08-05 01:37:12 -04:00
var name = document.getElementById('name'),
themeEl = document.getElementById('theme')
2020-08-03 08:50:20 -04:00
var text = name.value ? name.value.trim() : ''
var theme = themeEl.value || 'moebooru'
2020-08-03 08:50:20 -04:00
if(!text) {
alert('Please input counter name.')
return
}
img.src = '#{site}/get/@' + text + '?theme=' + theme
2020-08-03 08:50:20 -04:00
})
2020-08-03 08:11:58 -04:00
p.copy
2023-04-04 00:22:37 -04:00
a(href='https://github.com/journey-ad/Moe-Counter', target='_blank', onclick='_evt_push("click", "normal", "go_github")') source code
2023-04-05 00:28:54 -04:00
p.copy
2023-07-16 03:52:29 -04:00
a(href='https://git.zzls.xyz/Fijxu/Moe-Counter', target='_blank', onclick='_evt_push("click", "normal", "go_github")') Modified source code