PageSourceSearch

https://www.roundhousestudio.com.au/js/init-scale.js

js roundhousestudio.com.au collected 2026-10-07 19:25:35 UTC 501 bytes, 7 lines download raw bytes

1const BASE_FONT_SIZE = 10
2const DESKTOP_VIEWPORT_WIDTH = 2279
3const MOBILE_VIEWPORT_WIDTH = 428
4const baseViewportWidth = document.documentElement.clientWidth <= 768 ? MOBILE_VIEWPORT_WIDTH : DESKTOP_VIEWPORT_WIDTH
5const viewportRatio = document.documentElement.clientWidth / baseViewportWidth
6const scaleValue = window.innerWidth <= 768 ? viewportRatio * BASE_FONT_SIZE : Math.min(viewportRatio * BASE_FONT_SIZE, BASE_FONT_SIZE)
7document.documentElement.style.fontSize = scaleValue.toFixed(2) + 'px'

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.