From c2b52c035b4ed907ba1a704286aceb778421cc70 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 19 Nov 2018 06:55:41 +0100 Subject: content update --- assets/cache-polyfill.js | 142 +++++++++++++++++++++++------------------------ assets/manifest.json | 37 ++++++------ assets/site.min.css | 2 +- 3 files changed, 92 insertions(+), 89 deletions(-) (limited to 'assets') diff --git a/assets/cache-polyfill.js b/assets/cache-polyfill.js index 7db3ec0..1449734 100644 --- a/assets/cache-polyfill.js +++ b/assets/cache-polyfill.js @@ -15,88 +15,88 @@ * */ -(function () { - var nativeAddAll = Cache.prototype.addAll; - var userAgent = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/); +(function() { + var nativeAddAll = Cache.prototype.addAll; + var userAgent = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/); - // Has nice behavior of `var` which everyone hates - if (userAgent) { - var agent = userAgent[1]; - var version = parseInt(userAgent[2]); - } + // Has nice behavior of `var` which everyone hates + if (userAgent) { + var agent = userAgent[1]; + var version = parseInt(userAgent[2]); + } - if ( - nativeAddAll && (!userAgent || - (agent === 'Firefox' && version >= 46) || - (agent === 'Chrome' && version >= 50) - ) - ) { - return; - } + if (nativeAddAll && (!userAgent || (agent === 'Firefox' && version >= 46) || (agent === 'Chrome' && version >= 50))) { + return; + } - Cache.prototype.addAll = function addAll(requests) { - var cache = this; + Cache.prototype.addAll = function addAll(requests) { + var cache = this; - // Since DOMExceptions are not constructable: - function NetworkError(message) { - this.name = 'NetworkError'; - this.code = 19; - this.message = message; - } + // Since DOMExceptions are not constructable: + function NetworkError(message) { + this.name = 'NetworkError'; + this.code = 19; + this.message = message; + } - NetworkError.prototype = Object.create(Error.prototype); + NetworkError.prototype = Object.create(Error.prototype); - return Promise.resolve().then(function () { - if (arguments.length < 1) throw new TypeError(); + return Promise.resolve() + .then(function() { + if (arguments.length < 1) throw new TypeError(); - // Simulate sequence<(Request or USVString)> binding: - var sequence = []; + // Simulate sequence<(Request or USVString)> binding: + var sequence = []; - requests = requests.map(function (request) { - if (request instanceof Request) { - return request; - } else { - return String(request); // may throw TypeError - } - }); + requests = requests.map(function(request) { + if (request instanceof Request) { + return request; + } else { + return String(request); // may throw TypeError + } + }); - return Promise.all( - requests.map(function (request) { - if (typeof request === 'string') { - request = new Request(request); - } + return Promise.all( + requests.map(function(request) { + if (typeof request === 'string') { + request = new Request(request); + } - var scheme = new URL(request.url).protocol; + var scheme = new URL(request.url).protocol; - if (scheme !== 'http:' && scheme !== 'https:') { - throw new NetworkError("Invalid scheme"); - } + if (scheme !== 'http:' && scheme !== 'https:') { + throw new NetworkError('Invalid scheme'); + } - return fetch(request.clone()); - }) - ); - }).then(function (responses) { - // If some of the responses has not OK-eish status, - // then whole operation should reject - if (responses.some(function (response) { - return !response.ok; - })) { - throw new NetworkError('Incorrect response status'); - } + return fetch(request.clone()); + }) + ); + }) + .then(function(responses) { + // If some of the responses has not OK-eish status, + // then whole operation should reject + if ( + responses.some(function(response) { + return !response.ok; + }) + ) { + throw new NetworkError('Incorrect response status'); + } - // TODO: check that requests don't overwrite one another - // (don't think this is possible to polyfill due to opaque responses) - return Promise.all( - responses.map(function (response, i) { - return cache.put(requests[i], response); - }) - ); - }).then(function () { - return undefined; - }); - }; + // TODO: check that requests don't overwrite one another + // (don't think this is possible to polyfill due to opaque responses) + return Promise.all( + responses.map(function(response, i) { + return cache.put(requests[i], response); + }) + ); + }) + .then(function() { + return undefined; + }); + }; - Cache.prototype.add = function add(request) { - return this.addAll([request]); - }; -}()); + Cache.prototype.add = function add(request) { + return this.addAll([request]); + }; +})(); diff --git a/assets/manifest.json b/assets/manifest.json index f0b21b4..d150c67 100644 --- a/assets/manifest.json +++ b/assets/manifest.json @@ -1,19 +1,22 @@ { - "short_name": "MF", - "name": "Mitja Felicijan", - "author": "Mitja Felicijan", - "icons": [{ - "src": "/assets/avatar.png", - "sizes": "512x512", - "type": "image/png" - }, { - "src": "/assets/avatar.gif", - "sizes": "512x512", - "type": "image/gif" - }], - "start_url": "/", - "scope": "/", - "display": "standalone", - "theme_color": "#ffffff", - "background_color": "#ffffff" + "short_name": "MF", + "name": "Mitja Felicijan", + "author": "Mitja Felicijan", + "icons": [ + { + "src": "/assets/avatar.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "/assets/avatar.gif", + "sizes": "512x512", + "type": "image/gif" + } + ], + "start_url": "/", + "scope": "/", + "display": "standalone", + "theme_color": "#ffffff", + "background_color": "#ffffff" } diff --git a/assets/site.min.css b/assets/site.min.css index 0168689..ceb1579 100644 --- a/assets/site.min.css +++ b/assets/site.min.css @@ -1 +1 @@ -a,body,header a{color:#000}header a,main ul li a,nav ul li a,ol li a{text-decoration:none}#hcb_submit,nav ul li,ol li::before{display:inline-block}#hcb_submit,summary{cursor:pointer;user-select:none}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1MmgVxGIzc.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmYUtfChc9.ttf) format('truetype')}*{box-sizing:border-box}body{font-family:Roboto,'Times New Roman',Times,serif;font-size:18px;line-height:1.8;margin:0;padding:0 0 50px}article,footer,header,main,nav{max-width:800px;margin:0 auto}header{margin-top:30px}header a{font-size:150%;font-weight:700}nav ul{margin-top:10px;padding:0}nav ul li a{color:#444;font-size:85%;margin-right:10px}h1{font-size:260%;line-height:150%}h2{font-size:160%}h3{font-size:140%}h4{font-size:120%}article img{max-width:100%;display:block}time{display:block;font-size:85%;color:#444}ul{list-style-type:square}main ul{margin-top:40px;padding:0 20px}main ul li{margin-bottom:25px;margin-left:-20px;list-style-type:none}main ul li a{font-size:100%;font-weight:500}main ul div{font-size:116%}blockquote{margin:40px 0 40px 20px;border-left:5px solid #eee;padding:5px 0 10px 20px}.highlighter-rouge,table,table td,table th{border:2px solid #f1f1f1}table{width:100%;border-collapse:collapse;border-spacing:0}table td,table th{text-align:left;padding:5px 10px}summary{outline:0;font-weight:600}details .highlighter-rouge{margin-top:10px!important}.highlighter-rouge{padding:0 15px;font-size:80%;overflow:auto}.highlighter-rouge table,.highlighter-rouge table td{border:0!important}::selection{background:#ff0;color:#000}::-moz-selection{background:#ff0;color:#000}ol{list-style:none;counter-reset:li}ol li{counter-increment:li}ol li::before{content:counter(li)'.';color:#ccc;font-weight:500;width:1em;margin-left:-1.5em;margin-right:.9em;text-align:right}#hcb_form_content,#hcb_form_name{border:2px solid #eee;padding:10px;width:300px;margin-bottom:10px}#hcb_submit{-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;-ms-appearance:none;appearance:none;font-weight:600;padding:7px 15px;font-size:85%;border-radius:3px;background:#ccc;border:2px solid transparent;width:auto;text-align:center;height:auto;margin-right:20px}@media only screen and (max-width:768px){body{padding:0 20px}footer,header,nav{text-align:center}.responsive-table{width:100%;overflow:scroll}h1{font-size:200%}}@media print{@page{margin:2cm}.comments,header,nav{display:none}} \ No newline at end of file +a,body,header a{color:#000}header a,main ul li a,nav ul li a,ol li a{text-decoration:none}#hcb_submit,nav ul li,ol li::before{display:inline-block}#hcb_submit,summary{cursor:pointer;user-select:none}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1MmgVxGIzc.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmYUtfChc9.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:300;src:local('Merriweather Light Italic'),local('Merriweather-LightItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR7lXff2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:400;src:local('Merriweather Italic'),local('Merriweather-Italic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4m0qyriQwlOrhSvowK_l5-eRZAf-c.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:700;src:local('Merriweather Bold Italic'),local('Merriweather-BoldItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR71Wvf2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:900;src:local('Merriweather Black Italic'),local('Merriweather-BlackItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR7NWPf2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:300;src:local('Merriweather Light'),local('Merriweather-Light'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l521wRZVsf_.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:400;src:local('Merriweather Regular'),local('Merriweather-Regular'),url(https://fonts.gstatic.com/s/merriweather/v19/u-440qyriQwlOrhSvowK_l5-ciZJ.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:700;src:local('Merriweather Bold'),local('Merriweather-Bold'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l52xwNZVsf_.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:900;src:local('Merriweather Black'),local('Merriweather-Black'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l52_wFZVsf_.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:italic;font-weight:400;src:local('PT Serif Italic'),local('PTSerif-Italic'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRTQgYoZZY2vCFuvAFT_rO1dw.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:italic;font-weight:700;src:local('PT Serif Bold Italic'),local('PTSerif-BoldItalic'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRQQgYoZZY2vCFuvAFT9gaQZyffpQ.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:normal;font-weight:400;src:local('PT Serif'),local('PTSerif-Regular'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRVQgYoZZY2vCFuvAFYzro.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:normal;font-weight:700;src:local('PT Serif Bold'),local('PTSerif-Bold'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRSQgYoZZY2vCFuvAnt66qcVy4.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:300;src:local('Yrsa Light'),local('Yrsa-Light'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3af97I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:400;src:local('Yrsa Regular'),local('Yrsa-Regular'),url(https://fonts.gstatic.com/s/yrsa/v3/wlp-gwnQFlxs1QLf_A.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:500;src:local('Yrsa Medium'),local('Yrsa-Medium'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3f_87I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:600;src:local('Yrsa SemiBold'),local('Yrsa-SemiBold'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3dP77I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:700;src:local('Yrsa Bold'),local('Yrsa-Bold'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3bf67I0x2Q.ttf) format('truetype')}*{box-sizing:border-box}body{font-family:Yrsa,Roboto,'Times New Roman',Times,serif;font-size:22px;line-height:1.6;margin:0;padding:0 0 50px}article,footer,header,main,nav{max-width:800px;margin:0 auto}header{margin-top:30px}header a{font-size:150%;font-weight:700}nav ul{margin-top:10px;padding:0}nav ul li a{color:#444;font-size:85%;margin-right:10px}h1{font-size:200%;line-height:120%}h2{font-size:160%}h3{font-size:140%}h4{font-size:120%}article img{max-width:100%;display:block}time{display:block;font-size:85%;color:#444}ul{list-style-type:square}main ul{margin-top:40px;padding:0 20px}main ul li{margin-bottom:25px;margin-left:-20px;list-style-type:none}main ul li a{font-size:100%;font-weight:600}main ul div{font-size:116%}blockquote{margin:40px 0 40px 20px;border-left:5px solid #eee;padding:5px 0 10px 20px}.highlighter-rouge,table,table td,table th{border:2px solid #f1f1f1}table{width:100%;border-collapse:collapse;border-spacing:0}table td,table th{text-align:left;padding:5px 10px}summary{outline:0;font-weight:600}details .highlighter-rouge{margin-top:10px!important}.highlighter-rouge{padding:0 15px;font-size:80%;overflow:auto}.highlighter-rouge table,.highlighter-rouge table td{border:0!important}::selection{background:#ff0;color:#000}::-moz-selection{background:#ff0;color:#000}ol{list-style:none;counter-reset:li}ol li{counter-increment:li}ol li::before{content:counter(li) '.';color:#ccc;font-weight:500;width:1em;margin-left:-1.5em;margin-right:.9em;text-align:right}#hcb_form_content,#hcb_form_name{border:2px solid #eee;padding:10px;width:300px;margin-bottom:10px}#hcb_submit{-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;-ms-appearance:none;appearance:none;font-weight:600;padding:7px 15px;font-size:85%;border-radius:3px;background:#ccc;border:2px solid transparent;width:auto;text-align:center;height:auto;margin-right:20px}@media only screen and (max-width:768px){body{padding:0 20px}footer,header,nav{text-align:center}.responsive-table{width:100%;overflow:scroll}h1{font-size:200%}}@media print{@page{margin:2cm}.comments,header,nav{display:none}} \ No newline at end of file -- cgit v1.2.3