-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
5,465 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>PixelDance2.0 Pro Results</title> | ||
<link rel="stylesheet" href="../css/specific_styles.css"> | ||
</head> | ||
<body> | ||
<main> | ||
<header> | ||
<div class="header-left"> | ||
<a href="../../index.html" class="back-to-main">← Back to Main</a> | ||
<div class="logo"> | ||
<span>●</span> PixelDance2.0 Pro (Nov.) | ||
</div> | ||
</div> | ||
<nav class="category-nav"> | ||
<a href="#text-to-video" class="category-button">Text-to-Video</a> | ||
<a href="#image-to-video" class="category-button">Image-to-Video</a> | ||
</nav> | ||
</header> | ||
<section class="intro"> | ||
<h1>Videos Generated by <a href="https://jimeng.jianying.com/ai-tool/home">PixelDance2.0 Pro</a></h1> | ||
</section> | ||
|
||
<section id="text-to-video"> | ||
<h1>Text-to-Video</h1> | ||
<div class="projects-container" id="gallery1"> | ||
<div class="projects"> | ||
</div> | ||
</div> | ||
</section> | ||
<section id="image-to-video"> | ||
<h1>Image-to-Video</h1> | ||
<div class="projects-container" id="gallery2"> | ||
<div class="projects"> | ||
</div> | ||
</div> | ||
</section> | ||
</main> | ||
|
||
<script src="./Pixel.js"></script> | ||
<script> | ||
// 平滑滚动 | ||
document.querySelectorAll('a[href^="#"]').forEach(anchor => { | ||
anchor.addEventListener('click', function (e) { | ||
e.preventDefault(); | ||
document.querySelector(this.getAttribute('href')).scrollIntoView({ | ||
behavior: 'smooth' | ||
}); | ||
}); | ||
}); | ||
|
||
// 高亮当前活动的导航项 | ||
const navLinks = document.querySelectorAll('.category-button'); | ||
const sections = document.querySelectorAll('section'); | ||
|
||
function changeLinkState() { | ||
let index = sections.length; | ||
|
||
while(--index && window.scrollY + 50 < sections[index].offsetTop) {} | ||
|
||
navLinks.forEach((link) => link.classList.remove('active')); | ||
navLinks[index - 1].classList.add('active'); | ||
} | ||
|
||
window.addEventListener('scroll', changeLinkState); | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.