PageSourceSearch

https://latinprayer.org/wp-content/plugins/dwtexttools/assets/js/dwtexttools-main.js?ver=1776418656

js latinprayer.org collected 2026-10-02 01:07:28 UTC 1,027 bytes, 30 lines download raw bytes

1/**
2 * WHAT: Entry point — probe the page for a supported reader, then init
3 *       the toolbar and the reader context. On pages without a reader,
4 *       do nothing (the toolbar is only useful where there is text to
5 *       select).
6 * WHY:  Keeps bootstrap logic out of the individual form / context modules.
7 * DEPENDS ON: every DwTextTools.* module loaded before us.
8 */
9
10(function () {
11    'use strict';
12
13    var ns = (window.DwTextTools = window.DwTextTools || {});
14
15    function boot() {
16        if (!ns.toolbar || !ns.context) return;   // a module is missing — abort quietly
17        var context = ns.context.detect();
18        if (!context) return;                      // no supported reader on this page
19
20        // Toolbar first: the context's selection listeners reach into bar.state.element.
21        ns.toolbar.init(context);
22        ns.context.init();
23    }
24
25    if (document.readyState === 'loading') {
26        document.addEventListener('DOMContentLoaded', boot);
27    } else {
28        boot();
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.