feat(theme): add asoul
@@ -15,5 +15,5 @@ add_executable(cmoeditor editor.c)
|
|||||||
target_link_libraries(cmoe spb)
|
target_link_libraries(cmoe spb)
|
||||||
target_link_libraries(cmoeditor spb)
|
target_link_libraries(cmoeditor spb)
|
||||||
|
|
||||||
INSTALL(TARGETS cmoe RUNTIME DESTINATION bin)
|
#INSTALL(TARGETS cmoe RUNTIME DESTINATION bin)
|
||||||
INSTALL(TARGETS cmoeditor RUNTIME DESTINATION bin)
|
INSTALL(TARGETS cmoeditor RUNTIME DESTINATION bin)
|
||||||
|
|||||||
BIN
assets/favicon.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
@@ -29,6 +29,8 @@
|
|||||||
Just use the query parameters <code>theme</code>
|
Just use the query parameters <code>theme</code>
|
||||||
, like this: <code>/cmoe?name=yourname&theme=mb</code>
|
, like this: <code>/cmoe?name=yourname&theme=mb</code>
|
||||||
</p>
|
</p>
|
||||||
|
<h5>asoul(asl)</h5>
|
||||||
|
<img src="https://count.getloli.com/get/@demo?theme=asoul" alt="A-SOUL">
|
||||||
<h5>moebooru(mb)</h5>
|
<h5>moebooru(mb)</h5>
|
||||||
<img src="https://count.getloli.com/get/@demo?theme=moebooru" alt="Moebooru"/>
|
<img src="https://count.getloli.com/get/@demo?theme=moebooru" alt="Moebooru"/>
|
||||||
<h5>moebooru-h(mbh)</h5>
|
<h5>moebooru-h(mbh)</h5>
|
||||||
@@ -71,6 +73,7 @@
|
|||||||
<option value="r34">rule34</option>
|
<option value="r34">rule34</option>
|
||||||
<option value="gb">gelbooru</option>
|
<option value="gb">gelbooru</option>
|
||||||
<option value="gbh">gelbooru-h</option>
|
<option value="gbh">gelbooru-h</option>
|
||||||
|
<option value="asl">asoul</option>
|
||||||
</select>
|
</select>
|
||||||
<button id="get" style="margin: 10px 0;" onclick="_evt_push("click", "normal", "get_counter")">Get</button>
|
<button id="get" style="margin: 10px 0;" onclick="_evt_push("click", "normal", "get_counter")">Get</button>
|
||||||
<img id="result" style="display: block;"/>
|
<img id="result" style="display: block;"/>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 680 B |
|
Before Width: | Height: | Size: 769 B |
|
Before Width: | Height: | Size: 855 B |
|
Before Width: | Height: | Size: 775 B |
|
Before Width: | Height: | Size: 819 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 795 B |
|
Before Width: | Height: | Size: 1012 B |
|
Before Width: | Height: | Size: 913 B |
|
Before Width: | Height: | Size: 826 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 922 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 974 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
14
cmoe.c
@@ -90,10 +90,7 @@ static inline uint32_t get_content_len(int isbig, uint16_t* len_type, char* cnts
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define has_next(fp, ch) ((ch=getc(fp)),(feof(fp)?0:(ungetc(ch,fp),1)))
|
#define has_next(fp, ch) ((ch=getc(fp)),(feof(fp)?0:(ungetc(ch,fp),1)))
|
||||||
#define set_type(name, t, l) if (!strcmp(theme, name)) {\
|
#define cmp_and_set_type(t) if (!strcmp(theme, #t)) { theme_type = (char**)t; len_type = (uint16_t*)t##l; }
|
||||||
theme_type = (char**)t;\
|
|
||||||
len_type = (uint16_t*)l;\
|
|
||||||
}
|
|
||||||
static void return_count(FILE* fp, char* name, char* theme) {
|
static void return_count(FILE* fp, char* name, char* theme) {
|
||||||
int ch, exist = 0, user_exist = 0;
|
int ch, exist = 0, user_exist = 0;
|
||||||
char buf[sizeof(simple_pb_t)+sizeof(counter_t)];
|
char buf[sizeof(simple_pb_t)+sizeof(counter_t)];
|
||||||
@@ -120,10 +117,11 @@ static void return_count(FILE* fp, char* name, char* theme) {
|
|||||||
char** theme_type = (char**)mb;
|
char** theme_type = (char**)mb;
|
||||||
uint16_t* len_type = (uint16_t*)mbl;
|
uint16_t* len_type = (uint16_t*)mbl;
|
||||||
if (theme) {
|
if (theme) {
|
||||||
set_type("mbh", mbh, mbhl) else
|
cmp_and_set_type(mbh) else
|
||||||
set_type("r34", r34, r34l) else
|
cmp_and_set_type(r34) else
|
||||||
set_type("gb", gb, gbl) else
|
cmp_and_set_type(gb) else
|
||||||
set_type("gbh", gbh, gbhl)
|
cmp_and_set_type(gbh) else
|
||||||
|
cmp_and_set_type(asl)
|
||||||
isbig = (theme_type == (char**)gb || theme_type == (char**)gbh);
|
isbig = (theme_type == (char**)gb || theme_type == (char**)gbh);
|
||||||
}
|
}
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|||||||