Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
omiitop authored Jul 10, 2023
1 parent fad27a5 commit 98ecf0f
Show file tree
Hide file tree
Showing 18 changed files with 175 additions and 0 deletions.
Binary file added 影视/1.webp
Binary file not shown.
Binary file added 影视/2.webp
Binary file not shown.
Binary file added 影视/3.webp
Binary file not shown.
Binary file added 影视/4.webp
Binary file not shown.
2 changes: 2 additions & 0 deletions 影视/axios.min.js

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions 影视/copy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

const cards = document.querySelectorAll('.grid [data-config]');

cards.forEach(card => {
card.addEventListener('click', () => {
const configValue = card.getAttribute('data-config');

if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(configValue)
.then(() => {
Swal.fire({
icon: 'success',
title: '复制成功',
showConfirmButton: false,
timer: 1000
});
})
.catch(err => {
fallbackCopyTextToClipboard(configValue);
});
} else {
fallbackCopyTextToClipboard(configValue);
}
});
});

function fallbackCopyTextToClipboard(text) {
const textarea = document.createElement('textarea');
textarea.value = text;
textarea.style.position = 'fixed';
document.body.appendChild(textarea);

textarea.focus();
textarea.select();

try {
const successful = document.execCommand('copy');
const msg = successful ? 'successful' : 'unsuccessful';
console.log('Fallback: Copying text command was ' + msg);
if (successful) {
Swal.fire({
icon: 'success',
title: '复制成功',
showConfirmButton: false,
timer: 1000
});
} else {
Swal.fire({
icon: 'error',
title: '复制失败',
showConfirmButton: false,
timer: 1000
});
}
} catch (err) {
console.error('Fallback: Oops, unable to copy', err);
Swal.fire({
icon: 'error',
title: '复制失败',
showConfirmButton: false,
timer: 1000
});
}

document.body.removeChild(textarea);
}
32 changes: 32 additions & 0 deletions 影视/daohang.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* 样式用于折叠超过3个导航项 */
.hidden-nav-items {
display: none;
}

/* 样式用于显示超级导航列表窗口 */
#navListContainer {
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: white;
border: 1px solid #ccc;
z-index: 9999;
}

/* 样式用于导航列表容器 */
#navListContainer .container {
max-width: 800px;
}

/* 样式用于超级导航列表项 */
#navList a {
display: block;
width: calc(33.33% - 8px);
margin: 4px;
padding: 8px;
text-align: center;
background-color: #f9f9f9;
border: 1px solid #ccc;
border-radius: 4px;
}
31 changes: 31 additions & 0 deletions 影视/daohang.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// JavaScript 代码用于折叠和展开导航项
document.addEventListener("DOMContentLoaded", function() {
var navbar = document.getElementById("navbar");
var navItems = navbar.children;
var moreBtn = document.getElementById("moreBtn");
var navListContainer = document.getElementById("navListContainer");
var navList = document.getElementById("navList");

if (navItems.length > 3) {
// 超过3个导航项时进行折叠
for (var i = 3; i < navItems.length; i++) {
navItems[i].classList.add("hidden-nav-items");
}

// 显示更多按钮
moreBtn.style.display = "inline-block";

// 更多按钮点击事件
moreBtn.addEventListener("click", function() {
// 显示超级导航列表窗口
navListContainer.classList.toggle("hidden");

// 构建导航项列表
navList.innerHTML = "";
for (var i = 3; i < navItems.length; i++) {
var clonedNavItem = navItems[i].cloneNode(true);
navList.appendChild(clonedNavItem);
}
});
}
});
Binary file added 影视/dl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions 影视/img.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var swiper = new Swiper('.swiper-container', {
slidesPerView: 1,
spaceBetween: 10,
loop: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
}, autoplay: {
delay: 3000, // 设置轮播切换时间为3秒
},
});
2 changes: 2 additions & 0 deletions 影视/jquery-3.6.0.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions 影视/sweetalert2.all.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 影视/sweetalert2.min.css

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions 影视/swiper-bundle.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions 影视/swiper-bundle.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 影视/tailwind.min.css

Large diffs are not rendered by default.

Binary file added 影视/ys.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 影视/ys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 98ecf0f

Please sign in to comment.