PageSourceSearch

https://www.probirka.org/sites/all/themes/probirka/js-noindex/transfer.js

js probirka.org collected 2026-09-24 09:13:58 UTC 995 bytes, 27 lines download raw bytes

1(function ($, Drupal, window, document, undefined) {
2  // SEO: repalces placeholders, found on the page with actual links.
3  Drupal.behaviors.replacePlaceholders = {
4    attach: function (context, settings) {
5      $('span.link-placeholder', context).each(function(i, e){
6        var href = $(this).data('href');
7        var text = $(this).html();
8
9        // Create a new element and assign it attributes from the current element
10        var NewElement = $("<a />");
11        $.each(this.attributes, function(i, attrib){
12          $(NewElement).attr(attrib.name, attrib.value);
13        });
14
15        $(NewElement).removeClass('link-placeholder');
16        $(NewElement).removeAttr('data-href');
17
18        $(NewElement).attr('href', href);
19
20        // Replace the current element with the new one and carry over the contents
21        $(this).replaceWith(function () {
22          return $(NewElement).append($(this).contents());
23        });
24      });
25    }
26  };
27})(jQuery, Drupal, this, this.document);

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.