Skip to content

Instantly share code, notes, and snippets.

View nfreear's full-sized avatar

Nick Freear nfreear

View GitHub Profile
<?php
/*
Plugin Name: My Custom Functions
Plugin URI: https://gist.github.com/nfreear/9049532
Description: A simple plugin that contains all the awesome little functions that
I use to make my site work <a href="http://wphidedash.org/2011/04/best-practice
-for-adding-custom-functions/">my way.</a>
Author: Nick Freear
Author URI: https://github.com/IET-OU/oer-evidence-hub-org/#Juxtalearn
Version: 0.1
@nfreear
nfreear / compendiumld-html5.diff
Last active August 29, 2015 13:56
Some AccessifyHTML5.js fixes, and a maintenance message for Compendium LD, for @IET-OU & @a-brasher
Index: download.cfm
===================================================================
--- download.cfm (revision 7255)
+++ download.cfm (working copy)
@@ -56,6 +56,17 @@
<!-- end #sidebar1 -->
</div>
<div id="mainContent">
+
+ <!---NDF: 2014-02-19. --->
@nfreear
nfreear / e-gms.accessibility.html
Created February 25, 2014 11:03
Possible ways of encoding accessibility meta-data in HTML5.
<!doctype html>
<link rel="schema.AGLSTERMS" href="http://www.agls.gov.au/agls/terms/" />
<link rel="schema.e-GMS" href="http://purl.oclc.org/NET/e-GMS_v2" />
<link rel="schema.WCAG" href="http://www.w3.org/TR/WAI-WEBCONTENT/" />
<meta name="e-GMS.accessibility" scheme="WCAG" content="Double-A" />
<meta name="AGLSTERMS.accessibility" content=
"[A statement indicating the accessibility characteristics of the resource.]" />
@nfreear
nfreear / wp-juxtalearn_admin.css
Created February 26, 2014 17:18
Wordpress admin styles - quick hacks (JuxtaLearn).
/* CSS Document */
/*
Teacher - "role-editor"
NOTE: most of this should be done with a user-role editor/manager plugin..!
*/
.wp-admin.X-role-administrator #menu-dashboard,
.wp-admin.role-editor #menu-posts,
.wp-admin.role-editor #menu-media,
@nfreear
nfreear / open-ac-uk.geo.json
Last active August 29, 2015 13:57
GeoJSON object for some locations at The Open University | http://geojson.io/#map=15/52.0246/-0.7072 | https://www.mapbox.com/maki
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Mortgage Knowledge Quiz
/*jslint browser: true, evil: true, regexp: true, unparam: true, vars: true, white: true, indent: 4, maxerr: 200 */
/*global jQuery:false, $:false, document:false, location:false, setTimeout:false, alert:false, confirm:false, quizJSON:false */
jQuery(document).ready(function($) {
'use strict';
var adminPath = location.pathname.replace(/wp-admin.*/, 'wp-admin/');
@nfreear
nfreear / WP_Conditional_Script_Plugin.php
Created March 28, 2014 19:28
Conditional Javascript and CSS plugin for Wordpress.
<?php
/*
Plugin Name: Conditional Javascript/ CSS
Plugin URI: https://gist.github.com/nfreear
Description: 28 March 2014.
Author: Nick Freear
Author URI: https://github.com/nfreear
Version: 0.1
*/
<!doctype html><title>*Accessify Wiki compiler (Google Closure)</title>
<style>
body { margin: 2em; font: 1em sans-serif; background: #fdfdfd; color: #444; }
label{ display: inline-block; width: 9em; vertical-align: top; }
input, textarea { font-size: .95em; width: 37em; }
button { font-size: 1.1em; padding: 4px; width: 9em; }
fieldset { padding: 4px; margin: .8em 0; border: 1px solid #aaa; }
p { margin: .3em 0; }
</style>
@nfreear
nfreear / slickquiz.js.html
Last active August 29, 2015 13:58
Internationalization of slickQuiz.JS jQuery plugin | https://github.com/jewlofthelotus/SlickQuiz
<!doctype html><meta charset=utf-8 /><title>*slickQuiz.JS internationalized/ translated</title>
<link rel=stylesheet href="http://juxtalearn.net/slickquiz-js/css/master.css" />
<link rel=stylesheet href="http://juxtalearn.net/slickquiz-js/css/slickQuiz.css" />
<style>
body { background: #fdfdfd; }
#slickQuiz { border: 1px solid #ddd; padding: 0 9px 9px; }
#slickQuiz .quizName span {
position: absolute;
@nfreear
nfreear / jl-quiz.html
Last active August 29, 2015 13:59
Embed a JuxtaLearn Quiz and score visualizations | Version 117+ (v17 - 25/3/2014 2:52) | http://clipit.juxtalearn.net/quiz-mockup
<!doctype html> <title>*Embed a JuxtaLearn Quiz</title>
<base href="http://trickytopic.juxtalearn.net/" data-test_href="http://test.juxtalearn.net/" />
<style>
body { margin: 1em 3em; font: 1em sans-serif; color: #333; background: #fdfdfd; }
h1 { font-size: 1.8em; }
.logo{ float: right; }
iframe.jlq-quiz, .jlq-score {