PageSourceSearch

https://worldofchess.ru/sites/all/modules/xlogic/xtools/src/Plugins/client/xtruncatorphp/xtruncatorphp.js?w

js worldofchess.ru collected 2026-10-02 19:35:37 UTC 984 bytes, 34 lines download raw bytes

1
2(function($) {
3  $.fn.xtruncatorphp = function(options){
4    var opts = $.extend({}, $.fn.xtruncatorphp.defaults, options);
5
6    $(this).each(function(){
7      var $el = $(this);
8
9      // Скрытие полного текта.
10      $('.truncate-link-less', $el).on('click', function(){
11        var $wrapper = $(this).closest('.b-truncated-php');
12        var $content = $wrapper.next('.b-truncated-php');
13
14        $wrapper.css('display', 'none');
15        $content.css('display', 'inline');
16
17        return false;
18      });
19
20      // Показ полного текта.
21      $('.b-truncated-php-snipet .truncate-link-more').on('click', function(){
22        var $wrapper = $(this).closest('.b-truncated-php');
23        var $content = $wrapper.prev('.b-truncated-php');
24
25        $wrapper.css('display', 'none');
26        $content.css('display', 'inline');
27
28        return false;
29      });
30    });
31  }
32
33  $.fn.xtruncatorphp.defaults = {};
34})(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.