initial commit

This commit is contained in:
2026-03-29 09:33:09 +08:00
commit ed00924f21
79 changed files with 4996 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
// 右上角菜单按钮
$('.navbar-toggler').on('click', function() {
const expanded = $(this).attr('aria-expanded')
if(expanded == 'false') {
$(this).addClass('close-nav')
}
else {
$(this).removeClass('close-nav')
}
})
/**
* home.html
*/
function updatePcImg() {
const vw = document.body.clientWidth
$('.pc-source').each(function() {
const styl = this.getAttribute('style')
if(vw > 767.98) {
const url = this.getAttribute('data-pc-url')
this.setAttribute('style', `background-image: url(${url})`)
}
else {
this.setAttribute('style', styl)
}
})
}
updatePcImg()
window.onresize = updatePcImg