1
Fork 0

Update 6 files

- /app/index.html
- /app/index.js
- /assets/style.css
- /assets/jsonqb/Chemistry 2025 QB merged.json
- /assets/jsonqb/Physics 2025 QB merged.json
- /assets/jsonqb/Biology 2025 QB merged.json
This commit is contained in:
pirateIB 2025-06-20 11:29:08 +00:00
parent 7db98ac97c
commit 70f62f995e
6 changed files with 7822 additions and 30 deletions

View file

@ -27,14 +27,6 @@
Loading, please wait...
</div>
<div id="root">
<header>
<div style="position: fixed; right: 15px; z-index: 9999;">
<button id="addalltoPDFbtn" class="btn-primary hidden" onclick="addalltoPDF()">Add all Qs to PDF</button>
<button id="generatePDFbtn" class="btn-primary hidden" onclick="generatePDF()">Generate PDF!</button>
<button id="darkmodebtn" class="btn-primary" onclick="toggleDarkMode()">Dark Mode</button>
<button id="helpbtn" class="btn-secondary" onclick="toggleHelp()">Help</button>
</div>
</header>
<div id="appContainer" class="h-full w-full">
<div id="left-col" class="flex flex-col bg-white p-2">
<div class="p-3"><a href="../index.html"><button class="btn-primary">< Go Home</button></button></a></div>
@ -55,7 +47,50 @@
<br>
<div id="topic-list"></div>
</div>
<div id="right-col" class="flex flex-col bg-gray-100 p-2">
<div id="right-wrapper">
<div id="upper-right-col" class="flex flex-col bg-gray-100 p-2">
<div class="toolbar">
<button id="addalltoPDFbtn" class="btn-primary hidden" onclick="addalltoPDF()">Add all Qs to PDF</button>
<button id="generatePDFbtn" class="btn-primary hidden" onclick="generatePDF()">Generate PDF!</button>
<button id="darkmodebtn" class="btn-primary" onclick="toggleDarkMode()">Dark Mode</button>
<button id="helpbtn" class="btn-secondary" onclick="toggleHelp()">Help</button>
</div>
<div class="selectables p-2 hidden">
<label for="paper-select"><b>Paper:</b>
<select id="paper-select">
<option value="">All</option>
<option value="1">Paper 1</option>
<option value="2">Paper 2</option>
<option value="3">Paper 3</option>
</select>
</label>
<label for="level-select"><b>Level:</b>
<select id="level-select">
<option value="">All</option>
<option value="standard">SL</option>
<option value="higher">HL</option>
</select>
</label>
<!--<label for="topic-select"><b>Topics:</b>
<select id="topic-select">
<option value="">All</option>
</select>
</label>-->
<label for="subtopic-select" ><b>Subtopics:</b>
<select id="subtopic-select">
<option value="">All</option>
</select>
</label>
</div>
</div>
<div id="right-col" class="flex flex-col bg-gray-100 p-2"></div>
</div>
<div id="modal" class="fixed left-0 top-0 hidden flex h-full w-full items-center justify-center bg-black/70">
<div class="flex h-full w-full md:h-3/4 md:w-3/4 flex-col border bg-gray-100 p-4">
@ -98,6 +133,19 @@
<h4 class="ms-2">IB Biology 2025 QuestionBank (split by parts)
</h4>
</div>
<div class="flex items-center mt-2">
<button id="bioqb25-merged" class="btn-primary flex items-center" onclick="toggleModal()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="me-2">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="16"></line>
<line x1="8" y1="12" x2="16" y2="12"></line>
</svg> Add
</button>
<h4 class="ms-2">IB Biology 2025 QuestionBank (parts merged)
</h4>
</div>
<div class="flex items-center mt-2">
<button id="bmqb" class="btn-primary flex items-center" onclick="toggleModal()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
@ -137,6 +185,19 @@
<h4 class="ms-2">IB Chemistry 2025 QuestionBank (split by parts)
</h4>
</div>
<div class="flex items-center mt-2">
<button id="chemqb25-merged" class="btn-primary flex items-center" onclick="toggleModal()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="me-2">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="16"></line>
<line x1="8" y1="12" x2="16" y2="12"></line>
</svg> Add
</button>
<h4 class="ms-2">IB Chemistry 2025 QuestionBank (parts merged)
</h4>
</div>
<div class="flex items-center mt-2">
<button id="compsciqb" class="btn-primary flex items-center" onclick="toggleModal()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
@ -280,6 +341,19 @@
<h4 class="ms-2">IB Physics 2025 QuestionBank (split by parts)
</h4>
</div>
<div class="flex items-center mt-2">
<button id="phyqb25-merged" class="btn-primary flex items-center" onclick="toggleModal()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="me-2">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="16"></line>
<line x1="8" y1="12" x2="16" y2="12"></line>
</svg> Add
</button>
<h4 class="ms-2">IB Physics 2025 QuestionBank (parts merged)
</h4>
</div>
<div class="flex items-center mt-2">
<button id="psychqb" class="btn-primary flex items-center" onclick="toggleModal()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
@ -325,9 +399,9 @@
</div>
<div class="m-0 mt-2 overflow-auto p-0 font-serif max-h-60vh">
<div class="font-sans">
<h3>· Why are QBv6 (2025 sciences) questions split by parts?</h3>
<h3>· The 2025 science questionbanks have very few questions. Will you merge the previous questionbank into it?</h3>
<br>
<p>Ask IB ¯\_(ツ)_/¯ Full combined version coming soon!</p>
<p>Soon™... it requires huge manual work because the syllabus changes are big.</p>
<br>
<h3>· I tried to save all the questions as PDF, and my computer got frozen!</h3>
<br>