View yourdomain.com.conf
| <VirtualHost *:80> | |
| ServerAdmin [email protected] | |
| ServerName yourdomain.com | |
| ServerAlias www.yourdomain.com | |
| DocumentRoot /path/to/yourdomain | |
| Redirect / https://yourdomain.com/ | |
| </VirtualHost> | |
| <VirtualHost *:443> | |
| ServerAdmin [email protected] |
View formProgress.js
| // Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| (function (win, doc) { | |
| 'use strict'; | |
| if (!win.XMLHttpRequest || !win.FormData || !win.addEventListener || !doc.querySelectorAll) { | |
| // doesn't cut the mustard. | |
| return; | |
| } | |
| function hijaxForm (formElement) { | |
| var progressBar; |
View aria-controls.js
| // Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| (function (win, doc) { | |
| 'use strict'; | |
| if (!doc.querySelectorAll || !win.addEventListener) { | |
| // doesn't cut the mustard. | |
| return; | |
| } | |
| var toggles = doc.querySelectorAll('[aria-controls]'); | |
| var togglecount = toggles.length; |
View urtext.html
| <h1>Standardisation</h1> | |
| There was not a lot of discussion of this at <a href=Introduction.html>ECHT90</a>, but there seem to be two leads: | |
| <ol> | |
| <li><a href=People.html#newcombe>Steve newcombe's</a> and Goldfarber's "Hytime" committee | |
| looking into SGML, and | |
| <li>An ISO working group known as MHEG, "Multimedia/HyperText Expert Group". | |
| led by one Francis Kretz (Thompsa SA? Rennes?). | |
| </lo> |
View blogServiceWorker.js
| 'use strict'; | |
| // Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| (function() { | |
| // A cache for core files like CSS and JavaScript | |
| var staticCacheName = 'static'; | |
| // A cache for pages to store for offline |
View basicServiceWorker.js
| 'use strict'; | |
| // Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| (function() { | |
| // Update 'version' if you need to refresh the cache | |
| var staticCacheName = 'static'; | |
| var version = 'v1::'; |
View postToMedium.php
| <?php | |
| # Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| # http://creativecommons.org/publicdomain/zero/1.0/ | |
| function postToMedium($data=array()) { | |
| $user_id = "XXXX"; | |
| $accessToken = "XXXX"; | |
View ampify.php
| <?php | |
| # Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| # http://creativecommons.org/publicdomain/zero/1.0/ | |
| function ampify($html='') { | |
| # Replace img, audio, and video elements with amp custom elements | |
| $html = str_ireplace( | |
| ['<img','<video','/video>','<audio','/audio>'], |
View sendWebmention.php
| <?php | |
| # Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| # http://creativecommons.org/publicdomain/zero/1.0/ | |
| function sendWebmention($source, $target) { | |
| $endpoint = false; | |
| $options = array( |
View Twig-critical-CSS-test.twig
| {% set cssupdate = '20150309' %} | |
| {% if _cookie.csscached == cssupdate %} | |
| <link rel="stylesheet" href="/css/global-min.{{ cssupdate }}.css"> | |
| {% else %} | |
| <style> | |
| {% include 'global/critical.css' %} | |
| </style> | |
| <script> | |
| (function (win, doc) { | |
| 'use strict'; |
NewerOlder