-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharşiv.html
124 lines (108 loc) · 5.1 KB
/
arşiv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M6LVFSL79M"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-M6LVFSL79M');
</script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Sitemizde bir çok dersin kitaplarına kolay bir
şekilde erişebilirsiniz. Sitemiz kitap dosyalarını direkt İşler kitapevinin sunucularından
almaktadır ve 100% güvenilirdir.">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://unpkg.com/@catppuccin/[email protected]/css/catppuccin.css">
<title>Kaliteli İşler Kütüphane. İhtiyacın olan tek Z-Kitap indirme platformu!</title>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./sw.js').then(registration => {
console.log('Service worker registered:', registration);
}).catch(error => {
console.log('Service worker registration failed:', error);
});
});
}
</script>
</head>
<body>
<div class="header">
<h2>
Kaliteli İşler Kütüphanesi
<a href="index.html" style="color: var(--ctp-red);">ARŞİV</a>
</h2>
<p id="chromiumNotification"><b>CHROME/OPERA/BRAVE KULLANICILARI!</b> Eğer sitemizde indirme sorunu
yaşıyorsanız, lütfen indirmek istediğiniz kitabı basılı tutup / sağ tıklayıp "Bağlantıyı farklı kaydet"
seçeneğine tıklayın.</p>
<label for="libs">Kütüphane Seçiniz:</label>
<select name="libraries" id="libs">
<option value=""> </option>
<option value="matematik">Matematik</option>
<option value="fizik">Fizik</option>
<option value="kimya">Kimya</option>
<option value="biyoloji">Biyoloji</option>
<option value="tarih">Tarih</option>
<option value="cografya">Coğrafya</option>
<option value="felsefe">Felsefe</option>
<option value="edebiyat">Edebiyat</option>
</select>
</div>
<div class="about">
<blockquote>
Bu sayfa, <a href='index.html'>https://deniz.is-a.dev/isler-kutuphane</a>
adresindeki sitemizin veri tabanının <div style="display: inline-block;">27 Temmuz 2024</div> tarihinde
kaydedilen bir arşivini kullanmaktadır.
Sayfada bulunan linkler güncel olmayabilir.
</blockquote>
</div>
<div class="categories">
</div>
<div class="footer">
<p>Telif durumunda iletişime geçiniz</p>
<p><a href="https://deniz.is-a.dev">Deniz</a>'den ❤️lerle</p>
<p style="font-size: small;"><a href="https://github.com/creeperkafasi/isler-kutuphane">
(Sayfa Kaynağı)</a></p>
</div>
<script type="module">
async function loadLibrary(name) {
let booksXML =
await fetch(`https://raw.githubusercontent.com/creeperkafasi/isler-kutuphane/27-07-2024/lists/${name}.xml`).then(res => res.text()
.then(str => new window.DOMParser().parseFromString(str.trim(), "text/xml")));
document.querySelector(".categories").innerHTML = "";
Array.from(booksXML.querySelector("categories").children).forEach(cat => {
let div = document.createElement("div");
div.innerHTML = cat.querySelector("cName").innerHTML;
div.id = "c" + cat.querySelector("cId").innerHTML;
div.classList.add("category");
let booksdiv = document.createElement("div");
booksdiv.classList.add("books");
div.appendChild(booksdiv);
document.querySelector(".categories").appendChild(div);
})
Array.from(booksXML.querySelector("pics").children).forEach(pic => {
let div = document.createElement("div");
div.classList.add("book");
let bookimg = document.createElement("img");
bookimg.src = pic.querySelector("source").innerHTML;
let booklink = document.createElement("a");
booklink.href = pic.querySelector("fileName").innerHTML;
booklink.target = "_blank";
booklink.appendChild(bookimg);
div.appendChild(booklink);
document.querySelector(`#c${pic.querySelector("cId").innerHTML}>.books`).appendChild(div);
})
}
document.getElementById("libs").addEventListener("input", e => {
loadLibrary(e.target.value);
})
if (!window.chrome) {
document.getElementById("chromiumNotification").style.display = "none";
}
</script>
</body>
</html>