-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
228 lines (210 loc) · 8.01 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link type="text/css" rel="stylesheet" href="style.css">
</head>
<body>
<script src="https://unpkg.com/i18next/dist/umd/i18next.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-i18next/1.2.1/jquery-i18next.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/i18next-browser-languagedetector/7.1.0/i18nextBrowserLanguageDetector.min.js"></script>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1134 976">
<style>
text {
font-family: 字体, sans-serif;
fill: #111;
font-size: 30px;
}
#标题,
#分数 {
font-size: 60px;
}
.fs24 {
font-size: 24px;
}
#地区 path,
#曾母暗沙,
.边框 {
fill-rule: evenodd;
clip-rule: evenodd;
stroke: #000;
stroke-width: 4;
stroke-linecap: round;
stroke-linejoin: round;
}
#地区 path {
fill: #FFF;
cursor: pointer;
pointer-events: auto;
}
#曾母暗沙,
.边框 {
fill: none;
}
#地区 path[level="5"] {
fill: #FF7E7E;
}
#地区 path[level="4"] {
fill: #FFB57E;
}
#地区 path[level="3"] {
fill: #FFE57E;
}
#地区 path[level="2"] {
fill: #A8FFBE;
}
#地区 path[level="1"] {
fill: #88AEFF;
}
</style>
<text x="425" y="119" id="标题" data-i18n="svg.title"></text>
<g id="地区">
<path id="黑龙江" d="M1100,33v158H894V33H1100z" />
<path id="甘肃" d="M585,191v371H351V191H585z" />
<path id="吉林" d="M894,191v85h206v-85H894z" />
<path id="内蒙古" d="M894,33H738v158H499v227h227l168-108V33z" />
<path id="山东" d="M779,446v92h139v-92H779z" />
<path id="河北" d="M861,310H726v180h117v-95h18V310z" />
<path id="北京" d="M763 336h80v52H763Z" />
<path id="天津" d="M763,388h80v43h-80V388z" />
<path id="西藏" d="M389,770H35V466h354V770z" />
<path id="新疆" d="M35,466V87h316v379H35z" />
<path id="河南" d="M779,490H654v117h125V490z" />
<path id="安徽" d="M852,538h-73v138h73V538z" />
<path id="山西" d="M654,418v108h72V418H654z" />
<path id="湖北" d="M779,688v-81H654v81H779z" />
<path id="青海" d="M442,626V395H228v231H442z" />
<path id="辽宁" d="M861,276v119h154V276H861z" />
<path id="广东" d="M823,788H679v81h144V788z" />
<path id="江苏" d="M899,538v87h-62v-87H899z" />
<path id="江西" d="M852,806V676H749v130H852z" />
<path id="浙江" d="M852,625l74,1v107h-74V625z" />
<path id="福建" d="M823,733v107h73V733H823z" />
<path id="上海" d="M882 602h72v47H882Z" />
<path id="陕西" d="M585,653h69V418h-69V653z" />
<path id="湖南" d="M654,688h95v100h-95V688z" />
<path id="广西" d="M679,788H537v81h142V788z" />
<path id="香港" d="M758 856h42v33H758Z" />
<path id="澳门" d="M701 856h45v33H701Z" />
<path id="贵州" d="M654,709H537v79h117V709z" />
<path id="重庆" d="M565 653h89v56H565Z" />
<path id="四川" d="M565,737v-84h20v-91H389v175H565z" />
<path id="云南" d="M537,737H389v115h148V737z" />
<path id="宁夏" d="M585,418h-86v96h86V418z" />
<path id="台湾" d="M918 788h45v87H918Z" />
<path id="海南" d="M615 897h78v46H615Z" />
</g>
<path id="曾母暗沙" d="M827 941L827 897L908 897L908 941" />
<g id="地名">
<text x="659" y="266">内蒙古</text>
<text x="951" y="123">黑龙江</text>
<text x="966" y="242">吉林</text>
<text x="906" y="347">辽宁</text>
<text x="773" y="371">北京</text>
<text x="773" y="419">天津</text>
<text x="751" y="469">河北</text>
<text x="861" y="488">山</text>
<text x="861" y="518">东</text>
<text x="685" y="579">河南</text>
<text x="684" y="658">湖北</text>
<text x="684" y="733">湖</text>
<text x="684" y="763">南</text>
<text x="846" y="575">江</text>
<text x="846" y="605">苏</text>
<text x="888" y="635">上海</text>
<text x="872" y="685">浙</text>
<text x="872" y="715">江</text>
<text x="844" y="783">福</text>
<text x="844" y="813">建</text>
<text x="925" y="826">台</text>
<text x="925" y="856">湾</text>
<text x="625" y="930">海南</text>
<text x="721" y="842">广东</text>
<text x="772" y="736">江</text>
<text x="772" y="766">西</text>
<text x="793" y="603">安</text>
<text x="793" y="633">徽</text>
<text x="674" y="466">山</text>
<text x="674" y="496">西</text>
<text x="604" y="536">陕</text>
<text x="604" y="566">西</text>
<text x="527" y="460">宁</text>
<text x="527" y="490">夏</text>
<text x="411" y="304">甘</text>
<text x="411" y="334">肃</text>
<text x="301" y="520">青海</text>
<text x="453" y="660">四川</text>
<text x="432" y="805">云南</text>
<text x="579" y="839">广西</text>
<text x="566" y="759">贵州</text>
<text x="579" y="691">重庆</text>
<text x="104" y="639">西藏</text>
<text x="163" y="288">新疆</text>
<text x="767" y="880" class="fs24">港</text>
<text x="711" y="880" class="fs24">澳</text>
</g>
<a href="https://lab.magiconch.com" target="_blank">
<text x="37" y="937" data-i18n="svg.sign"></text>
</a>
<text id="分数" x="35" y="883" data-i18n="svg.score"></text>
<g id="等级">
<path fill="#FF7E7E" d="M983 450h120v50H983Z" />
<path fill="#FFB57E" d="M983 500h120v50H983Z" />
<path fill="#FFE57E" d="M983 550h120v50H983Z" />
<path fill="#A8FFBE" d="M983 600h120v50H983Z" />
<path fill="#88AEFF" d="M983 650h120v50H983Z" />
<path fill="#FFF" d="M983 700h120v50H983Z" />
<path class="边框" d="M983 448h120v304H983Z" />
<text x="1000" y="484" data-i18n="svg.level_5"></text>
<text x="1000" y="535" data-i18n="svg.level_4"></text>
<text x="1000" y="585" data-i18n="svg.level_3"></text>
<text x="1000" y="635" data-i18n="svg.level_2"></text>
<text x="1000" y="685" data-i18n="svg.level_1"></text>
<text x="998" y="735" data-i18n="svg.level_0"></text>
</g>
</svg>
<div id="设置等级">
<h2 data-i18n="areaOpi.title"></h2>
<a data-level="5" data-i18n="areaOpi.data_level_5"></a>
<a data-level="4" data-i18n="areaOpi.data_level_4"></a>
<a data-level="3" data-i18n="areaOpi.data_level_3"></a>
<a data-level="2" data-i18n="areaOpi.data_level_2"></a>
<a data-level="1" data-i18n="areaOpi.data_level_1"></a>
<!-- <a data-level="0" alt>想要去</a> -->
<a data-level="0" data-i18n="areaOpi.data_level_0"></a>
</div>
<!-- 弹窗 -->
<form id="outputModal">
<h2 data-i18n="imgModal.title"></h2>
<div>
<label for="imgWidth" data-i18n="imgModal.width"></label>
<input type="number" id="imgWidth" value="1134">
</div>
<div>
<label for="imgHeight" data-i18n="imgModal.height"></label>
<input type="number" id="imgHeight" value="976">
</div>
<div>
<label for="imgName" data-i18n="imgModal.name"></label>
<input type="text" id="imgName" value="map">
</div>
<div>
<button id="btnOutputImg" type="submit" data-i18n="imgModal.submit"></button>
<button id="btnCloseModal" type="button" data-i18n="imgModal.cancel"></button>
</div>
</form>
<footer>
<button id="imgBtn" data-i18n="footer.img"></button>
<!--
<button id="langBtn" data-i18n="footer.lang" type="menu"></button> -->
<select name="language" id="languageSwitcher"></select>
</footer>
<script src="./index.js"></script>
<script src="./img.js"></script>
<script src="./i18n.js"></script>
</body>
</html>