-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.html
64 lines (61 loc) · 3.04 KB
/
sitemap.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cariolshop - Sitemap</title>
<meta name="description" content="Daftar isi sitemap situs cariolshop.com update terbaru">
<meta property="og:title" content="Daftar isi produk Cariolshop">
<meta property="og:description" content="Daftar isi sitemap situs cariolshop.com update terbaru">
<meta name="google-site-verification" content="mVw9eljKmI-j_RUhMXOChqQKFFSG_uYAan_aSioEG7c" />
<meta name="google-site-verification" content="4OC2tBl_CD5xhRVD29pkIEoCpj2RluaDGCQAUULlb7A" />
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400&family=IBM+Plex+Sans:wght@500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Daftar isi Cariolshop</h1>
</header>
<main>
<p style="padding: 10px;">
<a href="/" style="margin: 5px;">Beranda</a>
<a href="/sitemap" style="margin: 5px;">Sitemap</a>
</p>
<script async src="https://cse.google.com/cse.js?cx=a4ed67d1e0ab41245"></script>
<div class="gcse-search"></div>
<ul id="daftarIsi"><li id="loadingMessage">Tunggu Sebentar...</li></ul>
</main>
<script>
document.addEventListener('DOMContentLoaded', async function() {
try {
const feedUrl = 'https://api.allorigins.win/raw?url=https://feeds.feedburner.com/cariolshop';
document.getElementById('loadingMessage').textContent = 'Sedang mengambil feed...';
const response = await fetch(feedUrl);
const text = await response.text();
const parser = new DOMParser();
const xmlDoc = parser.parseFromString(text, 'text/xml');
const items = xmlDoc.querySelectorAll('item');
items.forEach(item => {
const title = item.querySelector('title').textContent;
const link = item.querySelector('link').textContent;
const listItem = document.createElement('li');
const anchor = document.createElement('a');
anchor.href = link;
anchor.textContent = title;
listItem.appendChild(anchor);
document.getElementById('daftarIsi').appendChild(listItem);
});
document.getElementById('loadingMessage').style.display = 'none';
} catch (error) {
const errorMessage = document.createElement('li');
errorMessage.textContent = 'Terjadi kesalahan saat mengambil feed.';
document.getElementById('daftarIsi').appendChild(errorMessage);
document.getElementById('loadingMessage').style.display = 'none';
}
});
</script>
</body>
</html>