PageSourceSearch

https://royalpalaces.se/download/18.6876d31615ef368abc2577/1561538835525/page-tools.js

js royalpalaces.se collected 2026-10-02 21:50:11 UTC 1,233 bytes, 51 lines download raw bytes

1/* eslint-disable */
2var lp = (function(exports, $) {
3  var pageTools = exports.pageTools = exports.pageTools || {};
4  var initialized = false;
5  var $container = null;
6  var toggles = [];
7  
8  var getJQueryObject = function(objOrSelector) {
9    if (typeof objOrSelector === 'string') {
10      return $(objOrSelector);
11    }
12    
13    return objOrSelector;
14  };
15  
16  pageTools.add = function($toggler, $content, name) {
17    if (!initialized) {
18      return pageTools;
19    }
20    
21    $toggler = getJQueryObject($toggler);
22    $content = getJQueryObject($content);
23
24    if ($toggler.length === 0 || $content.length === 0) {
25      return pageTools;
26    }
27    
28    if (!name) {
29      name = ($toggler.attr('class') || $toggler.text() || '').replace(/ /, '');
30    }
31    
32    $content.appendTo($container);
33    toggles.push(lp.toggle.setup($toggler, $content).name(name));
34    
35    return pageTools;
36  };
37  
38  pageTools.initialize = function(containerOrSelector) {
39    $container = getJQueryObject(containerOrSelector);
40    initialized = !!$container.length;
41    
42    return pageTools;
43  };
44  
45  pageTools.group = function() {
46    lp.toggle.group.apply(lp.toggle, toggles);
47    return pageTools;
48  };
49
50  return exports;
51}(lp || {}, jQuery));

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.