init
BIN
assets/favicon.ico
Normal file
|
After Width: | Height: | Size: 37 KiB |
117
assets/index.html
Normal file
@@ -0,0 +1,117 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Moe Counter!</title>
|
||||
<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"/>
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-2RLWN5JXRL"></script>
|
||||
<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
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h3>How to use:</h3>
|
||||
<h5>SVG address</h5>
|
||||
<code>https://count.getloli.com/get/@:name</code>
|
||||
<h5>Img tag</h5>
|
||||
<code><img src="https://count.getloli.com/get/@:name" alt=":name" /></code>
|
||||
<h5>Markdown</h5>
|
||||
<code></code>
|
||||
<h3>
|
||||
eg:<img src="https://count.getloli.com/get/@index" alt="Moe Count!"/>
|
||||
</h3>
|
||||
<i>
|
||||
Data can access by anyone, please<span style="color: #ff4500;">DO NOT</span>
|
||||
enter personal information
|
||||
</i>
|
||||
<details>
|
||||
<summary style="display: inline-block;" onclick="_evt_push("click", "normal", "more_theme")">
|
||||
<h3 style="display: inline-block; cursor: pointer;">More theme</h3>
|
||||
</summary>
|
||||
<p style="margin: 0;">
|
||||
Just use the query parameters <code>theme</code>
|
||||
, like this: <code>https://count.getloli.com/get/@:name?theme=moebooru</code>
|
||||
</p>
|
||||
<h5>moebooru</h5>
|
||||
<img src="https://count.getloli.com/get/@demo?theme=moebooru" alt="Moebooru"/>
|
||||
<h5>moebooru-h</h5>
|
||||
<img src="https://count.getloli.com/get/@demo?theme=moebooru-h" alt="Moebooru-Hentai"/>
|
||||
<h5>rule34</h5>
|
||||
<img src="https://count.getloli.com/get/@demo?theme=rule34" alt="Rule34"/>
|
||||
<h5>gelbooru</h5>
|
||||
<img src="https://count.getloli.com/get/@demo?theme=gelbooru" alt="Gelbooru"/>
|
||||
<h5>gelbooru-h</h5>
|
||||
<img src="https://count.getloli.com/get/@demo?theme=gelbooru-h" alt="Gelbooru-Hentai"/>
|
||||
</details>
|
||||
<h3>Credits</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://repl.it/" target="_blank" rel="nofollow">repl.it</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/moebooru/moebooru" target="_blank" rel="nofollow">moebooru</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:alert("!!! NSFW LINK !!!\nPlease enter the url manually")">rule34.xxx</a>
|
||||
NSFW
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:alert("!!! NSFW LINK !!!\nPlease enter the url manually")">gelbooru.com</a>
|
||||
NSFW
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://icons8.com/icons/set/star" target="_blank" rel="nofollow">Icons8</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h3>Tool</h3>
|
||||
<div class="tool">
|
||||
<code>https://count.getloli.com/get/@</code>
|
||||
<input id="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=</code>
|
||||
<select id="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="moebooru">moebooru</option>
|
||||
<option value="moebooru-h">moebooru-h</option>
|
||||
<option value="rule34">rule34</option>
|
||||
<option value="gelbooru">gelbooru</option>
|
||||
<option value="gelbooru-h">gelbooru-h</option>
|
||||
</select>
|
||||
<button id="get" style="margin: 10px 0;" onclick="_evt_push("click", "normal", "get_counter")">Get</button>
|
||||
<img id="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 = 'https://count.getloli.com/get/@' + text + '?theme=' + theme
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
<p class="copy">
|
||||
<a href="https://github.com/journey-ad/Moe-counter" target="_blank" onclick="_evt_push("click", "normal", "go_github")">source code</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
5
assets/style.css
Normal file
@@ -0,0 +1,5 @@
|
||||
@media screen and (max-width: 900px) {
|
||||
iframe {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
BIN
assets/theme/gelbooru-h/0.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/theme/gelbooru-h/1.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/theme/gelbooru-h/2.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/theme/gelbooru-h/3.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/theme/gelbooru-h/4.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/theme/gelbooru-h/5.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/theme/gelbooru-h/6.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/theme/gelbooru-h/7.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/theme/gelbooru-h/8.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/theme/gelbooru-h/9.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/theme/gelbooru/0.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/theme/gelbooru/1.gif
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/theme/gelbooru/2.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/theme/gelbooru/3.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/theme/gelbooru/4.gif
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/theme/gelbooru/5.gif
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
assets/theme/gelbooru/6.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
assets/theme/gelbooru/7.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/theme/gelbooru/8.gif
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/theme/gelbooru/9.gif
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/theme/moebooru-h/0.png
Normal file
|
After Width: | Height: | Size: 680 B |
BIN
assets/theme/moebooru-h/1.png
Normal file
|
After Width: | Height: | Size: 769 B |
BIN
assets/theme/moebooru-h/2.png
Normal file
|
After Width: | Height: | Size: 855 B |
BIN
assets/theme/moebooru-h/3.png
Normal file
|
After Width: | Height: | Size: 775 B |
BIN
assets/theme/moebooru-h/4.png
Normal file
|
After Width: | Height: | Size: 819 B |
BIN
assets/theme/moebooru-h/5.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/theme/moebooru-h/6.png
Normal file
|
After Width: | Height: | Size: 795 B |
BIN
assets/theme/moebooru-h/7.png
Normal file
|
After Width: | Height: | Size: 1012 B |
BIN
assets/theme/moebooru-h/8.png
Normal file
|
After Width: | Height: | Size: 913 B |
BIN
assets/theme/moebooru-h/9.png
Normal file
|
After Width: | Height: | Size: 826 B |
BIN
assets/theme/moebooru/0.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/theme/moebooru/1.gif
Normal file
|
After Width: | Height: | Size: 922 B |
BIN
assets/theme/moebooru/2.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/theme/moebooru/3.gif
Normal file
|
After Width: | Height: | Size: 974 B |
BIN
assets/theme/moebooru/4.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/theme/moebooru/5.gif
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/theme/moebooru/6.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/theme/moebooru/7.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/theme/moebooru/8.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/theme/moebooru/9.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/theme/rule34/0.gif
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
assets/theme/rule34/1.gif
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
assets/theme/rule34/2.gif
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
assets/theme/rule34/3.gif
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
assets/theme/rule34/4.gif
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
assets/theme/rule34/5.gif
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
assets/theme/rule34/6.gif
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
assets/theme/rule34/7.gif
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
assets/theme/rule34/8.gif
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/theme/rule34/9.gif
Normal file
|
After Width: | Height: | Size: 5.0 KiB |