Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
whizbangpop committed May 14, 2024
1 parent c859cf0 commit dc0d6ce
Show file tree
Hide file tree
Showing 4 changed files with 302 additions and 0 deletions.
70 changes: 70 additions & 0 deletions adv-higher.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SQA Digital Paper Finder</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
</head>
<body>
<main class="container">
<nav>
<ul>
<li><strong>SQA DPST</strong></li>
</ul>
<ul>
<li><a href="./national-5.html">National 5</a></li>
<li><a href="./higher.html">Higher</a></li>
<li><strong>Adv Higher</strong></li>
</ul>
</nav>

<input
type="search"
name="search"
placeholder="Search"
aria-label="Search"
onkeyup="searchHighlighter()"
id="input-search"
/>
</main>
<main class="container" id="papers">
<ul>
<li><a href="#biology">Biology</a>
<ul>
<li><a href="#bio-2023">2023</a>: https://biolou.com</li>
</ul>
</li>
<li><a href="#english">English</a>
<ul>
<li><a href="#eng-2023">2023</a>: https://biolou.com</li>
</ul>
</li>
</ul>
</main>
<footer class="container">
<p>All papers belong to the SQA. This tool was developed to improve seraching for SQA digital papers.</p>
</footer>

<script>
function searchHighlighter() {
const inputValue = document.getElementById("input-search").value;
const listItems = document.querySelector("#papers").querySelectorAll("li");
if (!inputValue) {
listItems.forEach((li) => (li.querySelector("a").style.color = "#1167b1"));
return;
}
listItems.forEach((li) => {
const child = li.querySelector("a");
const txtValue = child.innerText;
child.style.color =txtValue.toUpperCase().indexOf(inputValue.toUpperCase()) > -1
? "green"
: "#1167b1";
});
}
</script>
</body>
</html>
70 changes: 70 additions & 0 deletions higher.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SQA Digital Paper Finder</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
</head>
<body>
<main class="container">
<nav>
<ul>
<li><strong>SQA DPST</strong></li>
</ul>
<ul>
<li><a href="./national-5.html">National 5</a></li>
<li><strong>Higher</strong></li>
<li><a href="./adv-higher.html">Adv Higher</a></li>
</ul>
</nav>

<input
type="search"
name="search"
placeholder="Search"
aria-label="Search"
onkeyup="searchHighlighter()"
id="input-search"
/>
</main>
<main class="container" id="papers">
<ul>
<li><a href="#biology">Biology</a>
<ul>
<li><a href="#bio-2023">2023</a>: https://biolou.com</li>
</ul>
</li>
<li><a href="#english">English</a>
<ul>
<li><a href="#eng-2023">2023</a>: https://biolou.com</li>
</ul>
</li>
</ul>
</main>
<footer class="container">
<p>All papers belong to the SQA. This tool was developed to improve seraching for SQA digital papers.</p>
</footer>

<script>
function searchHighlighter() {
const inputValue = document.getElementById("input-search").value;
const listItems = document.querySelector("#papers").querySelectorAll("li");
if (!inputValue) {
listItems.forEach((li) => (li.querySelector("a").style.color = "#1167b1"));
return;
}
listItems.forEach((li) => {
const child = li.querySelector("a");
const txtValue = child.innerText;
child.style.color =txtValue.toUpperCase().indexOf(inputValue.toUpperCase()) > -1
? "green"
: "#1167b1";
});
}
</script>
</body>
</html>
43 changes: 43 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SQA Digital Paper Finder</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
</head>
<body>
<main class="container">
<nav>
<ul>
<li><strong>SQA DPST</strong></li>
</ul>
<ul>
<li><a href="./national-5.html">National 5</a></li>
<li><a href="./higher.html">Higher</a></li>
<li><a href="./adv-higher.html">Adv Higher</a></li>
</ul>
</nav>
</main>
<main class="container" id="welcome">
<h2>Welcome!</h2>
<p>This site was developed in order to make searching for SQA digital past papers slightly easier. Just select the level you are learning at, and then either scroll for the subject, or just search using the search bar at the top of the page.</p>
<p>Everything links back to the SQA, and I take no claim to making these papers. I just wanted an easier way to search for the papers I need.</p>
<p>While I will try and update this every year, please feel free to submit a PR or issue for any missing papers you find.</p>
</main>
<main class="container" id="levels">
<h2>Avaliable Levels</h2>
<ul>
<li><a href="./national-5.html">National 5</a></li>
<li><a href="./higher.html">Higher</a></li>
<li><a href="./adv-higher.html">Advanced Higher</a></li>
</ul>
</main>
<footer class="container">
<p>All papers belong to the SQA. This tool was developed to improve seraching for SQA digital papers.</p>
</footer>
</body>
</html>
119 changes: 119 additions & 0 deletions national-5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SQA Digital Paper Finder</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
</head>
<body>
<main class="container">
<nav>
<ul>
<li><strong>SQA DPST</strong></li>
</ul>
<ul>
<li><strong>National 5</strong></li>
<li><a href="./higher.html">Higher</a></li>
<li><a href="./adv-higher.html">Adv Higher</a></li>
</ul>
</nav>

<input
type="search"
name="search"
placeholder="Search"
aria-label="Search"
onkeyup="searchHighlighter()"
id="input-search"
/>
</main>
<main class="container" id="papers">
<ul>
<li>Accounting</a>
<ul>
<li>2023: <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Accounting_QP_2023-DQP.pdf">N5_Accounting_QP_2023-DQP</a></li>
<li>Workbook (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Accounting_Workbook_2023-DQP-Spellcheckon.pdf">N5_Accounting_Workbook_2023-DQP-Spellcheckon</a></li>
<br>
</ul>
</li>
<li>Admin & IT</a>
<ul>
<li>2023: <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Administration-and-IT_QP_2023-DQP.pdf">N5_Administration-and-IT_QP_2023-DQP</a></li>
<li>Cover (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Administration%20and%20IT_Cover_2023-DQP-Spellcheckon.pdf">N5_Administration_and_IT_Cover_2023-DQP-Spellcheckon</a></li>
<br>
</ul>
</li>
<li>Applications of Maths</a>
<ul>
<li>Paper 1 (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Applications-of-Mathematics_Paper1-Non-calculator_2023-DQP-Spellcheckon.pdf">N5_Applications-of-Mathematics_Paper1-Non-calculator_2023-DQP-Spellcheckon</a></li>
<li>Paper 2 (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Applications-of-Mathematics_Paper2_2023-DQP-Spellcheckon.pdf">N5_Applications-of-Mathematics_Paper2_2023-DQP-Spellcheckon</a></li>
<br>
</ul>
</li>
<li>Art & Design</a>
<ul>
<li>2023: <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Art-and-Design%20QP_2023-DQP.pdf">N5_Art-and-Design_QP_2023-DQP</a></li>
<br>
</ul>
</li>
<li>Biology</a>
<ul>
<li>Section 1 (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Biology_Section1_2023-DQP.pdf">N5_Biology_Section1_2023-DQP</a></li>
<li>Section 2 (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Biology_Section2_2023-DQP-Spellcheckon.pdf">N5_Biology_Section2_2023-DQP-Spellcheckon</a></li>
<br>
</ul>
</li>
<li>Business Management</a>
<ul>
<li>2023: <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Business-Management_QP_2023-DQP.pdf">N5_Business-Management_QP_2023-DQP</a></li>
<br>
</ul>
</li>
<li>Care</a>
<ul>
<li>2023: <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Care_QP_2023-DQP.pdf">N5_Care_QP_2023-DQP</a></li>
<br>
</ul>
</li>
<li>Chemistry</a>
<ul>
<li>Section 1 (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Chemistry_Section1_2023-DQP.pdf">N5_Chemistry_Section1_2023-DQP</a></li>
<li>Section 2 (2023): <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Chemistry_Section2_2023-DQP-Spellcheckon.pdf">N5_Chemistry_Section2_2023-DQP-Spellcheckon</a></li>
<br>
</ul>
</li>
<li>Classical Studies</a>
<ul>
<li>2023: <a target="_blank" rel="noopener noreferrer" href="https://www.sqa.org.uk/sqa/files_ccc/N5_Classical_Studies_QP_2023-DQP.pdf">N5_Classical_Studies_QP_2023-DQP</a></li>
<br>
</ul>
</li>
</ul>
</main>
<footer class="container">
<p>All papers belong to the SQA. This tool was developed to improve seraching for SQA digital papers.</p>
</footer>

<script>
function searchHighlighter() {
const inputValue = document.getElementById("input-search").value;
const listItems = document.querySelector("#papers").querySelectorAll("li");
if (!inputValue) {
listItems.forEach((li) => (li.querySelector("a").style.color = "#1167b1"));
return;
}
listItems.forEach((li) => {
const child = li.querySelector("a");
const txtValue = child.innerText;
child.style.color =txtValue.toUpperCase().indexOf(inputValue.toUpperCase()) > -1
? "green"
: "#1167b1";
});
}
</script>
</body>
</html>

0 comments on commit dc0d6ce

Please sign in to comment.