I hereby claim:
- I am gfscott on github.
- I am gfscott (https://keybase.io/gfscott) on keybase.
- I have a public key whose fingerprint is 235C DC32 D0D8 DED1 69FC 0762 2752 D0A7 179C 6306
To claim this, I am signing this object:
<!-- https://gfscott.com/blog/dark-mode-for-real/ --> | |
<!doctype html> | |
<html lang="en-CA"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script> | |
// Get cookie value by name | |
function getCookie (name) { |
// ----------------------------------------------------------------------------- | |
// SIMPLE REUSABLE AJAX GET JSON FUNCTION | |
// A frequent thing I find myself writing in projects is a simple function to | |
// get JSON via AJAX. This simple helper does that in a sensible way without | |
// needing jQuery or a needlessly complex standalone Ajax library. Get data | |
// so you can do stuff with it. That’s all it does. No POSTing, no crazy edge- | |
// case error handling. | |
function getJson(url, callback) { |
<?php | |
///////////////////////////////////////////////////////////////////////////////////// | |
// Ask Wordpress to Embed Soundcloud’s Mini Player Instead of the Large Visual Player | |
///////////////////////////////////////////////////////////////////////////////////// | |
// Add function to theme’s functions.php file | |
// Relevant documentation: | |
// https://wordpress.org/support/topic/hookfilter-for-auto-embed-function-of-wp | |
// https://wordpress.org/support/topic/filter-hook-for-built-in-oembed-providers-eg-youtube | |
// https://developers.soundcloud.com/docs/oembed |
<div class="c"> | |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"> | |
<path class="trace" fill="transparent" stroke="red" stroke-width="4" d="M21 25s91-15 121 17-77 78-77 78 141 2 97 27 24 32 24 32"/> | |
</svg> | |
</div> |
I hereby claim:
To claim this, I am signing this object:
<link rel="stylesheet" href="provincely.css"> | |
<!-- Note: double-check @import paths for font files --> |
<ul class="provincely"> | |
<li data-province="ab" class="ab">a</li> | |
<li data-province="bc" class="bc">b</li> | |
<li data-province="mb" class="mb">c</li> | |
<li data-province="nb" class="nb">d</li> | |
<li data-province="nl" class="nl">e</li> | |
<li data-province="ns" class="ns">f</li> | |
<li data-province="nt" class="nt">g</li> | |
<li data-province="nu" class="nu">h</li> | |
<li data-province="on" class="on">i</li> |
<?php | |
/* | |
Add to functions.php of Wordpress theme. This function will add | |
<a href="[permalink]" class="readmore">More »</a> | |
at the end of the excerpt. |