PageSourceSearch

https://noria.mx/wp-content/themes/noria-child/js/utils.js

js noria.mx collected 2026-10-05 11:42:36 UTC 395 bytes, 15 lines download raw bytes

1// utils.js
2
3export const isMobile = () =>
4  window.matchMedia('(max-width: 768px)').matches;
5
6export const prefersReducedMotion = () =>
7  window.matchMedia('(prefers-reduced-motion: reduce)').matches;
8
9export const getViewport = () => ({
10  width: window.innerWidth,
11  height: window.innerHeight
12});
13
14export const clamp = (value, min, max) =>
15  Math.min(Math.max(value, min), max);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.