PageSourceSearch

https://www.abracadacraft.com/assets/www.abracadacraft.com/sites/all/modules/views/js/base-2e7d2c03a9.js

js abracadacraft.com collected 2026-10-03 21:22:03 UTC 4,816 bytes, 154 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10/**
11 * @file base.js
12 *
13 * Some basic behaviors and utility functions for Views.
14 */
15
16Drupal.Views = {};
17
18/**
19 * jQuery UI tabs, Views integration component
20 */
21Drupal.behaviors.viewsTabs = function (context) {
22  $('#views-tabset:not(.views-processed)').addClass('views-processed').each(function() {
23    new Drupal.Views.Tabs($(this), {selectedClass: 'active'});
24  });
25
26  $('a.views-remove-link')
27    .addClass('views-processed')
28    .click(function() {
29      var id = $(this).attr('id').replace('views-remove-link-', '');
30      $('#views-row-' + id).hide();
31      $('#views-removed-' + id).attr('checked', true);
32      return false;
33    });
34}
35
36/**
37 * For IE, attach some javascript so that our hovers do what they're supposed
38 * to do.
39 */
40Drupal.behaviors.viewsHoverlinks = function() {
41  if ($.browser.msie) {
42    // If IE, attach a hover event so we can see our admin links.
43    $("div.view:not(.views-hover-processed)").addClass('views-hover-processed').hover(
44      function() {
45        $('div.views-hide', this).addClass("views-hide-hover"); return true;
46      },
47      function(){
48        $('div.views-hide', this).removeClass("views-hide-hover"); return true;
49      }
50    );
51    $("div.views-admin-links:not(.views-hover-processed)")
52      .addClass('views-hover-processed')
53      .hover(
54        function() {
55          $(this).addClass("views-admin-links-hover"); return true;
56        },
57        function(){
58          $(this).removeClass("views-admin-links-hover"); return true;
59        }
60      );
61  }
62}
63
64/**
65 * Helper function to parse a querystring.
66 */
67Drupal.Views.parseQueryString = function (query) {
68  var args = {};
69  var pos = query.indexOf('?');
70  if (pos != -1) {
71    query = query.substring(pos + 1);
72  }
73  var pairs = query.split('&');
74  for(var i in pairs) {
75    if (typeof(pairs[i]) == 'string') {
76      var pair = pairs[i].split('=');
77      // Ignore the 'q' path argument, if present.
78      if (pair[0] != 'q' && pair[1]) {
79        args[pair[0]] = decodeURIComponent(pair[1].replace(/\+/g, ' '));
80      }
81    }
82  }
83  return args;
84};
85
86/**
87 * Helper function to return a view's arguments based on a path.
88 */
89Drupal.Views.parseViewArgs = function (href, viewPath) {
90  var returnObj = {};
91  var path = Drupal.Views.getPath(href);
92  // Ensure we have a correct path.
93  if (viewPath && path.substring(0, viewPath.length + 1) == viewPath + '/') {
94    var args = decodeURIComponent(path.substring(viewPath.length + 1, path.length));
95    returnObj.view_args = args;
96    returnObj.view_path = path;
97  }
98  return returnObj;
99};
100
101/**
102 * Strip off the protocol plus domain from an href.
103 */
104Drupal.Views.pathPortion = function (href) {
105  // Remove e.g. http://example.com if present.
106  var protocol = window.location.protocol;
107  if (href.substring(0, protocol.length) == protocol) {
108    // 2 is the length of the '//' that normally follows the protocol
109    href = href.substring(href.indexOf('/', protocol.length + 2));
110  }
111  return href;
112};
113
114/**
115 * Return the Drupal path portion of an href.
116 */
117Drupal.Views.getPath = function (href) {
118  href = Drupal.Views.pathPortion(href);
119  href = href.substring(Drupal.settings.basePath.length, href.length);
120  // 3 is the length of the '?q=' added to the url without clean urls.
121  if (href.substring(0, 3) == '?q=') {
122    href = href.substring(3, href.length);
123  }
124  var chars = ['#', '?', '&'];
125  for (i in chars) {
126    if (href.indexOf(chars[i]) > -1) {
127      href = href.substr(0, href.indexOf(chars[i]));
128    }
129  }
130  return href;
131};
132
133}
134
135/*
136     FILE ARCHIVED ON 19:55:27 Sep 27, 2018 AND RETRIEVED FROM THE
137     INTERNET ARCHIVE ON 06:12:48 Sep 02, 2026.
138     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
139
140     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
141     SECTION 108(a)(3)).
142*/
143/*
144playback timings (ms):
145  captures_list: 0.65
146  exclusion.robots: 0.081
147  exclusion.robots.policy: 0.068
148  esindex: 0.009
149  cdx.remote: 17.137
150  LoadShardBlock: 80.788 (3)
151  PetaboxLoader3.datanode: 58.346 (4)
152  load_resource: 193.999
153  PetaboxLoader3.resolve: 30.918
154*/

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.