PageSourceSearch

https://www.openstack.org/themes/openstack/javascript/querystring.jquery.js?m=1788880289

js openstack.org collected 2026-09-24 07:44:15 UTC 1,334 bytes, 36 lines download raw bytes

1/**
2 * Copyright 2014 Openstack Foundation
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS,
9 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 * See the License for the specific language governing permissions and
11 * limitations under the License.
12 **/
13(function($) {
14    $.QueryString = (function(a) {
15        if (a == "") return {};
16        var b = {};
17        for (var i = 0; i < a.length; ++i)
18        {
19            var p = a[i].split('=');
20
21            if (p.length != 2) continue;
22
23            var key = decodeURIComponent(p[0]);
24            var val = decodeURIComponent(p[1].replace(/\+/g, " "));
25            if(b[key] !== undefined && typeof b[key] === 'string'){
26                b[key] = [b[key]];
27            }
28            if( Object.prototype.toString.call( b[key] ) === '[object Array]' ){
29                b[key].push(val);
30                continue;
31            }
32            b[key] = val;
33        }
34        return b;
35    })(window.location.search.substr(1).split('&'))
36})(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.