废墟图书馆 完全版(PC+安卓)双版本可玩 中文版扮演图书馆的馆长,迎接慕名而来的宾客。您的司书将为图书馆奋战到底。宾客与司书的战斗在名为图书馆的舞台上一触即发。落败的宾客将成为书籍,图书馆亦随之壮大。而一本好书能让您邀请更多谜团重重。




const modal = document.getElementById(‘imageModal’);
const closeModal = document.getElementById(‘closeModal’);
const enlargedImg = document.getElementById(‘enlargedImg’);
const thumbnails = document.querySelectorAll(‘.img-thumbnail’);
thumbnails.forEach(thumbnail => {
thumbnail.addEventListener(‘click’, () => {
modal.classList.remove(‘hidden’);
enlargedImg.src = thumbnail.src;
enlargedImg.alt = thumbnail.alt;
document.body.style.overflow = ‘hidden’;
});
});
closeModal.addEventListener(‘click’, () => {
modal.classList.add(‘hidden’);
document.body.style.overflow = ‘auto’;
});
modal.addEventListener(‘click’, (e) => {
if (e.target === modal) {
modal.classList.add(‘hidden’);
document.body.style.overflow = ‘auto’;
}
});
document.addEventListener(‘keydown’, (e) => {
if (e.key === ‘Escape’ && !modal.classList.contains(‘hidden’)) {
modal.classList.add(‘hidden’);
document.body.style.overflow = ‘auto’;
}
});
