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'; |
View micropub.php
| <?php | |
| # Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| # http://creativecommons.org/publicdomain/zero/1.0/ | |
| $mysite = 'https://adactio.com/'; // Change this to your website. | |
| $token_endpoint = 'https://tokens.indieauth.com/token'; | |
| $_HEADERS = array(); | |
| foreach(getallheaders() as $name => $value) { |
View checkbox-slider.html
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Checkbox</title> | |
| <style> | |
| body { | |
| background-color: #fff; | |
| color: #000; |
NewerOlder