first commit

This commit is contained in:
benjibennn
2023-12-22 12:35:55 +08:00
commit 9f89a732d6
872 changed files with 156291 additions and 0 deletions

33
wave/docs/assets/app.js Normal file
View File

@@ -0,0 +1,33 @@
import 'alpinejs';
window.inIframe = function() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
document.addEventListener('DOMContentLoaded', function(){
if(inIframe()){
hideIframeElements();
}
});
window.hideIframeElements = function(){
document.getElementById('backToSiteBtn').classList.add('hidden');
}
window.searchFocused = function(focused){
if(focused){
document.getElementById('sidebar').classList.remove('overflow-scroll');
document.getElementById('bg-fade').classList.remove('invisible');
document.getElementById('bg-fade').classList.remove('opacity-0');
document.getElementById('bg-fade').classList.add('opacity-25');
} else {
document.getElementById('sidebar').classList.add('overflow-scroll');
document.getElementById('bg-fade').classList.add('invisible');
document.getElementById('bg-fade').classList.add('opacity-0');
document.getElementById('bg-fade').classList.remove('opacity-25');
}
}