Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/apps/aienos-site/om/hive-page/turing-look.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / apps / aienos-site / om / hive-page / turing-look.om` 57 lines ยท 3837 bytes Raw Blame History 1 note Site-wide Turing motion generator; independent of Hive. 2 text script0 "/*\n * The Turing look, motion half: the same two effects /turing/ runs.\n * 1. A blue-to-green reading bar that fills as the page scrolls.\n * 2. Sections and cards glide up and fade in once as they come into view,\n * with cards in a row arriving one after another.\n * Without this script (or with reduced motion asked for) every element is\n * simply shown: the hiding class is only added here.\n */\n(function () {\n var root = document.documentElement;\n var calm = window.matchMedia && window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n\n function start() {\n var bar = document.createElement(\"div\");\n bar.className = \"tl-progress\";\n bar.setAttribute(\"aria-hidden\", \"true\");\n document.body.appendChild(bar);\n function onScroll() {\n var room = root.scrollHeight - root.clientHeight;\n bar.style.width = (room > 0 ? (root.scrollTop / room) * 100 : 0).toFixed(2) + \"%\";\n" 3 text script1 " }\n window.addEventListener(\"scroll\", onScroll, { passive: true });\n window.addEventListener(\"resize\", onScroll);\n onScroll();\n\n if (calm || !(\"IntersectionObserver\" in window)) return;\n\n // Blocks fade in whole; cards inside a block arrive one after another.\n var cards = [\n \".hub-card\", \".narr-card\", \".rs-card\", \".blog-card\", \".home-q\", \".entry\",\n \".card\", \".research-wrap .artifact\", \".receipt\", \".pdf-callout\",\n \".hub-callout\", \".theory-fig\", \".loop-stage\"\n ].join(\",\");\n var blocks = [\n \".section-head\", \".hub-section\", \".narr-section\", \".rs-section\", \".loop\",\n \".home-questions\", \".research-wrap .section\", \".aien-footer-row\"\n ].join(\",\");\n var fold = window.innerHeight * 0.9;\n var seen = [];\n function add(el) {\n" 4 text script2 " // Leave the first screen alone: it is already in view on arrival.\n if (el.getBoundingClientRect().top < fold) return;\n for (var i = 0; i < seen.length; i++) if (seen[i].contains(el) || el.contains(seen[i])) return;\n seen.push(el);\n }\n document.querySelectorAll(cards).forEach(add);\n document.querySelectorAll(blocks).forEach(function (el) {\n if (!el.querySelector(cards)) add(el);\n });\n if (!seen.length) return;\n\n var io = new IntersectionObserver(function (entries) {\n var order = 0;\n entries.forEach(function (e) {\n if (!e.isIntersecting) return;\n e.target.style.transitionDelay = Math.min(order++ * 80, 320) + \"ms\";\n e.target.classList.add(\"tl-in\");\n e.target.addEventListener(\"transitionend\", function clear() {\n e.target.style.transitionDelay = \"\";\n e.target.removeEventListener(\"transitionend\", clear);\n" 5 text script3 " });\n io.unobserve(e.target);\n });\n }, { threshold: 0.12, rootMargin: \"0px 0px -6% 0px\" });\n\n seen.forEach(function (el) {\n el.classList.add(\"tl-reveal\");\n io.observe(el);\n });\n }\n\n if (document.readyState === \"loading\") document.addEventListener(\"DOMContentLoaded\", start);\n else start();\n})();\n" 6 7 fn main to int 8 chunk0 9 chunk1 10 chunk2 11 chunk3 12 ret 0 13 end 14 15 fn chunk0 to void 16 p = ulong 0 17 while lt p len script0 18 n = write 1 script0 p sub len script0 p 19 if le n 0 20 trap 3 21 end 22 p = add p ulong n 23 end 24 end 25 26 fn chunk1 to void 27 p = ulong 0 28 while lt p len script1 29 n = write 1 script1 p sub len script1 p 30 if le n 0 31 trap 3 32 end 33 p = add p ulong n 34 end 35 end 36 37 fn chunk2 to void 38 p = ulong 0 39 while lt p len script2 40 n = write 1 script2 p sub len script2 p 41 if le n 0 42 trap 3 43 end 44 p = add p ulong n 45 end 46 end 47 48 fn chunk3 to void 49 p = ulong 0 50 while lt p len script3 51 n = write 1 script3 p sub len script3 p 52 if le n 0 53 trap 3 54 end 55 p = add p ulong n 56 end 57 end