Skip to content

Commit 9808247

Browse files
authored
Merge branch 'master' into beta-new
2 parents b5d64f2 + a17ed76 commit 9808247

22 files changed

Lines changed: 27 additions & 26 deletions

File tree

functions/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,14 @@ const redirects = {
435435

436436
Object.entries(redirects).forEach(([from, to]) => app.get(from, (_, res) => res.redirect(to)))
437437

438-
const pagesWithoutSidebar = ['primary-parallel', 'pmc', 'job-ad', 'tutorinfo']
438+
const pagesWithoutSidebar = ['primary-parallel', 'pmc', 'job-ad', 'tutorinfo', 'privacy-notice']
439+
const pagesWithoutPrivacyModal = ['privacy-notice']
439440

440441
for (let p of ['about', 'introduction', 'parents', 'teachers', 'privacy-notice', 'safeguarding', 'hints-tips', 'job-ad', 'developer-support', 'pmc', 'primary-parallel', 'masterclass', 'troubleshooting', 'tutorinfo', 'academy-primary-parent', 'academy-primary-teacher']) {
441442
const content = fs.readFileSync(path.join(__dirname, `build/${p}.html`));
442443
app.get('/' + p, (_, res) => {
443444
res.locals.sidebarDisabled = pagesWithoutSidebar.includes(p);
445+
res.locals.privacyModalDisabled = pagesWithoutPrivacyModal.includes(p);
444446
res.render('_layout', {content})
445447
});
446448
}

functions/utilities/privacy/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const mergeAccountEmailsWithReqBodyGuardianEmails = (req, res) => {
109109
return user.emails || [];
110110
};
111111

112-
router.post("/student/delay", studentMiddleware, async (req, res) => {
112+
router.get("/student/delay", studentMiddleware, async (req, res) => {
113113
try {
114114
const updateBody = {
115115
[firstSeenKey]: req.user[firstSeenKey] || Date.now(),

functions/views/_layout.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ html
175175
| and
176176
a(href="https://mathigon.org" target="_blank") #[img(src="/images/mathigon.png" width=16 height=16)] Mathigon
177177

178-
if user && user.privacy && user.privacy.visible
178+
if user && user.privacy && user.privacy.visible && !privacyModalDisabled
179179
iframe(src="/privacy-modal" id="privacy-iframe" style="height: 100%;width: 100%;position: absolute;z-index: 10000000000;top: 0;left: 0;border: none;")
180180

181181
script(defer src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js")

pages/academy-9aut-week-1.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,31 @@ We will also be running a weekly homework review session (look out for our email
1919
## 1.
2020
![](/resources/academy-9aut-week-1/q1.png){image align="center"}
2121

22-
::: problem id=1_1 marks=2
22+
::: problem id=1_1 marks=1
2323
a) <input type="number" solution="11"/>
2424

2525
---
2626

2727
![](/resources/academy-9aut-week-1/s1a.png){image align="center"}
2828
:::
2929

30-
::: problem id=1_2 marks=2
30+
::: problem id=1_2 marks=1
3131
b) <input type="number" solution="27"/>
3232

3333
---
3434

3535
![](/resources/academy-9aut-week-1/s1b.png){image align="center"}
3636
:::
3737

38-
::: problem id=1_3 marks=2
38+
::: problem id=1_3 marks=1
3939
c) <input type="number" solution="6"/>
4040

4141
---
4242

4343
![](/resources/academy-9aut-week-1/s1c.png){image align="center"}
4444
:::
4545

46-
::: problem id=1_4 marks=2
46+
::: problem id=1_4 marks=1
4747
d) <input type="number" solution="20"/>
4848

4949
---
@@ -55,8 +55,8 @@ d) <input type="number" solution="20"/>
5555
## 2.
5656
![](/resources/academy-9aut-week-1/q2.png){image align="center"}
5757

58-
::: problem id=2_1 marks=2
59-
i)
58+
::: problem id=2_1 marks=1
59+
![](/resources/academy-9aut-week-1/q2a.png){image align="center"}
6060
* [ ] a)
6161
* [ ] b)
6262
* [x] c)
@@ -65,11 +65,11 @@ i)
6565

6666
---
6767

68-
![](/resources/academy-9aut-week-1/s2i.png){image align="center"}
68+
![](/resources/academy-9aut-week-1/s2a.png){image align="center"}
6969
:::
7070

71-
::: problem id=2_2 marks=2
72-
ii)
71+
::: problem id=2_2 marks=1
72+
![](/resources/academy-9aut-week-1/q2b.png){image align="center"}
7373
* [x] a)
7474
* [ ] b)
7575
* [ ] c)
@@ -78,11 +78,11 @@ ii)
7878

7979
---
8080

81-
![](/resources/academy-9aut-week-1/s2ii.png){image align="center"}
81+
![](/resources/academy-9aut-week-1/s2b.png){image align="center"}
8282
:::
8383

84-
::: problem id=2_3 marks=2
85-
iii)
84+
::: problem id=2_3 marks=1
85+
![](/resources/academy-9aut-week-1/q2c.png){image align="center"}
8686
* [ ] a)
8787
* [x] b)
8888
* [ ] c)
@@ -91,11 +91,11 @@ iii)
9191

9292
---
9393

94-
![](/resources/academy-9aut-week-1/s2iii.png){image align="center"}
94+
![](/resources/academy-9aut-week-1/s2c.png){image align="center"}
9595
:::
9696

97-
::: problem id=2_4 marks=2
98-
iv)
97+
::: problem id=2_4 marks=1
98+
![](/resources/academy-9aut-week-1/q2d.png){image align="center"}
9999
* [ ] a)
100100
* [ ] b)
101101
* [ ] c)
@@ -104,7 +104,7 @@ iv)
104104

105105
---
106106

107-
![](/resources/academy-9aut-week-1/s2iv.png){image align="center"}
107+
![](/resources/academy-9aut-week-1/s2d.png){image align="center"}
108108
:::
109109

110110

pages/academy-9aut-week-2.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ We will also be running a weekly homework review session (look out for our email
1717
**After you click Submit, make sure you scroll down to see the correct answers and read the full written solutions.**
1818

1919
## 1.
20-
![](/resources/academy-9aut-week-2/q1.png){image align="center"}
2120

22-
::: problem id=1_1 marks=2
23-
a)
21+
::: problem id=1_1 marks=1
22+
![](/resources/academy-9aut-week-2/q1a.png){image align="center"}
2423

2524
* [ ] Rowan
2625
* [x] Rachel
@@ -32,8 +31,8 @@ a)
3231
![](/resources/academy-9aut-week-2/s1a.png){image align="center"}
3332
:::
3433

35-
::: problem id=1_2 marks=2
36-
b)
34+
::: problem id=1_2 marks=1
35+
![](/resources/academy-9aut-week-2/q1b.png){image align="center"}
3736

3837
* [x] Yes
3938
* [ ] No

pages/privacy-notice.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**Effective Date:** 31 August 2025.
66

7-
This Notice is informed by [Good Thinking’s Data Protection Policy](https://docs.google.com/document/d/1gAvFujgwwU4bdPycxBiqJ3WK8UULyy7t/edit?usp=sharing&ouid=104525238127026012930&rtpof=true&sd=true).
7+
This Notice is informed by [Good Thinking’s Data Protection Policy](https://docs.google.com/document/d/1gAvFujgwwU4bdPycxBiqJ3WK8UULyy7t/edit?usp=sharing&ouid=104525238127026012930&rtpof=true&sd=true){target="_blank"}.
88

99

1010
## 1. Purpose of This Notice
@@ -86,4 +86,4 @@ We take appropriate technical and organisational measures to protect personal da
8686

8787

8888
## 10. Complaints
89-
If you have concerns about how we use your child’s data, please contact us first. You also have the right to lodge a complaint with the **Information Commissioner’s Office (ICO)**: [https://ico.org.uk](https://ico.org.uk)
89+
If you have concerns about how we use your child’s data, please contact us first. You also have the right to lodge a complaint with the **Information Commissioner’s Office (ICO)**: [https://ico.org.uk](https://ico.org.uk){target="_blank"}.
-29.1 KB
Loading
7.58 KB
Loading
5.9 KB
Loading
7.73 KB
Loading

0 commit comments

Comments
 (0)