Instantly share code, notes, and snippets.

View IET-OU--GDPR.md

IET-OU / GDPR

Nick Freear / 30-Nov-2018.

A summary of the GDPR and data privacy related actions taken by the Learning and Teaching Technologies (LTT) team in LTI-Academic / IET at The Open University.

View new.accessify-wiki.js
/*!
'New' Accessify Wiki Javascript!
© Nick Freear, 19-November-2018.
*/
const TEST_URL = 'https://www.google.co.uk/search?q=Allison+Stokke';
const INDEX_JSON = 'https://accessifywiki.github.io/fix/index.json';
const FIX_REGEX = /<script.+json['"]>(.+?)<\/script>/ms;
View fortheweb-widget.html
<!doctype html>
<style>
.fortheweb-wrapper {
background: #000 url(https://webfoundation.org/docs/2018/11/Untitled-design-8.png) right -20px no-repeat;
color: #fff;
font: 1.2rem "Open Sans", Helvetica, Arial, sans-serif;
x-font-size: 16px;
line-height: 1.42857143;
min-height: 350px;
View teamdesk-delete.bookmarklet.js
/*!
Teamwork Desk bookmarklet ~ batch delete customers based on 'lastTicketDate' and/o 'numTickets' criteria.
© Nick Freear, 30-October-2018 | License: GPL-3.0+
Gist :- https://gist.github.com/nfreear/e295be4edf0c656b3c28018ea997f637
npx live-server --port=9001
Bookmarklet :-
View caniuse-multi.js.html
<!doctype html> <title> Compatibility - Can I Use — multi </title>
<style>
iframe[ src *= caniuse ] { border: none; height: 347px; width: 100%; }
</style>
<h1> Can I Use — multi </h1>
<div id="caniuse-multi"> <p> Javascript required. </div>
View pinboard-feed-js.html
<!doctype html> <title> Pinboard JSON feed test </title>
<style>
body { font: 1rem/1.7rem sans-serif; margin: 1rem auto; max-width: 40rem; }
.pinboard-js li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
</style>
<h1> Pinboard JSON feed test </h1>
View self-replicator.js.html
<!doctype html><html lang="en"> <title> Self-replicator HTML + JS </title>
<h1> Self-replicator HTML + JS </h1>
<div id="my-container">
<p><form class="saveForm">
<label>File <input class="filename" value="journey-test.html" required pattern="[a-z][\w\-]+\.html" /></label>
<button type="submit">Save HTML journey</button>
View our-journey-logo.html
<!doctype html> <title> *our-journey logo-text </title>
<style>
.oj-logo-text {
background: #246384; /* Was: #2b6ab7 */
border-radius: 1rem;
color: #fff;
font: 1rem arial,sans-serif;
line-height: normal;
padding: .6rem;
View our-journey-schema.json
{
"#": "https://spacetelescope.github.io/understanding-json-schema/basics.html#hello-world",
"$schema": "http://json-schema.org/schema#",
"id": "https://iet-ou.github.io/our-journey/#2018",
"title": "Our Journey",
"description": "Schema for the 'our-journey' JSON format. (Nick Freear, 27-June-2018)",
"type": "object",
View n-player-js.html
<!doctype html> <title> n-player-js | Loading ... </title>
<meta name="copyright" content=" © Nick Freear, 26-June-2018. " />
<style>
.n-player-js {
background: #eee;
border: 1px solid #ccc;
border-radius: .3rem;
color: #222;