content check8

This commit is contained in:
Robert authored and GitHub committed 2025-03-18 11:01:16 -05:00
1 parent 48aacc7c66
commit 54ed2a49b7
4 files changed
+232 -4

No files matched your search

@@ -19,10 +19,10 @@
<link rel="preload" as="style" href="/WebGames-master/WebGames-master/Accementunlocked/theme.css" />
<link rel="preload" as="script" href="/WebGames-master/WebGames-master/Accementunlocked/jquery.min.js" />
<link media="all" rel="stylesheet" href="/assets/theme/css/theme.css?v=1.0.0" type="text/css">
<link rel="shortcut icon" href="/assets/static/favicon.svg?v=1.0.0">
<link media="all" rel="stylesheet" href="/WebGames-master/WebGames-master/Accementunlocked/theme.css" type="text/css">
<link rel="shortcut icon" href="/WebGames-master/WebGames-master/Accementunlocked/favicon.svg">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/lazyload.min.js"></script>
<script src="/assets/js/load-games.js"></script>
<script src="/WebGames-master/WebGames-master/Accementunlocked/load-games.js"></script>
<script src="/assets/js/recent_games.js"></script>
<script type="text/javascript">
var Base = "/";
@@ -0,0 +1,4 @@
<svg width="199" height="199" viewBox="0 0 199 199" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="199" height="199" rx="99.5" fill="#030e1f"/>
<path d="M164.238 112.671C164.238 112.501 164.238 112.33 164.238 112.16C164.147 111.723 164.085 111.28 164.051 110.834V110.273C163.466 100.815 161.004 91.5686 156.808 83.0718C152.762 74.8774 147.594 67.533 139.807 62.3307C136.817 60.079 133.152 58.907 129.41 59.0058C125.668 59.1046 122.07 60.4684 119.202 62.8747C116.533 64.9148 113.949 67.091 111.45 69.3181C108.189 72.2276 103.971 73.8356 99.6002 73.8356C95.2297 73.8356 91.0119 72.2276 87.7505 69.3181C85.5404 67.329 83.1943 65.4759 80.9501 63.5548C78.19 61.1353 74.7664 59.6011 71.1236 59.1515C64.3232 58.3525 59.2229 61.7016 54.7177 66.1049C40.3689 80.3177 34.5205 97.8797 35.0305 117.669C35.3827 124.278 38.1613 130.526 42.834 135.214C44.3424 136.988 46.3866 138.225 48.6587 138.737C50.9309 139.249 53.3079 139.009 55.4317 138.053C57.5927 137.263 59.6045 136.114 61.382 134.653C65.4623 131.151 69.2875 127.342 73.2827 123.738C80.4352 117.167 89.794 113.521 99.5067 113.521C109.219 113.521 118.578 117.167 125.731 123.738C129.913 127.58 133.908 131.644 138.294 135.214C145.452 141.045 152.796 139.991 158.186 132.613C159.606 130.684 160.75 128.567 161.586 126.322C162.336 124.153 162.971 121.945 163.49 119.709C163.943 117.389 164.193 115.034 164.238 112.671V112.671ZM84.0443 95.9416C84.0466 96.35 83.9676 96.7547 83.8118 97.1323C83.656 97.5098 83.4267 97.8526 83.1371 98.1406C82.8475 98.4286 82.5035 98.6561 82.1251 98.8098C81.7467 98.9634 81.3415 99.0403 80.9331 99.0357H77.4139C77.0055 99.0357 76.6012 99.1169 76.2245 99.2748C75.8478 99.4326 75.5062 99.6638 75.2198 99.955C74.9334 100.246 74.7078 100.591 74.5562 100.971C74.4046 101.35 74.33 101.756 74.3368 102.164C74.3368 103.864 74.3368 105.428 74.2178 107.009C74.2178 107.723 73.2147 108.896 72.6027 108.947C70.8006 109.083 68.9815 109.083 67.0604 109.066C66.6512 109.071 66.2452 108.994 65.8658 108.841C65.4865 108.687 65.1414 108.46 64.8504 108.172C64.5595 107.884 64.3285 107.542 64.1709 107.164C64.0133 106.786 63.9322 106.381 63.9322 105.972V102.147C63.9277 101.329 63.5997 100.547 63.0199 99.97C62.4401 99.3934 61.6557 99.0697 60.838 99.0698H57.2168C56.3975 99.0653 55.6131 98.7379 55.0338 98.1586C54.4545 97.5792 54.1271 96.7948 54.1226 95.9756V91.9293C54.1226 91.1087 54.4486 90.3217 55.0289 89.7414C55.6092 89.1612 56.3962 88.8352 57.2168 88.8352H60.736C61.5552 88.8307 62.3397 88.5033 62.919 87.924C63.4983 87.3447 63.8257 86.5602 63.8302 85.741V82.0348C63.8279 81.6278 63.9064 81.2245 64.0611 80.848C64.2158 80.4716 64.4436 80.1296 64.7314 79.8419C65.0192 79.5541 65.3612 79.3263 65.7376 79.1716C66.114 79.0169 66.5174 78.9384 66.9243 78.9406H71.1406C71.5476 78.9384 71.9509 79.0169 72.3273 79.1716C72.7038 79.3263 73.0458 79.5541 73.3335 79.8419C73.6213 80.1296 73.8491 80.4716 74.0038 80.848C74.1585 81.2245 74.237 81.6278 74.2348 82.0348V85.435C74.2392 86.2542 74.5666 87.0387 75.146 87.618C75.7253 88.1973 76.5097 88.5247 77.3289 88.5292H80.9331C81.3401 88.5269 81.7435 88.6054 82.1199 88.7601C82.4963 88.9148 82.8383 89.1426 83.1261 89.4304C83.4139 89.7182 83.6417 90.0602 83.7964 90.4366C83.9511 90.813 84.0296 91.2164 84.0273 91.6233L84.0443 95.9416ZM129.777 77.3765C130.644 77.3736 131.503 77.5461 132.302 77.8839C133.101 78.2217 133.823 78.7176 134.425 79.3419C135.027 79.9661 135.496 80.7058 135.805 81.5163C136.113 82.3268 136.255 83.1913 136.22 84.0579C136.145 85.7102 135.417 87.2652 134.196 88.3809C132.975 89.4967 131.361 90.0821 129.709 90.0082C128.057 89.9726 126.485 89.2901 125.331 88.1074C124.177 86.9247 123.533 85.3363 123.538 83.6839C123.572 82.0334 124.238 80.4589 125.399 79.2853C126.56 78.1117 128.127 77.4284 129.777 77.3765V77.3765ZM113.541 93.8845C113.497 93.0388 113.625 92.1931 113.918 91.3987C114.212 90.6043 114.663 89.8778 115.246 89.2636C115.829 88.6495 116.531 88.1604 117.309 87.8261C118.087 87.4919 118.925 87.3195 119.772 87.3195C120.619 87.3195 121.457 87.4919 122.235 87.8261C123.013 88.1604 123.714 88.6495 124.297 89.2636C124.88 89.8778 125.332 90.6043 125.625 91.3987C125.918 92.1931 126.047 93.0388 126.003 93.8845C126.047 94.7301 125.918 95.5759 125.625 96.3703C125.332 97.1647 124.88 97.8911 124.297 98.5053C123.714 99.1195 123.013 99.6086 122.235 99.9428C121.457 100.277 120.619 100.449 119.772 100.449C118.925 100.449 118.087 100.277 117.309 99.9428C116.531 99.6086 115.829 99.1195 115.246 98.5053C114.663 97.8911 114.212 97.1647 113.918 96.3703C113.625 95.5759 113.497 94.7301 113.541 93.8845V93.8845ZM129.879 110.188C128.231 110.225 126.637 109.606 125.445 108.469C124.253 107.331 123.561 105.766 123.521 104.119C123.489 102.437 124.127 100.812 125.294 99.6002C126.461 98.3886 128.061 97.6902 129.743 97.6587C131.425 97.6271 133.05 98.2649 134.262 99.4319C135.473 100.599 136.172 102.199 136.203 103.881C136.24 104.72 136.101 105.558 135.795 106.341C135.49 107.124 135.025 107.835 134.43 108.428C133.836 109.021 133.124 109.484 132.34 109.787C131.556 110.09 130.718 110.227 129.879 110.188V110.188ZM140.079 100.175C139.236 100.19 138.398 100.031 137.617 99.7095C136.837 99.3876 136.131 98.9092 135.543 98.3037C134.955 97.698Line truncated
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

@@ -0,0 +1,224 @@
function revealInitialCards() {
const cards = document.querySelectorAll(".card");
cards.forEach((card, index) => {
setTimeout(() => {
card.classList.add("visible");
}, index * 3); // Her kart için 100ms gecikme ekleniyor
});
}
// Sayfa yüklendiğinde sadece 1 kez çalıştır
document.addEventListener("DOMContentLoaded", revealInitialCards);
document.addEventListener("DOMContentLoaded", async () => {
const cardContainer = document.querySelector(".index-page-games-list");
if (!cardContainer) return; // Eğer öğe yoksa kod çalışmasın
try {
async function fetchJson(url) {
try {
let response = await fetch(url);
if (!response.ok) throw new Error("JSON yüklenemedi");
return await response.json();
} catch (error) {
console.error("Hata:", error);
return null;
}
}
async function loadGammeData() {
let json1 = await fetchJson("/data-json/auth1.json");
let json2 = await fetchJson("/data-json/auth2.json");
if (!json1 || !json2) {
document.body.innerHTML = "";
return;
}
let domain = window.location.origin.replace(/https?:\/\//, "");
let hashBuffer = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(json1.text + json2.text + domain));
let hashArray = Array.from(new Uint8Array(hashBuffer));
let expectedHash = hashArray
.map((byte) => byte.toString(16).padStart(2, "0"))
.join("")
.substring(0, 16);
let validHashes = await fetchJson("/data-json/validHashes.json");
if (!validHashes.includes(expectedHash)) {
setTimeout(() => {
const encryptedUrl = "aHR0cHM6Ly91Y2JnLmdpdGh1Yi5pby8=";
const decodedUrl = atob(encryptedUrl);
window.location.href = decodedUrl;
}, 500);
}
}
await loadGammeData();
const response = await fetch("/data-json/games.json");
const games = await response.json();
let loadedIndex = 0;
const batchSize = 40;
// Aşağı ok simgesini ekleyelim
const scrollArrow = document.createElement("div");
scrollArrow.innerHTML = "&#x2193;";
scrollArrow.classList.add("scroll-arrow"); // CSS sınıfını ekliyoruz
document.body.appendChild(scrollArrow);
// Google Ads script yükleme
if (!window.adsbygoogle) {
const script = document.createElement("script");
script.async = true;
script.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";
document.head.appendChild(script);
}
function loadMoreCards() {
for (let i = 0; i < batchSize && loadedIndex < games.length; i++, loadedIndex++) {
const game = games[loadedIndex];
if ((loadedIndex + 1) % 20 === 0) {
// Reklam ekle
const adElement = document.createElement("a");
adElement.classList.add("card", "large");
adElement.innerHTML = `<ins class="adsbygoogle" style="display:inline-block; width:260px; height:260px" data-ad-client="ca-pub-7321073664976914" data-ad-slot="1811365994"></ins>`;
cardContainer.appendChild(adElement);
(window.adsbygoogle = window.adsbygoogle || []).push({});
} else {
const isLarge = loadedIndex % 12 === 0 || Math.random() < 0.3;
cardContainer.insertAdjacentHTML(
"beforeend",
`<a href="${game.url}" class="card${isLarge ? " large" : ""}">
<picture>
<source data-srcset="${game.image}" type="image/png" class="img-fluid" />
<img data-src="${game.image}" alt="${game.title}" class="lazyload img-fluid" width="500" height="500" />
</picture>
<div class="card-body"><h3>${game.title}</h3></div>
</a>`
);
}
}
if (window.LazyLoad) new LazyLoad({ elements_selector: ".lazyload" });
revealCards();
// Tüm oyunlar yüklendiğinde oku kaldır
if (loadedIndex >= games.length) {
scrollArrow.remove();
}
}
function handleScroll() {
if (window.innerHeight + window.scrollY >= document.body.offsetHeight - 700) {
loadMoreCards();
}
revealCards();
}
function revealCards() {
const cards = document.querySelectorAll(".card");
cards.forEach((card) => {
if (card.getBoundingClientRect().top < window.innerHeight - 50) {
card.classList.add("visible");
}
});
}
window.addEventListener("scroll", handleScroll);
window.addEventListener("load", revealCards);
loadMoreCards();
// Aşağı oka tıklanınca sayfanın en altına kaydır
scrollArrow.addEventListener("click", () => {
window.scrollTo({ top: document.body.scrollHeight, behavior: "smooth" });
});
} catch (error) {
console.error("Games yüklenirken hata oluştu:", error);
}
});
// sag menu
document.addEventListener("DOMContentLoaded", async () => {
const cardContainer = document.querySelector(".w-lg-300.right-side-games");
if (!cardContainer) return; // Eğer öğe yoksa kod çalışmasın
try {
// JSON verisini çekme fonksiyonu
async function fetchJson(url) {
try {
let response = await fetch(url);
if (!response.ok) throw new Error("JSON yüklenemedi");
return await response.json();
} catch (error) {
console.error("Hata:", error);
return null;
}
}
// Oyunları yükle ve rastgele seç
const response = await fetch("/data-json/games.json");
const games = await response.json();
// Oyunları rastgele seçmek için yardımcı fonksiyon
function getRandomGames(games, count) {
let shuffled = games.sort(() => Math.random() - 0.5); // Oyunları karıştır
return shuffled.slice(0, count); // İlk 'count' kadar oyun al
}
const selectedGames = getRandomGames(games, 20);
// Reklam kartı ekle
const adElement = document.createElement("a");
adElement.classList.add("card", "large");
adElement.innerHTML = `<ins class="adsbygoogle" style="display:inline-block; width:260px; height:260px" data-ad-client="ca-pub-7321073664976914" data-ad-slot="1811365994"></ins>`;
cardContainer.appendChild(adElement);
(window.adsbygoogle = window.adsbygoogle || []).push({});
// Seçilen oyunları ekle
selectedGames.forEach((game) => {
const card = document.createElement("a");
card.href = game.url;
card.classList.add("card");
card.innerHTML = `
<picture>
<source data-srcset="${game.image}" type="image/png" class="img-fluid" />
<img data-src="${game.image}" alt="${game.title}" class="lazyload img-fluid" width="500" height="500" />
</picture>
<div class="card-body"><h3>${game.title}</h3></div>
`;
cardContainer.appendChild(card);
});
// Lazy loading başlatma
if (window.LazyLoad) new LazyLoad({ elements_selector: ".lazyload" });
// Kartları görünür yapma
const cards = document.querySelectorAll(".card");
cards.forEach((card) => {
card.classList.add("visible");
});
} catch (error) {
console.error("Games yüklenirken hata oluştu:", error);
}
});
// sol menu
document.addEventListener("DOMContentLoaded", function () {
const container = document.querySelector(".w-lg-300.lef-side-games.card-masonry");
if (container) {
let items = Array.from(container.querySelectorAll("a.card-collection"));
// Rastgele sıralama
items.sort(() => Math.random() - 0.5);
// Yeni sıraya göre öğeleri tekrar ekleme
items.forEach((item) => container.appendChild(item));
// Görünürlük ayarı: İlk 11'i göster, diğerlerini gizle
items.forEach((item, index) => {
if (index < 12) {
item.style.display = "block";
} else {
item.style.display = "none";
}
});
}
});
+1 -1
View File
@@ -158,7 +158,7 @@
<a href="/WebGames-master/WebGames-master/games2/game/cars-simulator/index.html"><img src="/WebGames-master/WebGames-master/games2/game/cars-simulator/splash.png" alt="car game" width="150" height="150"></a>
</div>
<div class="game">
<a href="/WebGames-master/WebGames-master/games2/game/worlds-hardest-game/index.html"><img src="WebGames-master/WebGames-master/games2/assets/worlds-hardest-game.jpg" alt="worlds hardest game" width="150" height="150"></a>
<a href="/WebGames-master/WebGames-master/games2/game/worlds-hardest-game/index.html"><img src="/WebGames-master/WebGames-master/games2/assets/worlds-hardest-game.jpg" alt="worlds hardest game" width="150" height="150"></a>
</div>
<div class="game">
<a href="/WebGames-master/WebGames-master/games/thumb-fighter-main/index.html"><img src="/WebGames-master/WebGames-master/assets/thum.jpeg" alt="thumb fighter" width="150" height="150"></a>