From dacd932ea757d8bd4dcc34a81fe59d338c16a883 Mon Sep 17 00:00:00 2001 From: Tyson <13039170+tkoham@users.noreply.github.com> Date: Sun, 18 Aug 2024 20:34:11 -0400 Subject: [PATCH] Updated from Publii --- 404.html | 11 ++++++++++- authors/taylor-beck/index.html | 11 ++++++++++- book-an-appointment/index.html | 11 ++++++++++- home/gallery/index.html | 11 ++++++++++- home/get-in-touch/index.html | 11 ++++++++++- home/index.html | 11 ++++++++++- index.html | 11 ++++++++++- media/plugins/pagePrefetching/quicklink.umd.js | 1 + tags/index.html | 11 ++++++++++- 9 files changed, 81 insertions(+), 8 deletions(-) create mode 100644 media/plugins/pagePrefetching/quicklink.umd.js diff --git a/404.html b/404.html index b3c376e..84219fa 100644 --- a/404.html +++ b/404.html @@ -16,4 +16,13 @@ }) elementsToAnimation.forEach((element) => { expansionObserver.observe(element); - }); \ No newline at end of file + }); \ No newline at end of file diff --git a/authors/taylor-beck/index.html b/authors/taylor-beck/index.html index 69dca78..52695c4 100644 --- a/authors/taylor-beck/index.html +++ b/authors/taylor-beck/index.html @@ -16,4 +16,13 @@ }) elementsToAnimation.forEach((element) => { expansionObserver.observe(element); - }); \ No newline at end of file + }); \ No newline at end of file diff --git a/book-an-appointment/index.html b/book-an-appointment/index.html index 980e274..e657f6d 100644 --- a/book-an-appointment/index.html +++ b/book-an-appointment/index.html @@ -16,4 +16,13 @@ }) elementsToAnimation.forEach((element) => { expansionObserver.observe(element); - }); \ No newline at end of file + }); \ No newline at end of file diff --git a/home/gallery/index.html b/home/gallery/index.html index 2f54189..8b542ff 100644 --- a/home/gallery/index.html +++ b/home/gallery/index.html @@ -51,4 +51,13 @@ if(isNaN(options.index)){return;} if(disableAnimation){options.showAnimationDuration=0;} gallery=new PhotoSwipe(pswpElement,PhotoSwipeUI_Default,items,options);gallery.init();gallery.options.escKey=true;};var galleryElements=document.querySelectorAll(gallerySelector);for(var i=0,l=galleryElements.length;i \ No newline at end of file + var hashData=photoswipeParseHash();if(hashData.pid&&hashData.gid){openPhotoSwipe(hashData.pid,galleryElements[hashData.gid-1],true,true);}};window.addEventListener('load', function () {initPhotoSwipeFromDOM('.gallery');}, false); \ No newline at end of file diff --git a/home/get-in-touch/index.html b/home/get-in-touch/index.html index 7927a53..cb53a92 100644 --- a/home/get-in-touch/index.html +++ b/home/get-in-touch/index.html @@ -16,4 +16,13 @@ }) elementsToAnimation.forEach((element) => { expansionObserver.observe(element); - }); \ No newline at end of file + }); \ No newline at end of file diff --git a/home/index.html b/home/index.html index 73b9b8f..50dd05a 100644 --- a/home/index.html +++ b/home/index.html @@ -16,4 +16,13 @@ }) elementsToAnimation.forEach((element) => { expansionObserver.observe(element); - }); \ No newline at end of file + }); \ No newline at end of file diff --git a/index.html b/index.html index 0b622d4..4bab538 100644 --- a/index.html +++ b/index.html @@ -16,4 +16,13 @@ }) elementsToAnimation.forEach((element) => { expansionObserver.observe(element); - }); \ No newline at end of file + }); \ No newline at end of file diff --git a/media/plugins/pagePrefetching/quicklink.umd.js b/media/plugins/pagePrefetching/quicklink.umd.js new file mode 100644 index 0000000..153efcf --- /dev/null +++ b/media/plugins/pagePrefetching/quicklink.umd.js @@ -0,0 +1 @@ +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.quicklink={})}(this,function(e){function n(e){return new Promise(function(n,r,t){(t=new XMLHttpRequest).open("GET",e,t.withCredentials=!0),t.onload=function(){200===t.status?n():r()},t.send()})}var r,t=(r=document.createElement("link")).relList&&r.relList.supports&&r.relList.supports("prefetch")?function(e){return new Promise(function(n,r,t){(t=document.createElement("link")).rel="prefetch",t.href=e,t.onload=n,t.onerror=r,document.head.appendChild(t)})}:n,o=window.requestIdleCallback||function(e){var n=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})},1)},i=new Set,c=new Set,u=!1;function a(e){if(e){if(e.saveData)return new Error("Save-Data is enabled");if(/2g/.test(e.effectiveType))return new Error("network conditions are poor")}return!0}function s(e,r,o){var s=a(navigator.connection);return s instanceof Error?Promise.reject(new Error("Cannot prefetch, "+s.message)):(c.size>0&&!u&&console.warn("[Warning] You are using both prefetching and prerendering on the same document"),Promise.all([].concat(e).map(function(e){if(!i.has(e))return i.add(e),(r?function(e){return window.fetch?fetch(e,{credentials:"include"}):n(e)}:t)(new URL(e,location.href).toString())})))}function f(e,n){var r=a(navigator.connection);if(r instanceof Error)return Promise.reject(new Error("Cannot prerender, "+r.message));if(!HTMLScriptElement.supports("speculationrules"))return s(e),Promise.reject(new Error("This browser does not support the speculation rules API. Falling back to prefetch."));if(document.querySelector('script[type="speculationrules"]'))return Promise.reject(new Error("Speculation Rules is already defined and cannot be altered."));for(var t=0,o=[].concat(e);t0&&!u&&console.warn("[Warning] You are using both prefetching and prerendering on the same document");var l=function(e){var n=document.createElement("script");n.type="speculationrules",n.text='{"prerender":[{"source": "list","urls": ["'+Array.from(e).join('","')+'"]}]}';try{document.head.appendChild(n)}catch(e){return e}return!0}(c);return!0===l?Promise.resolve():Promise.reject(l)}e.listen=function(e){if(e||(e={}),window.IntersectionObserver){var n=function(e){e=e||1;var n=[],r=0;function t(){r0&&(n.shift()(),r++)}return[function(e){n.push(e)>1||t()},function(){r--,t()}]}(e.throttle||1/0),r=n[0],t=n[1],a=e.limit||1/0,l=e.origins||[location.hostname],d=e.ignores||[],h=e.delay||0,p=[],m=e.timeoutFn||o,w="function"==typeof e.hrefFn&&e.hrefFn,g=e.prerender||!1;u=e.prerenderAndPrefetch||!1;var v=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting)p.push((n=n.target).href),function(e,n){n?setTimeout(e,n):e()}(function(){-1!==p.indexOf(n.href)&&(v.unobserve(n),(u||g)&&c.size<1?f(w?w(n):n.href).catch(function(n){if(!e.onError)throw n;e.onError(n)}):i.size-1&&p.splice(o)}})},{threshold:e.threshold||0});return m(function(){(e.el||document).querySelectorAll("a").forEach(function(e){l.length&&!l.includes(e.hostname)||function e(n,r){return Array.isArray(r)?r.some(function(r){return e(n,r)}):(r.test||r).call(r,n.href,n)}(e,d)||v.observe(e)})},{timeout:e.timeout||2e3}),function(){i.clear(),v.disconnect()}}},e.prefetch=s,e.prerender=f}); diff --git a/tags/index.html b/tags/index.html index 785a71a..503e056 100644 --- a/tags/index.html +++ b/tags/index.html @@ -16,4 +16,13 @@ }) elementsToAnimation.forEach((element) => { expansionObserver.observe(element); - }); \ No newline at end of file + }); \ No newline at end of file