https://github.com/freckle/freckle-certificates
Freckle teacher certificates of achievements for student
https://github.com/freckle/freckle-certificates
ghvm-managed
Last synced: 5 months ago
JSON representation
Freckle teacher certificates of achievements for student
- Host: GitHub
- URL: https://github.com/freckle/freckle-certificates
- Owner: freckle
- Created: 2023-06-27T13:15:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-31T16:44:53.000Z (6 months ago)
- Last Synced: 2026-01-05T01:57:30.780Z (6 months ago)
- Topics: ghvm-managed
- Language: HTML
- Homepage:
- Size: 2.39 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# freckle-certificates
Printable Freckle teacher certificates of achievements for students.
## Styling
Styles that are relevant to both the U.K. and the U.S. site should go in `styles.css`.
Each site also has a `styles-??.css` where styling specific to that page go.
## Print Single Certificate Functionality
The "Print Single Certificate" functionality adds an `onClick` handler to the
"Print" button of each certificate.
The handler hides all other certificates using `display: none` (via the
`-no-print` class) so that those other certificates are not printed.
Crucially, when the browser emits the `afterprint` event, we remove the class
that is hiding the other certificates.
## Safari Note Functionality
The "Print Single Certificate" Functionality does not work well on Safari. As a
result, we use the user agent to detect a Safari browser, and un-hide a note so
that the user knows that the functionality is degraded on their browser.