-
Notifications
You must be signed in to change notification settings - Fork 72
/
index.html
121 lines (100 loc) · 2.15 KB
/
index.html
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html id="容器">
<head>
<meta charset="UTF-8">
<title>恶臭数字论证器</title>
<meta name="viewport" content="width=device-width,user-scalable=0">
<meta name="description" content="数字恶臭化工具">
<meta name="keyword" content="野兽先辈论证生成器,114514,神奇海螺">
<style>
html {
text-align: center;
background: #d0b164;
color: #412300;
transition: 1s ease;
font-family: sans-serif;
word-break: break-all;
}
html[数字=""] {
background: #b3d0d0;
color: #002b41;
}
head {
display: block;
text-align: center;
padding: 3em 0 2em;
}
title {
display: block;
font-weight: 700;
font-size: 2em;
margin: 0.67em;
line-height: 45px;
}
meta[name="description"] {
display: block;
margin: 1em 0;
}
meta[name="description"]:after {
content: attr(content);
}
body {
margin: 0;
padding: 0 0 100px;
}
a {
color: #0080ff;
text-decoration: none;
}
input {
outline: 0;
font-size: 20px;
line-height: 26px;
text-align: center;
padding: 8px 12px;
border: 0;
width: 80%;
max-width: 300px;
-webkit-appearance: none;
}
#恶臭 {
font-size: 24px;
font-family: "Comic Sans MS", script;
padding: 40px 10px 100px;
}
footer {
padding: 80px 0;
font-size: .8em;
font-family: "Comic Sans MS", script;
text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}
footer p {
opacity: 0.5;
padding: 20px 0;
}
footer a {
margin: 0.5em;
color: inherit;
}
</style>
</head>
<body>
<input id="学弟" placeholder="输入任意数字" type="number">
<div id="恶臭"></div>
<footer>
<p>复制请保持开源并保留引用信息</p>
<a href="https://github.com/itorr/homo">GitHub</a>
<a href="https://weibo.com/1197780522/IBBhqjdbT">Weibo</a>
<a href="https://lab.magiconch.com/">Lab.</a>
</footer>
<script src="homo.js"></script>
<script>
学弟.oninput = _ => {
const 数字 = 学弟.value === '' ? '' : Number(学弟.value);
恶臭.innerHTML = 数字 + ' = <big>' + homo(数字) + '</big>';
容器.setAttribute('数字', 数字);
};
学弟.oninput();
</script>
</body>
</html>