PageSourceSearch

https://reed-data-science.github.io/site_libs/revealjs/plugin/reveal-text-resizer/revealjs-text-resizer.js

js reed-data-science.github.io collected 2026-10-03 09:50:30 UTC 904 bytes, 30 lines download raw bytes

1window.RevealTextResizer = function () {
2  return {
3    id: "RevealTextResizer",
4    init: function () {
5      document.addEventListener('keydown', function(event) {
6        if (!event.altKey) return;
7        const go_up = event.code === 'Equal';
8        const go_down = event.code === 'Minus';
9        const go_reset = event.code === 'Digit0';
10
11        if (!(go_up || go_down || go_reset)) return;
12        event.preventDefault();
13
14        if (go_reset) {
15          document.documentElement.style.removeProperty('--r-main-font-size');
16          return;
17        }
18
19        const currentSize = parseFloat(
20          getComputedStyle(document.documentElement)
21            .getPropertyValue('--r-main-font-size')
22        );
23
24        const newSize = go_up ? currentSize + 2 : currentSize - 2;
25        document.documentElement.style.setProperty('--r-main-font-size', newSize + 'px');
26      });
27    },
28  };
29};
30

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.