mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
TCM: Enable starfield on mobile
This commit is contained in:
@@ -280,7 +280,6 @@
|
||||
<canvas id="starfield" style="position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none;"></canvas>
|
||||
<script>
|
||||
(function() {
|
||||
if (window.matchMedia("(max-width: 768px)").matches) return;
|
||||
const canvas = document.getElementById('starfield');
|
||||
const ctx = canvas.getContext('2d');
|
||||
let w, h, scrollY = 0;
|
||||
|
||||
Reference in New Issue
Block a user