document.writeln(`
929292.com『正版图库』
`)
function getQiShu() {
const now = new Date();
const utc = now.getTime() + (now.getTimezoneOffset() * 60000);
const beijing = new Date(utc + (8 * 60 * 60 * 1000));
const year = beijing.getFullYear();
const start = new Date(year, 0, 0);
const diff = beijing - start;
let day = Math.floor(diff / (1000 * 60 * 60 * 24));
if (beijing.getHours() >= 22) {
day += 1;
}
const endOfYear = new Date(year, 11, 31);
const totalDays = Math.floor((endOfYear - start) / (1000 * 60 * 60 * 24));
if (day > totalDays) {
day = 1;
}
return day;
}
var images21 = document.querySelectorAll('.grid3 img');
var overlay31 = document.querySelector('.overlay31');
var items31 = document.querySelectorAll('.grid-g22');
var base = "https://amo.jlidesign.com:4949/col/" + getQiShu() + "/";
var modal = document.createElement("div");
modal.className = "modal321";
modal.innerHTML = `
×
`;
document.body.appendChild(modal);
var previewImg = document.getElementById("previewImg321");
var imgTitle = document.querySelector(".imgTitle321");
function openSwal(imgName, title) {
previewImg.error = function () {
this.error = null;
this.src = "https://ddiot16x84ok8.cloudfront.net/pictures/public/err.png";
};
previewImg.src = base + imgName;
imgTitle.innerText = title;
overlay31.style.display = "block";
modal.style.display = "block";
document.body.style.overflow = 'hidden';
requestAnimationFrame(function () {
try {
var iframeRect = window.frameElement.getBoundingClientRect();
var modalTop = (window.parent.innerHeight / 2) - iframeRect.top - (modal.offsetHeight / 2) - 200;
if (modalTop < 20) {
modalTop = 20;
}
modal.style.top = modalTop + "px";
} catch (e) {
var modalTop = (window.innerHeight / 2) - (modal.offsetHeight / 2);
if (modalTop < 20) {
modalTop = 20;
}
modal.style.top = (window.pageYOffset + modalTop) + "px";
}
});
}
function closeModal() {
overlay31.style.display = "none"
modal.style.display = "none"
document.body.style.overflow = ''
}
document.querySelector(".closeIcon321").onclick = closeModal
document.querySelector(".closeBtn321").onclick = closeModal
overlay31.onclick = closeModal
window.addEventListener('keydown', function (event) {
if (event.key === 'Escape' || event.keyCode === 27) {
closeModal()
}
});