Files
PC-official/create.html
DESKTOP-RQ919RC\Pc f8a3096a72 no message
2025-09-11 17:53:19 +08:00

252 lines
7.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>朴见潮音</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
<link rel="icon" href="/static/img/favicon.ico" type="image/x-icon" />
<style>
/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
width: 100%;
overflow: hidden;
margin: 0;
padding: 0;
}
body {
font-family: "Microsoft YaHei", Arial, sans-serif;
position: relative;
}
/* 页头样式 */
.page-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 90px;
background-color: #000;
color: #fff;
z-index: 20;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
padding: 0 30px;
}
.header-left {
display: flex;
flex-direction: column;
justify-content: center;
}
.header-right {
display: flex;
gap: 20px;
}
.header-right i {
font-size: 24px;
color: #f5f5f5;
transition: color 0.3s ease;
}
.header-right i:hover {
color: #1db954;
cursor: pointer;
}
/* 全屏iframe容器样式 */
.fullscreen-iframe-container {
position: fixed;
top: 90px; /* 调整为页头高度 */
left: 0;
width: 100%;
height: calc(100% - 90px); /* 减去页头高度 */
position: relative;
border: none;
margin: 0;
padding: 0;
overflow: hidden;
z-index: 1;
}
#haimian-iframe {
width: 100%;
height: 100%;
border: none;
margin: 0;
padding: 0;
}
/* Loading效果样式 */
#loading-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 10;
transition: opacity 0.5s ease;
}
.spinner {
width: 60px;
height: 60px;
border: 5px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
border-top-color: #1db954;
animation: spin 1s ease-in-out infinite;
margin-bottom: 20px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading-text {
color: #fff;
font-size: 18px;
letter-spacing: 2px;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% {
opacity: 0.5;
}
50% {
opacity: 1;
}
100% {
opacity: 0.5;
}
}
/* 页头标题样式 */
.header-title {
width: 139px;
height: 28px;
font-size: 28px;
font-weight: bold;
color: #fff;
letter-spacing: 1px;
/* margin-bottom: 5px; */
text-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}
/* 页头品宣样式 */
.header-slogan {
font-size: 14px;
font-style: italic;
color: #ccc;
letter-spacing: 0.5px;
}
/* LOGO蒙版样式 */
.logo-mask {
position: fixed;
top: 110px;
left: 20px;
width: 160px;
height: 39px;
background-color: #0d0d0d;
z-index: 5;
}
@media screen and (max-width: 1024px) {
.logo-mask {
/* transition: width 1s ease; */
width: 64px;
}
}
</style>
</head>
<body>
<header class="page-header">
<div class="header-content">
<div class="header-left">
<img class="header-title" src="/static/img/logo.png" />
<!-- <div class="header-slogan">探索音乐的无限可能</div> -->
</div>
<!-- <div class="header-right">
<i class="fas fa-music"></i>
<i class="fas fa-headphones"></i>
<i class="fas fa-volume-up"></i>
</div> -->
</div>
</header>
<div class="fullscreen-iframe-container">
<div id="loading-overlay">
<div class="spinner"></div>
<div class="loading-text">加载中...</div>
</div>
<iframe id="haimian-iframe" src="https://www.haimian.com/" frameborder="0" allowfullscreen></iframe>
</div>
<div class="logo-mask"></div>
<script>
document.addEventListener("DOMContentLoaded", function () {
// 获取元素
const iframe = document.getElementById("haimian-iframe");
const logoMask = document.querySelector(".logo-mask");
const headerIcons = document.querySelectorAll(".header-right i");
// 为音乐图标添加动画效果
headerIcons.forEach((icon, index) => {
icon.addEventListener("click", function () {
this.classList.add("fa-spin");
setTimeout(() => {
this.classList.remove("fa-spin");
}, 1000);
});
});
// 获取loading元素
const loadingOverlay = document.getElementById("loading-overlay");
// 等待iframe加载完成
iframe.addEventListener("load", function () {
console.log("iframe加载完成");
// 隐藏loading效果
loadingOverlay.style.opacity = "0";
setTimeout(() => {
loadingOverlay.style.display = "none";
}, 500);
// 由于跨域限制无法直接操作iframe内容
// 使用蒙版覆盖原网站LOGO
// 调整蒙版位置确保覆盖原网站LOGO
// 注意:由于跨域限制,可能需要手动调整这些值以适应不同屏幕尺寸
logoMask.style.top = "110px";
logoMask.style.left = "10px";
});
});
</script>
</body>
</html>