更新
This commit is contained in:
@@ -24,10 +24,11 @@
|
||||
color: #333;
|
||||
text-align: center;
|
||||
}
|
||||
.links {
|
||||
.links, .custom-link {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
@@ -43,6 +44,32 @@
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
}
|
||||
.custom-link {
|
||||
margin-top: 20px;
|
||||
}
|
||||
input[type="text"] {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #007bff;
|
||||
border-radius: 5px;
|
||||
font-size: 18px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
button {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -52,6 +79,19 @@
|
||||
<a href="https://drive.uc.cn/">UC 网盘</a>
|
||||
<a href="https://pan.quark.cn">夸克网盘</a>
|
||||
</div>
|
||||
<div class="custom-link">
|
||||
<input type="text" id="customUrl" placeholder="输入自定义网址">
|
||||
<button onclick="goToCustomUrl()">跳转</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function goToCustomUrl() {
|
||||
const customUrl = document.getElementById('customUrl').value.trim();
|
||||
if (customUrl) {
|
||||
window.location.href = customUrl.startsWith('http') ? customUrl : 'https://' + customUrl;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user