PageSourceSearch

https://www.canalextremadura.es/themes/custom/cx_frontend/js/cx_frontend.js?tlta08

js canalextremadura.es collected 2026-09-24 09:30:51 UTC 1,107 bytes, 40 lines download raw bytes

1/**
2 * @file
3 * SBlue Custom Code of the javascript behaviour.
4 */
5
6(function ($) {
7  Drupal.behaviors.sdosTheme = {
8    attach: function (context) {
9
10      function querystring(key) {
11        var re = new RegExp('(?:\\?|&)' + key + '=(.*?)(?=&|$)','gi');
12        var r = [], m;
13        while ((m = re.exec(document.location.search)) !== null) {
14          r.push(m[1]);
15        }
16        return r;
17      }
18      function basename(str) {
19        var base = str.toString().substring(str.lastIndexOf('/') + 1);
20        if (base.lastIndexOf(".") != -1) {
21          base = base.substring(0, base.lastIndexOf("."));
22        }
23        return base;
24      }
25      function updateQueryStringParameter(uri, key, value) {
26        var re = new RegExp("([?|&])" + key + "=.*?(&|$)", "i");
27        separator = uri.indexOf('?') !== -1 ? "&" : "?";
28        var url = window.location.href;
29        if (uri.match(re)) {
30          url = uri.replace(re, '$1' + key + "=" + value + '$2');
31        }
32        else {
33          url = uri + separator + key + "=" + value;
34        }
35        return url;
36      }
37
38    }
39  };
40})(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.