Use Phly mascot as favicon

This commit is contained in:
matcha committed 2026-10-04 04:20:30 +00:00
1 parent 47f6e7c1a7
commit f513f789f1
1 file changed
+7 -1
+7 -1
View File
@@ -4,6 +4,8 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>stay phly!</title> <title>stay phly!</title>
<link id="favicon" rel="icon" href="data:,">
<link id="apple-touch-icon" rel="apple-touch-icon" href="data:,">
<style> <style>
html,body{height:100%;margin:0} html,body{height:100%;margin:0}
body{display:grid;place-items:center;background:#fff} body{display:grid;place-items:center;background:#fff}
@@ -18,7 +20,11 @@
.then(s=>{ .then(s=>{
const bin=atob(s.trim()), bytes=new Uint8Array(bin.length); const bin=atob(s.trim()), bytes=new Uint8Array(bin.length);
for(let i=0;i<bin.length;i++) bytes[i]=bin.charCodeAt(i); for(let i=0;i<bin.length;i++) bytes[i]=bin.charCodeAt(i);
document.getElementById('phly').src=URL.createObjectURL(new Blob([bytes],{type:'image/webp'})); const blob=new Blob([bytes],{type:'image/webp'});
const url=URL.createObjectURL(blob);
document.getElementById('phly').src=url;
document.getElementById('favicon').href=url;
document.getElementById('apple-touch-icon').href=url;
}); });
</script> </script>
</body> </body>