Skip to content

Commit

Permalink
debug_buttonmore
Browse files Browse the repository at this point in the history
  • Loading branch information
qingmo0729 committed Oct 6, 2023
1 parent f2ab94f commit b0f0ac0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
5 changes: 4 additions & 1 deletion asserts/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ body.no-scroll {
position: fixed;
top: 0;
width: 100%;
max-width: 100vw;
transition: all 0.7s;
/* 平滑过渡效果 */
background-color: transparent !important;
Expand Down Expand Up @@ -742,6 +743,7 @@ div {

.overview-bg {
width: 100%;
max-width: 100vw;
float: right;
min-height: 50px;
margin-bottom: 0px;
Expand All @@ -766,6 +768,7 @@ div {
}

.overview-img {
max-width: 100vw;
height: 120px;
z-index: 90;
float: right;
Expand Down Expand Up @@ -1069,7 +1072,7 @@ body.dark-theme .book:hover {
opacity: 1;
}

/* 折叠菜单 */
/* 折叠按钮 */
button {
background-color: transparent;
cursor: pointer;
Expand Down
23 changes: 9 additions & 14 deletions asserts/js/my.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ window.addEventListener('scroll', function() {




// read more
$(document).ready(function () {
$("#readMoreBtn").click(function () {
$("#moreContent").toggleClass("hidden");
Expand Down Expand Up @@ -200,19 +200,14 @@ $('.book').on('click', function () {
});

// 折叠菜单
document.addEventListener('DOMContentLoaded', function() {
var acc = document.getElementsByClassName("accordion");
for (let i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}

$(document).ready(function() {
$(".accordion").on("click touchstart", function(e) {
e.preventDefault();
$(this).toggleClass("active");
var panel = $(this).next(".panel");
panel.slideToggle();
});
});

// team page img hover3D from jquery
Expand Down

0 comments on commit b0f0ac0

Please sign in to comment.