-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
188 lines (160 loc) · 6.95 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
<!--
* @Author: miaoermua
* @Date: 2023-01-31 22:36:15
* @LastEditors: 喵二
* @LastEditTime: 2024-04-04 14:04:24
* @FilePath: \undefinedn:\Git\CatWrt\index.html
-->
<!DOCTYPE html>
<html>
<head>
<html lang="zh-cn-Hans">
<meta charset="utf-8">
<title>CatWrt Repository</title>
<link rel="icon" href="https://cdn.miaoer.xyz/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="https://cdn.miaoer.xyz/favicon.ico" type="image/x-icon">
<style>
html, body{
height: 100%;
}
body{
color: #333;
margin: auto;
padding: 1em;
display: table;
user-select: none;
box-sizing: border-box;
font: lighter 20px "微软雅黑";
background-image:url('https://cdn.miaoer.xyz/images/bg/kami/background.png');
width: 50%;
}
a{
color: #3498db;
text-decoration: none;
}
h1{
margin-top: 6;
font-size: 1.5em;
}
main{
margin: 0 auto;
text-align: center;
display: table-cell;
vertical-align: middle;
font-size: 20px;
}
p{
font-size:16px;
}
.btn{
appearance: none;
border: none;
outline: none;
background: transparent;
cursor: pointer;
color: #3498db;
font-size: 16px;
padding: 0.75em 1em;
transition: all 0.3s ease;
&:hover,
&:focus {
color: #2176bd;
text-decoration: underline;
}
}
.svg-title-logo {
display: inline-block;
width: 23px;
height: 23px;
}
.info-container {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.btn:hover{
transform: scale(1.1);
}
.btn:active{
opacity: .7;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
const url = new URL(window.location.href);
const domain = url.hostname;
document.getElementById('current-domain').textContent = domain;
const domainSources = {
'repo.miaoer.xyz': '阿里云',
'github.catwrt.eu.org': 'Github Pages',
'cfnetlify.catwrt.eu.org': '☁️ Cloudflare - Netlify',
'cfvercel.catwrt.eu.org': '☁️ Cloudflare - Vercel',
'netlify.catwrt.eu.org': 'Netlify',
'vercel.catwrt.eu.org': 'Vercel',
};
let sourceInfo;
if (domainSources.hasOwnProperty(domain)) {
sourceInfo = domainSources[domain];
} else if (/^(?:\d{1,3}\.){3}\d{1,3}$/.test(domain)) {
sourceInfo = '本地部署';
} else {
sourceInfo = '未知源';
}
document.getElementById('source-info').textContent = `站点:${sourceInfo}`;
});
</script>
</head>
<body>
<h1 style="color: #5E72E4;">
<div class="svg-title-logo">
<!-- Generator: Adobe Illustrator 27.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="图层_1" xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="10px" y="10px" viewBox="0 0 256 256"
style="enable-background:new 0 0 256 256;" xml:space="preserve">
<style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:url(#svg_2_00000009581766544743910510000007087157279682564742_);}
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:url(#svg_3_00000013155245276689480680000010334395393893521599_);}
.st2{fill:#FFFFFF;}
</style>
<g>
<g id="svg_1">
<linearGradient id="svg_2_00000043442590260727270070000016472210641679865270_" gradientUnits="userSpaceOnUse" x1="11.1563" y1="247.3437" x2="245.4437" y2="13.0563" gradientTransform="matrix(1 0 0 -1 0 258)">
<stop offset="0" style="stop-color:#5E72E4"/>
<stop offset="1" style="stop-color:#778AFF"/>
</linearGradient>
<path id="svg_2" style="fill-rule:evenodd;clip-rule:evenodd;fill:url(#svg_2_00000043442590260727270070000016472210641679865270_);" d="
M36.4,0.2h183.8c19.7,0,35.7,16,35.7,35.7v183.8c0,19.7-16,35.7-35.7,35.7H36.4c-19.7,0-35.7-16-35.7-35.7V35.9
C0.7,16.2,16.7,0.2,36.4,0.2z"/>
<linearGradient id="svg_3_00000010280352489557108120000000938545297310085033_" gradientUnits="userSpaceOnUse" x1="0.7" y1="257.8" x2="0.7" y2="257.8" gradientTransform="matrix(1 0 0 -1 0 258)">
<stop offset="0" style="stop-color:#5E72E4"/>
<stop offset="1" style="stop-color:#778AFF"/>
</linearGradient>
<path id="svg_3" style="fill-rule:evenodd;clip-rule:evenodd;fill:url(#svg_3_00000010280352489557108120000000938545297310085033_);" d="
M0.7,0.2"/>
</g>
<path id="svg_4" class="st2" d="M128.3,45.4c-46.7,0-84.4,37.8-84.4,84.4c0,32.2,18.1,60.2,44.6,74.4c6.8,3.7,15.3-0.2,17.2-7.7
l4.3-17.6c1.5-6.2-1-12.6-6.1-16.4c-10-7.4-16.4-19.3-16.4-32.7c0-22.5,18.3-40.7,40.7-40.7c22.5,0,40.7,18.3,40.7,40.7
c0,13.4-6.4,25.2-16.4,32.7c-5.1,3.8-7.6,10.2-6.1,16.5l4.4,17.6c1.9,7.5,10.3,11.4,17.2,7.7c26.6-14.2,44.6-42.2,44.6-74.5
C212.8,83.3,174.9,45.4,128.3,45.4L128.3,45.4z"/>
</g>
<circle class="st2" cx="128.3" cy="131.6" r="18.3"/>
</svg>
</div> CatWrt Repository</h1>
<p>文件预览仅限主站以及 Docker 自部署,也可以通过 GitHub 查看。</p><br><br/>
<center>
<iframe height="400px" width="100%" src="file.html" name="iframe_a" style="border: none;"></iframe>
<div class="info-container">
<p>当前源站:<span id="current-domain"></span></p>
<p id="source-info"></p>
</div>
<button class="btn" onclick="location.href='https://www.miaoer.xyz/posts/network/catwrt-install-application'">安装/换源</button>
<button class="btn" onclick="location.href='https://www.miaoer.xyz/posts/network/catwrt-applist'">常见问题</button>
<button class="btn" onclick="location.href='https://www.miaoer.xyz/network/catwrt'">固件下载</button>
<button class="btn" onclick="location.href='https://www.miaoer.xyz/sponsor'">支持喵二</button>
<br><br/>
<p>⚠️ 此处是 CatWrt 软件源的储存库,请注意这并不是 CatWrt rootfs 版本的实现。</p>
</center>
<p style="padding-top: 1em;">CatWrt-Repo Services Online</p>
<p>© 2021-2024 <a href="https://github.com/miaoermua/CatWrt"> CatWrt</a> By <a href="https://www.miaoer.xyz"> miaoer</a></p>
<!-- design by 保罗@'paugram.com' --->
</html>