1
0
mirror of https://github.com/journey-ad/Moe-Counter.git synced 2024-12-03 11:37:25 +01:00
Moe-Counter/views/index.pug

112 lines
4.6 KiB
Plaintext
Raw Normal View History

2020-08-03 14:11:58 +02:00
html
head
title='Moe Counter!'
2020-08-03 14:11:58 +02:00
meta(name='viewport', content='width=device-width, initial-scale=1')
2020-08-04 10:36:37 +02:00
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')
link(rel='stylesheet', href='style.css')
2021-01-01 21:05:02 +01:00
<!-- Global site tag (gtag.js) - Google Analytics -->
script(async, src='https://www.googletagmanager.com/gtag/js?id=G-2RLWN5JXRL')
script.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-2RLWN5JXRL');
function _evt_push(type, category, label){
gtag('event', type, {
'event_category' : category,
'event_label' : label
});
}
2020-08-03 14:11:58 +02:00
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 &lt;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:
<img src="https://count.getloli.com/get/@index" alt="Moe Count!" />
2020-08-03 14:11:58 +02:00
2020-08-04 04:28:30 +02:00
i Data can access by anyone, please
| <span style="color: #ff4500;"> DO NOT</span>
| enter personal information
2020-08-05 07:37:12 +02:00
details
2021-01-01 21:05:02 +01:00
summary(style='display: inline-block;', onclick='_evt_push("click", "normal", "more_theme")')
2020-08-05 07:37:12 +02:00
h3(style='display: inline-block; cursor: pointer;') More theme
p(style='margin: 0;') Just use the query parameters <code>theme</code>, like this: <code>https://count.getloli.com/get/@:name?theme=moebooru</code>
2022-03-03 09:24:37 +01:00
h5 asoul
img(src='https://count.getloli.com/get/@demo?theme=asoul', alt='A-SOUL')
h5 moebooru
2021-01-01 20:22:23 +01:00
img(src='https://count.getloli.com/get/@demo?theme=moebooru', alt='Moebooru')
h5 moebooru-h
img(src='https://count.getloli.com/get/@demo?theme=moebooru-h', alt='Moebooru-Hentai')
2020-08-05 07:37:12 +02:00
h5 rule34
img(src='https://count.getloli.com/get/@demo?theme=rule34', alt='Rule34')
h5 gelbooru
img(src='https://count.getloli.com/get/@demo?theme=gelbooru', alt='Gelbooru')
2021-01-01 20:22:23 +01:00
h5 gelbooru-h
img(src='https://count.getloli.com/get/@demo?theme=gelbooru-h', alt='Gelbooru-Hentai')
2020-08-05 07:37:12 +02:00
2020-08-03 14:50:20 +02:00
h3 Credits
ul
li
2020-08-04 10:44:19 +02:00
a(href='https://repl.it/', target='_blank', rel='nofollow') repl.it
2022-03-03 09:24:37 +01:00
li
a(href='https://space.bilibili.com/703007996', target='_blank', title='A-SOUL_Official') A-SOUL
2020-08-03 14:50:20 +02:00
li
a(href='https://github.com/moebooru/moebooru', target='_blank', rel='nofollow') moebooru
2020-08-05 07:37:12 +02:00
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
2020-08-04 10:44:19 +02:00
li
a(href='https://icons8.com/icons/set/star', target='_blank', rel='nofollow') Icons8
2020-08-03 14:50:20 +02:00
h3 Tool
.tool
code https://count.getloli.com/get/@
2020-08-04 10:36:37 +02: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 07:37:12 +02: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 09:24:37 +01:00
option(value='asoul') asoul
option(value='moebooru') moebooru
2021-01-01 20:22:23 +01:00
option(value='moebooru-h') moebooru-h
2020-08-05 07:37:12 +02:00
option(value='rule34') rule34
option(value='gelbooru') gelbooru
2021-01-01 20:22:23 +01:00
option(value='gelbooru-h') gelbooru-h
2021-01-01 21:05:02 +01:00
button#get(style='margin: 10px 0;', onclick='_evt_push("click", "normal", "get_counter")') Get
img#result(style='display: block;')
2020-08-03 14:50:20 +02:00
script.
var btn = document.getElementById('get'),
img = document.getElementById('result')
btn.addEventListener('click', function() {
2020-08-05 07:37:12 +02:00
var name = document.getElementById('name'),
themeEl = document.getElementById('theme')
2020-08-03 14:50:20 +02:00
var text = name.value ? name.value.trim() : ''
var theme = themeEl.value || 'moebooru'
2020-08-03 14:50:20 +02:00
if(!text) {
alert('Please input counter name.')
return
}
2020-08-05 07:37:12 +02:00
img.src = 'https://count.getloli.com/get/@' + text + '?theme=' + theme
2020-08-03 14:50:20 +02:00
})
2020-08-12 12:25:00 +02:00
iframe(src="https://chat.getloli.com/room/@Moe-counter?title=%E8%90%8C%E8%90%8C%E8%AE%A1%E6%95%B0%E5%99%A8%E7%9A%84%E7%95%99%E8%A8%80%E6%9D%BF", scrolling="no", frameborder="0", height="70%", width="26%", style="position: fixed;top: 2%;right: 5%;")
2020-08-09 18:18:18 +02:00
2020-08-03 14:11:58 +02:00
p.copy
a(href='https://github.com/journey-ad/Moe-Counter', target='_blank', onclick='_evt_push("click", "normal", "go_github")') source code