-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
62 lines (53 loc) · 1.71 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
<html>
<svg onload="init()" xmlns="http://www.w3.org/2000/svg"
aria-label="Calendar" role="img"
viewBox="0 0 512 512">
<script type="text/ecmascript"><![CDATA[
function init() {
var time = new Date();
var locale = "en-gb";
var DD = time.getDate();
var DDD = time.toLocaleString(locale, {weekday: "long" });
var MMM = time.toLocaleString(locale, {month: "short"}).toUpperCase();
document.getElementById("day").textContent= DD;
document.getElementById("weekday").textContent= DDD;
document.getElementById("month").textContent= MMM;
// var DDDD = time.toLocaleString(locale, { weekday: "long" });
// var MM = time.getMonth() + 1;
// var MMMM = time.toLocaleString(locale, {month: "long"});
// var YYYY = time.getFullYear();
}
]]></script>
<path d="M512 455c0 32-25 57-57 57H57c-32 0-57-25-57-57V128c0-31 25-57 57-57h398c32 0 57 26 57 57z" fill="#e0e7ec"/>
<path d="M484 0h-47c2 4 4 9 4 14a28 28 0 1 1-53-14H124c3 4 4 9 4 14A28 28 0 1 1 75 0H28C13 0 0 13 0 28v157h512V28c0-15-13-28-28-28z" fill="#dd2f45"/>
<g fill="#f3aab9">
<circle cx="470" cy="142" r="14"/>
<circle cx="470" cy="100" r="14"/>
<circle cx="427" cy="142" r="14"/>
<circle cx="427" cy="100" r="14"/>
<circle cx="384" cy="142" r="14"/>
<circle cx="384" cy="100" r="14"/>
</g>
<text id="month"
x="32"
y="164"
fill="#fff"
font-family="monospace"
font-size="140px"
style="text-anchor: left">动态资源</text>
<text id="day"
x="256"
y="400"
fill="#66757f"
font-family="monospace"
font-size="256px"
style="text-anchor: middle">未加载</text>
<text id="weekday"
x="256"
y="480"
fill="#66757f"
font-family="monospace"
font-size="64px"
style="text-anchor: middle">closty</text>
</svg>
</html>