-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from fac-14/frontendtuesday
Frontendtuesday
- Loading branch information
Showing
25 changed files
with
250 additions
and
84 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var checkboxes = document.querySelectorAll('.govuk-checkboxes__input'); | ||
|
||
checkboxes.forEach(function (i) { | ||
i.addEventListener('click', clickFunc); | ||
if(sessionStorage.hasOwnProperty(i.value)){ | ||
i.checked = true; | ||
} | ||
}) | ||
|
||
function clickFunc() { | ||
if(this.checked){ | ||
sessionStorage.setItem(this.value + '-background', this.value); | ||
} else { | ||
if(sessionStorage.hasOwnProperty(this.value)){ | ||
sessionStorage.removeItem(this.value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
exports.get = (req, res) => { | ||
res.render('background', { | ||
layout: 'scrollable' | ||
layout: 'scrollable', | ||
progressamt: '40', | ||
title: 'Background', | ||
pageInfo: 'Please check all the boxes you feel are things holding you back from getting into tech.' | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
exports.get = (req, res) => { | ||
res.render('home', {activePage:{home: true}}) | ||
res.render('home', | ||
{ | ||
activePage:{home: true}, | ||
progressamt: '0', | ||
title: 'Tech Access App' | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
exports.get = (req, res) => { | ||
res.render('moreinfo', { | ||
layout: 'scrollable' | ||
layout: 'moreinfo', | ||
progressamt: '80', | ||
title: 'More Info', | ||
pageInfo: 'If you\'d like to, you can give us more detail about your background. We can\'t use these to tailor your results yet, but we hope to use this infromation to improve our service down the line.' | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
exports.get = (req, res) => { | ||
res.render('resources', { | ||
layout: 'scrollable' | ||
progressamt: '60', | ||
title: 'Resources', | ||
pageInfo: 'Please check all the boxes of the types of resources you feel would be most helpful to get you into tech.' | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
exports.get = (req, res) => { | ||
res.render('results', | ||
{ | ||
layout: 'scrollable', | ||
progressamt: '100', | ||
title: 'Results', | ||
pageInfo: 'Based on the checkboxes you have selected, here are your results.' | ||
}); | ||
res.render('results', { | ||
layout: 'scrollable', | ||
progressamt: '100', | ||
title: 'Results', | ||
pageInfo: 'Based on the checkboxes you have selected, here are your results.' | ||
}); | ||
} |
Oops, something went wrong.