-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (73 loc) · 2.11 KB
/
Copy pathindex.html
File metadata and controls
82 lines (73 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!doctype html>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<style>
body {
background: #121212;
margin: 0;
height: 100vh;
overflow: hidden;
display: grid;
place-items: center;
}
div {
display: grid;
gap: 16px;
grid-template-columns: repeat(var(--c), var(--s));
}
a {
width: var(--s);
height: var(--s);
background: #1e1e1e;
border-radius: 16px;
display: grid;
place-items: center;
}
img {
width: 70%;
height: 70%;
object-fit: contain;
pointer-events: none;
}
</style>
<div id="g"></div>
<script>
const d = [
["https://gemini.google.com/app", "gemini-color.svg"],
["https://aistudio.google.com/prompts/new_chat", "aistudio-color.svg"],
["https://chat.qwen.ai/", "qwen-color.svg"],
["https://agent.minimax.io/", "minimax-color.svg"],
["https://www.kimi.com/", "kimi-color.svg"],
["https://aistudio.xiaomimimo.com/#/c", "xiaomimimo.svg"],
["https://www.meta.ai", "meta-color.svg"],
["https://claude.ai/new", "claude-color.svg"],
["https://chat.together.ai/", "together-color.svg"],
["https://chat.deepseek.com/", "deepseek-color.svg"],
["https://chat.z.ai/", "zai.svg"],
["https://chatgpt.com/", "openai.svg"],
["https://grok.com/", "grok.svg"],
["https://arena.ai/text/direct", "arena.svg"],
["https://stepfun.ai/chats/new", "stepfun-color.svg"],
["https://copilot.microsoft.com/", "copilot-color.svg"],
["https://chat.mistral.ai/chat/", "mistral-color.svg"],
["https://ernie.baidu.com", "baidu-color.svg"],
["https://www.apodex.ai", "apodex.svg"],
];
const g = document.getElementById("g");
g.innerHTML = d
.map((x) => `<a href="${x[0]}"><img src="icons/${x[1]}"></a>`)
.join("");
const N = d.length;
const W = innerWidth - 32;
const H = innerHeight - 32;
let max = 0,
col = 1;
for (let c = 1; c <= N; c++) {
const r = Math.ceil(N / c);
const s = Math.min((W - (c - 1) * 16) / c, (H - (r - 1) * 16) / r);
if (s > max) {
max = s;
col = c;
}
}
g.style = `--c:${col};--s:${max | 0}px`;
</script>