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?
Html css js bilenler
6
●160
- 19-12-2025, 10:12:26
- 19-12-2025, 10:18:11hocam 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:25:46Demek istediğim istediginizi tam anlayamadim ama 50 tane kutucuk yapip her kutuya tiklandiginda quiz actirmaktan mi bahsediyorsunuzErayEfe adlı üyeden alıntı: mesajı görüntüle
- 19-12-2025, 10:26:49Cok gelismis birsey olmayacak aslinda ama bilemedim nasil bir yol izlesem kafam corba gibi oldu😄 arayuzu hazirladim quiz sistemini nasil yapsam kafamda bir turlu oturtamadimefwlxc adlı üyeden alıntı: mesajı görüntüle
- 19-12-2025, 10:41:50diger 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>