增加阿里盘导航

This commit is contained in:
uzVideo
2024-11-08 22:26:10 +08:00
parent 002def27ce
commit 90096c5aab

View File

@@ -24,7 +24,8 @@
color: #333;
text-align: center;
}
.links, .custom-link {
.links,
.custom-link {
display: flex;
flex-direction: column;
gap: 10px;
@@ -47,7 +48,7 @@
.custom-link {
margin-top: 20px;
}
input[type="text"] {
input[type='text'] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
@@ -76,20 +77,22 @@
<div class="container">
<h1>网盘导航</h1>
<div class="links">
<a href="https://drive.uc.cn/">UC 网盘</a>
<a href="https://pan.quark.cn">夸克网盘</a>
<a href="https://drive.uc.cn/">UC 网盘,登录后点击右上角绑定</a>
<a href="https://pan.quark.cn">夸克网盘,登录后点击右上角绑定</a>
<a href="https://al.omii.top">阿里 32 位 token,需要手动复制</a>
<a href="https://alist.nn.ci/tool/aliyundrive/request.html">阿里 280 位 token,需要手动复制</a>
</div>
<div class="custom-link">
<input type="text" id="customUrl" placeholder="输入自定义网址">
<input type="text" id="customUrl" placeholder="输入自定义网址" />
<button onclick="goToCustomUrl()">跳转</button>
</div>
</div>
<script>
function goToCustomUrl() {
const customUrl = document.getElementById('customUrl').value.trim();
const customUrl = document.getElementById('customUrl').value.trim()
if (customUrl) {
window.location.href = customUrl.startsWith('http') ? customUrl : 'https://' + customUrl;
window.location.href = customUrl.startsWith('http') ? customUrl : 'https://' + customUrl
}
}
</script>