File size: 2,150 Bytes
d3c93f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bf1e686
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
<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Genshin Model Viewer</title>
    <style>
        body {
            font-family: Arial, sans-serif;
        }
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
            padding: 16px;
        }
        .card {
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            text-align: center;
            padding: 10px;
        }
        .card img {
            width: 100%;
            height: auto;
            border-bottom: 1px solid #ddd;
        }
    </style>
</head>
<body>
    <h1>Genshin Model Viewer</h1>
    <div class="grid" id="modelGrid"></div>
    
    <script>
        async function fetchData() {
            const response = await fetch("https://huggingface.co/datasets/public-soiz1/genshin-applio-rvc-data/raw/main/data.json");
            const data = await response.json();
            const container = document.getElementById("modelGrid");
            
            data.model_data.forEach(model => {
                const version = model[0];
                const name = model[1];
                const zipUrl = model[2];
                const imageUrl = model[3];
                
                // URLデコード処理
                const decodedUrl = decodeURIComponent(zipUrl);
                const fileName = decodedUrl.substring(decodedUrl.lastIndexOf("/") + 1, decodedUrl.lastIndexOf(".zip"));
                
                const card = document.createElement("div");
                card.className = "card";
                card.innerHTML = `
                    <img src="${imageUrl}" alt="${name}">
                    <h3>${name}</h3>
                    <p><strong>File:</strong> ${fileName}</p>
                    <p><a href="${zipUrl}" target="_blank">Download</a></p>
                `;
                container.appendChild(card);
            });
        }
        fetchData();
    </script>
</body>
</html>