From de476eb7abd83614bee2351573a627d90ffea1a2 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 29 Jan 2025 20:53:46 +1100 Subject: [PATCH] fix: Add more cached files to sw --- pwa/sw.js | 15 ++++++++++++++- templates/assets/js/hacker.min.js | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/pwa/sw.js b/pwa/sw.js index ec48e50..50081b3 100644 --- a/pwa/sw.js +++ b/pwa/sw.js @@ -6,7 +6,20 @@ importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox const PRECACHE_ASSETS = [ '/', - '/404' + '/404', + '/assets/bootstrap/css/bootstrap.min.css', + 'https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic&display=swap', + 'https://fonts.googleapis.com/css?family=Cabin:700&display=swap', + 'https://fonts.googleapis.com/css?family=Anonymous+Pro&display=swap', + 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700', + '/assets/css/styles.min.css', + '/assets/css/404.min.css', + '/assets/css/profile.min.css', + '/assets/bootstrap/js/bootstrap.min.js', + '/assets/js/script.min.js', + '/assets/js/404.min.js', + '/assets/img/favicon/favicon-16x16.png', + '/assets/img/favicon/android-chrome-192x192.png' ] diff --git a/templates/assets/js/hacker.min.js b/templates/assets/js/hacker.min.js index 182bdd8..6afdc43 100644 --- a/templates/assets/js/hacker.min.js +++ b/templates/assets/js/hacker.min.js @@ -1 +1 @@ -const letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ/.?!@#$%^&*()_+";let interval=null,interval2=null,interval3=null;window.onload=t=>{target=document.querySelector(".nathanwoodburn");let e=0,n="NATHAN.WOODBURN/";clearInterval(interval),interval=setInterval((()=>{target.innerText=target.innerText.split("").map(((t,r)=>r=n.length&&clearInterval(interval),e+=1/3}),30)},document.querySelector(".copyright").onmouseover=t=>{let e=0,n="Copyright © Nathan.Woodburn/ 2024";console.log(n),clearInterval(interval2),interval2=setInterval((()=>{t.target.innerText=t.target.innerText.split("").map(((t,r)=>r=n.length&&clearInterval(interval2),e+=1/3}),10)}; \ No newline at end of file +const letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ/.?!@#$%^&*()_+";let interval=null,interval2=null,interval3=null;window.onload=t=>{if(target=document.querySelector(".nathanwoodburn"),target){let t=0,e="NATHAN.WOODBURN/";clearInterval(interval),interval=setInterval((()=>{target.innerText=target.innerText.split("").map(((r,n)=>n=e.length&&clearInterval(interval),t+=1/3}),30)}},document.querySelector(".copyright").onmouseover=t=>{let e=0,r="Copyright © Nathan.Woodburn/ 2024";console.log(r),clearInterval(interval2),interval2=setInterval((()=>{t.target.innerText=t.target.innerText.split("").map(((t,n)=>n=r.length&&clearInterval(interval2),e+=1/3}),10)}; \ No newline at end of file