PageSourceSearch

https://stecter.ru/bitrix/templates/dresscodeV2/components/dresscode/catalog.item/detail/js/tags.js

js stecter.ru collected 2026-10-08 21:18:25 UTC 747 bytes, 33 lines download raw bytes

1$(function () {
2	var showMore = function (event) {
3		//jquery vars
4		var $this = $(this);
5		var $tagItemsContainer = $this.parents(".detailTagsItems");
6		var $tagItems = $tagItemsContainer.find('.detailTagsItem:not(".moreButton")');
7
8		//other
9		var lastLabel = $this.data("last-label");
10		var currentLabel = $this.html();
11
12		//check state
13		if ($this.hasClass("opened")) {
14			//hide
15			$tagItems.removeClass("showAll");
16		}
17
18		//display all
19		else {
20			$tagItems.addClass("showAll");
21		}
22
23		//change label
24		$this.html(lastLabel).data("last-label", currentLabel);
25		$this.toggleClass("opened");
26
27		//block actions
28		return event.preventDefault();
29	};
30
31	//bind functions
32	$(document).on("click", ".detailTagsItems .moreButtonLink", showMore);
33});

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.