forked from dejikcp/daohang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
186 lines (168 loc) · 7.58 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
---
---
<!doctype html>
<html>
<script>
art()
function art() {
var a = ""
var b = ""
while (b != "123488") { //改为你自己的密码!
a = prompt("输入正确密码才能登陆!")
if (a == "123488") {
b = a
alert("输入成功!")
return 0
}
if (a != "123458" && a != "") {
if (a == null) {
window.history.back();
location.reload(); //强制刷新
window.location.go(-1); //强制跳转上一界面
} else {
alert("密码错误!")
}
}
}
}
</script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//192.210.196.99:8081/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ site.domain }} - {{ site.title }}</title>
<link rel="stylesheet" href="css/style.css?220506">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
</head>
<body>
<h3 class="page-head">
<a href="/" class="logo">
<img src="img/logo.png" alt="{{ site.domain }} - {{ site.title }}" width="128">
<p><span class="ext">{{ site.title }}</span><span class="dot">·</span><span class="brand">{{
site.title_ext }}</span>
</a></p>
</h3>
<p style="text-align: center;">联系方式:
{%- for contact in site.contacts -%}
<a href="{%- if contact.url -%}{{ contact.url }}{%- else -%}javascript:void(0){%- endif -%}">
<i class="{{ contact.icon }}"></i>
{{ contact.text }}</a>
{%- if forloop.last != true -%} · {%- endif -%}
{%- endfor -%}
</p>
<ul id="followers-list">
{%- for domain in site.domains -%}
<li class="domain-card">
<a href="javascript:void(0)">
<img src="https://eu.ui-avatars.com/api/?background=random&name={{ domain.domain | slice: 0 }}&font-size=0.6" alt="{{ domain.domain }}">
<div class="domain-info">
<strong>{{ domain.domain }}</strong>
<span>{{ domain.description }}</span>
{% if domain.price %}
<span class="price">价格: {{ domain.price }} 欧/美元</span>
{% endif %}
</div>
<script>
var registrationDateString = '{{ domain.registration_date }}';
var registrationDate = new Date(registrationDateString);
var today = new Date();
today.setHours(0, 0, 0, 0);
// 计算下一个续费日期
var nextRenewalDate = new Date(registrationDate);
nextRenewalDate.setFullYear(today.getFullYear());
// 如果今年的续费日期已经过了,就计算明年的续费日期
if (nextRenewalDate < today) {
nextRenewalDate.setFullYear(today.getFullYear() + 1);
}
// 计算剩余天数
var timeDiff = nextRenewalDate.getTime() - today.getTime();
var remaining = Math.ceil(timeDiff / (1000 * 60 * 60 * 24));
// 格式化续费日期
var renewalDateStr = nextRenewalDate.getFullYear() + '-' +
String(nextRenewalDate.getMonth() + 1).padStart(2, '0') + '-' +
String(nextRenewalDate.getDate()).padStart(2, '0');
// 根据剩余天数决定显示样式
var warningClass = remaining <= 30 ? 'expiry-warning' : '';
document.write('<div class="expiry-date ' + warningClass + '">' +
(remaining <= 30 ? '⚠️ ' : '') +
'续费日期: ' + renewalDateStr +
' (剩余 ' + remaining + ' 天)</div>');
</script>
</a>
</li>
{%- endfor -%}
</ul>
<footer class="bg-gray-200 flex items-center px-10 py-5 flex justify-between flex-col lg:flex-row mt-16">
<div class="text-gray-500 text-sm text-center lg:text-left">
Copyright © 2024 {{ site.domain }}. 长期收单字符. <a class="text-gray-500"
href="https://github.com/bigtoyscompany/domain-portfolio">年轻的国王</a>
</div>
</footer>
<!-- 域名汇总信息 -->
<h3>域名汇总信息</h3>
<ul id="followers-list" class="domain-summary">
{%- assign total_amount = 0 -%}
{%- for domain in site.domains -%}
{%- assign total_amount = total_amount | plus: domain.price -%}
{%- endfor -%}
{%- assign domain_extensions = '' -%}
{%- for domain in site.domains -%}
{%- assign extension = domain.domain | split: '.' | last -%}
{%- unless domain_extensions contains extension -%}
{%- assign domain_extensions = domain_extensions | append: extension | append: ',' -%}
{%- endunless -%}
{%- endfor -%}
{%- assign extensions_array = domain_extensions | split: ',' | sort_natural -%}
{%- for extension in extensions_array -%}
{%- if extension != '' -%}
{%- assign count = 0 -%}
{%- assign extension_total = 0 -%}
{%- for domain in site.domains -%}
{%- if domain.domain contains extension -%}
{%- assign count = count | plus: 1 -%}
{%- assign extension_total = extension_total | plus: domain.price -%}
{%- endif -%}
{%- endfor -%}
<li>
<a href="javascript:void(0)">
<img src="https://eu.ui-avatars.com/api/?background=random&name={{ extension | slice: 0 }}&font-size=0.6">
<strong>{{ extension | upcase }}</strong>
<span>
域名数量: {{ count }} 个
<br>总金额: {{ extension_total }} 欧/美元
{% if site.domain_managers[extension] %}
<br>注册商: <a href="{{ site.domain_managers[extension].url }}"
target="_blank">{{ site.domain_managers[extension].name }}</a>
{% endif %}
</span>
</a>
</li>
{%- endif -%}
{%- endfor -%}
<li>
<a href="javascript:void(0)">
<strong>总金额</strong>
<span>{{ total_amount }} 欧/美元</span>
</a>
</li>
</ul>
</body>
</html>