• 19-12-2025, 10:12:26
    #1
    Html css jss kullanarak bir quiz sitesi yapip daha sonra bunu webview ile uygulamaya cevirecegim
    Her quiz farkli html sayfasinda olucak sorulari json dosyasindan çekeceğim suanki hesaplamalarima gore 320civari html sayfasi olucak aslinda daha fazla istiyorum 1200civari html sayfasi olusturmak istiyorum fakat bu kadar html sayfasi sorun yaratir mi mantigi bir turlu oturtamadim nasil yapsam bu konuda tavsiyeleri olan var mi?
  • 19-12-2025, 10:18:11
    #2
    hocam 1200 html sayfası yapmak mümkün olsa da bence yanlış bir yapı olur. 1200 dosyada sürekli script, style, header, footer vb. eklemen gerekir. webview uygulamada her html ayrı bir asset olur, apk boyutu şişer. ayrıca asset’lerin indexlenmesi ve yüklenmesi yavaşlayabilir.
  • 19-12-2025, 10:19:11
    #3
    Hepsi için ayrı html yerine bir html ile şablon yapıp url de is verirsiniz. Js ile id okur, jsondan çekersiniz.
  • 19-12-2025, 10:25:46
    #4
    ErayEfe adlı üyeden alıntı: mesajı görüntüle
    Hepsi için ayrı html yerine bir html ile şablon yapıp url de is verirsiniz. Js ile id okur, jsondan çekersiniz.
    Demek istediğim istediginizi tam anlayamadim ama 50 tane kutucuk yapip her kutuya tiklandiginda quiz actirmaktan mi bahsediyorsunuz
  • 19-12-2025, 10:26:49
    #5
    efwlxc adlı üyeden alıntı: mesajı görüntüle
    hocam 1200 html sayfası yapmak mümkün olsa da bence yanlış bir yapı olur. 1200 dosyada sürekli script, style, header, footer vb. eklemen gerekir. webview uygulamada her html ayrı bir asset olur, apk boyutu şişer. ayrıca asset’lerin indexlenmesi ve yüklenmesi yavaşlayabilir.
    Cok gelismis birsey olmayacak aslinda ama bilemedim nasil bir yol izlesem kafam corba gibi oldu😄 arayuzu hazirladim quiz sistemini nasil yapsam kafamda bir turlu oturtamadim
  • 19-12-2025, 10:40:59
    #6
    Json kayıt edeceğine SQL de tut verileri PHP ile dinamik yapıya dönüştür admin panelden istediğin gibi oyna ekle çıkar sil duzenle 1 günlük iş toplam
  • 19-12-2025, 10:41:50
    #7
    diger arkadaslarin dedigi gibi tek tek html olusturmana gerek yok. bir tane html ve testleri json olarak saklamak yeterli. hatta tek htmlin icine de koyabilirsin. ornek;
    <nav></nav>
            <div id="currentTest"></div>
    
            <script>
                const tests = [
                    {
                        title: "Test 1",
                        questions: [
                            {
                                title: "Soru 1",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            },
                            {
                                title: "Soru 2",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            },
                            {
                                title: "Soru 3",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            }
                        ]
                    },
                    {
                        title: "Test 2",
                        questions: [
                            {
                                title: "Soru 1",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            },
                            {
                                title: "Soru 2",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            },
                            {
                                title: "Soru 3",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            }
                        ]
                    },
                    {
                        title: "Test 3",
                        questions: [
                            {
                                title: "Soru 1",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            },
                            {
                                title: "Soru 2",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            },
                            {
                                title: "Soru 3",
                                answers: ['cevap 1', 'cevap 2', 'cevap 3']
                            }
                        ]
                    }
                ];
                let currentTest = 0;
    
                function showCurrentTest() {
                    const test = tests[currentTest];
                    const testElement = document.getElementById('currentTest');
                    testElement.innerHTML = `
                        <h2>${test.title}</h2>
                        ${test.questions.map(question => `
                            <h3>${question.title}</h3>
                            <ul>
                                ${question.answers.map(answer => `<li>${answer}</li>`).join('')}
                            </ul>
                        `).join('')}
                    `;
                }
    
                showCurrentTest();
    
                function createNavigation() {
                    const navElement = document.querySelector('nav');
                    for (let i = 0; i < tests.length; i++) {
                        const link = document.createElement('a');
                        link.href = '#';
                        link.textContent = tests[i].title;
                        link.addEventListener('click', () => {
                            currentTest = i;
                            showCurrentTest();
                        });
                        navElement.appendChild(link);
                    }
                }
    
                createNavigation();
            </script>