This file contains hidden or 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
| /** | |
| Javascript to inject a Bot in an <iframe> into the nQuire mission builder. | |
| @author NDF, 24-June-2021 | |
| @see https://nquire.org.uk/mission-builder/ | |
| @see https://tinymce.github.io/tinymce-demos/email/webmail-rich-text-editor.html | |
| javascript:(() => { | |
| //. | |
| })(); |
This file contains hidden or 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
| /*! | |
| Print styles extracted from Bootstrap 4 (v4.6.0) | |
| "v5: Drop all print styles and classes" :~ https://github.com/twbs/bootstrap/pull/28339; | |
| V4 Docs :~ https://getbootstrap.com/docs/4.0/utilities/display/#display-in-print; | |
| Code :~ https://github.com/twbs/bootstrap/blob/v4.6.0/scss/_print.scss; | |
| Also :~ https://github.com/h5bp/main.css/blob/main/dist/_print.css; | |
| */ | |
| :root { |
This file contains hidden or 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
| <!doctype html><html lang="en"> | |
| <meta charset="UTF-8" /> | |
| <link rel="gist" href="https://gist.github.com/nfreear/51eaee1781e5e5c885a474432b2e1325" /> | |
| <title> Print CSS / PDF test </title> | |
| <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/paper-css/0.3.0/paper.css"> --> | |
| <style> |
This file contains hidden or 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
| <!doctype html> <title> `beforeUnload` event test </title> | |
| <h1> <tt>beforeUnload</tt> event test </h1> | |
| <h2><a href="?reload=1">Reload page</a></h2> | |
| <script> | |
| window.addEventListener('beforeunload', (event) => { |
This file contains hidden or 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
| <!doctype html> <title> Content-Security-Policy test </title> | |
| <base href="https://mediaplayer.open.ac.uk/" /> | |
| <meta | |
| http-equiv="Content-Security-Policy" | |
| content=" | |
| default-src 'self' 'unsafe-inline' https://*.open.ac.uk ; | |
| frame-ancestors 'self' https://*.open.ac.uk http://*.open.ac.uk https://*.open.edu ; | |
| script-src 'self' 'unsafe-inline' https://*.open.ac.uk https://*.googleapis.com ; |
This file contains hidden or 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
| <!doctype html> <title> URL params test </title> | |
| <style> | |
| body { color: #222; font: 1rem/1.7 sans-serif; margin: .2rem; } | |
| pre { font-size: 1.05rem; } | |
| </style> | |
| <h1> URL parameters </h1> |
This file contains hidden or 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
| <!doctype html> <title> Accessible Pie Chart </title> | |
| <base href="https://en.wikipedia.org/wiki/Pie_chart#Example" /><!-- Make links in table work! --> | |
| <style> | |
| *, *:before, *:after { box-sizing: border-box; } | |
| body { margin: 1rem auto; max-width: 36rem; } | |
| canvas, table { width: 100%; } | |
| canvas, [role=figure], table { border: .1rem solid #999; padding: .6rem; } | |
| hr { border-top: .4rem solid #999; margin: 3rem 0; } |
This file contains hidden or 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
| <!doctype html> <title> Skip-link test </title> | |
| <meta name="skip-link" value="#content" /> | |
| <link rel="skip-link" href="#content" /> | |
| <nav> | |
| <a href="#">Nav link 1</a> | |
| </nav> |