合并礼包猫v2.4.2(免广告获取奖励)中文版合并礼包猫是一款非常有趣的模拟养猫游戏,游戏中有非常多品种的小猫,玩家可以任意选择领养,养猫也很简单,但是要用心哦。游戏非常能令人感到愉悦,朋友们快来云吸猫吧!




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’;
}
});
上一篇:崩坏女孩大作战(内置MOD菜单)
下一篇:第九黎明3(MOD菜单)
