PageSourceSearch

https://www.tsxgroupe.com/wp-content/themes/cdz/static/js/page.js

js tsxgroupe.com collected 2026-09-26 14:41:14 UTC 9,156 bytes, 166 lines download raw bytes

1function AsideSearch() { $("#SidebarSearch")
2        .keypress(function (event) { var keycode = event.keyCode ? event.keyCode : event.which; if (keycode == "13") { console.log($("#SidebarSearch")
3                    .val()); if ($("#SidebarSearch")
4                    .val() == "") { toastr.warning("Please enter search content!"); return false } PSearchSidebar() } });
5    $(".sidebar-search .search-btn")
6        .click(function () { if ($("#SidebarSearch")
7                .val() == "") { toastr.warning("Please enter search content!") } }) } AsideSearch();
8
9function companyVisionAccordion() { var Accordion = function (el, multiple) { this.el = el || {};
10        this.multiple = multiple || false; var links = this.el.find(".link");
11        links.on("click", { el: this.el, multiple: this.multiple }, this.dropdown) };
12    Accordion.prototype.dropdown = function (e) { var $el = e.data.el;
13        ($this = $(this)), ($next = $this.next());
14        $next.slideToggle();
15        $this.parent()
16            .toggleClass("open"); if (!e.data.multiple) { $el.find(".content")
17                .not($next)
18                .slideUp()
19                .parent()
20                .removeClass("open") } };
21    new Accordion($("#accordion"), false) } companyVisionAccordion();
22
23function sidebarCate() { $(".sidebar-cate .menu-item .sub-menu")
24        .before('<em class="iconfont icon-xiangyoujiantou"></em>'); var Accordion = function (el, multiple) { this.el = el || {};
25        this.multiple = multiple || false; var links = this.el.find("em");
26        links.on("click", { el: this.el, multiple: this.multiple }, this.dropdown) };
27    Accordion.prototype.dropdown = function (e) { var $el = e.data.el;
28        ($this = $(this)), ($next = $this.next());
29        $next.slideToggle();
30        $this.parent()
31            .toggleClass("active"); if (!e.data.multiple) { $el.find(".sub-menu")
32                .not($next)
33                .slideUp()
34                .parent()
35                .removeClass("active") } };
36    new Accordion($(".sidebar-cate"), false) } sidebarCate();
37
38function proDetailsTabs() { var dataID = $('#tagTabs')
39        .attr('data-id'); if (dataID == 1) { $("#tagTabs .tagItem:nth-child(1)")
40            .click(function () { $("html,body")
41                    .animate({ scrollTop: $("#tagContent0")
42                            .offset()
43                            .top - 80 }, 500) });
44        $("#tagTabs .tagItem:nth-child(2)")
45            .click(function () { $("html,body")
46                    .animate({ scrollTop: $("#tagContent1")
47                            .offset()
48                            .top - 80 }, 500) }) } else { $('#tagContent1')
49            .hide();
50        $("#tagTabs .tagItem:nth-child(1)")
51            .click(function () { $("#tagTabs .tagItem")
52                    .removeClass('current');
53                $(this)
54                    .addClass('current');
55                $('#tagContent0')
56                    .show();
57                $('#tagContent1')
58                    .hide() });
59        $("#tagTabs .tagItem:nth-child(2)")
60            .click(function () { $("#tagTabs .tagItem")
61                    .removeClass('current');
62                $(this)
63                    .addClass('current');
64                $('#tagContent0')
65                    .hide();
66                $('#tagContent1')
67                    .show() }) } } proDetailsTabs();
68
69
70function AsideCateActive() { var breadcrumbsHref = $(".banner-breadcrumbs>a:last-child")
71        .attr("href");
72    $(".sidebar-cate>li>a")
73        .each(function () { if (breadcrumbsHref == $(this)
74                .attr("href")) { $(this)
75                    .parents("li")
76                    .addClass("active")
77                    .children(".sub-menu")
78                    .show() } });
79    $(".sidebar-cate .menu-item .sub-menu li a")
80        .each(function () { if (breadcrumbsHref == $(this)
81                .attr("href")) { $(this)
82                    .parents("li")
83                    .addClass("active");
84                $(this)
85                    .parents(".sidebar-cate .menu-item")
86                    .children(".sub-menu")
87                    .show() } }) } AsideCateActive();
88$(function () { if ($(".inquiry-prolist")
89        .length) { const inquirylist = localStorage.getItem("productCachePC"); const arr = JSON.parse(inquirylist);
90        
91		
92		
93        function productCache() { if (arr.length > 0) { $(".inquiry-prolist")
94                    //.show() } for (let i in arr) { var t = arr[i];
95                $(".inquiry-prolist")
96                    .append('<div class="inquiry-pro-item" data-id="'.concat(t.id, '"><div class="pro-item-img"><a href="')
97                        .concat(t.url, '"><img src="')
98                        .concat(t.image, '" alt="')
99                        .concat(t.name, '"></a></div><div class="pro-item-name">Product name:<p><a href="')
100                        .concat(t.url, '">')
101                        .concat(t.name, '</a></p></div><div class="pro-item-del"><i class="iconfont icon-guanbi"></i></div></div>')) } } productCache();
102        $(".pro-item-del")
103            .click(function () { $(this)
104                    .parents(".inquiry-pro-item")
105                    .remove(); var dataid = $(this)
106                    .parents(".inquiry-pro-item")
107                   // .attr("data-id"); for (let i in arr) { if (arr[i].id == dataid) { arr.splice(i, 1);
108                        localStorage.setItem("productCachePC", JSON.stringify(arr)); if (arr.length == 0) { $(".inquiry-prolist")
109                                .hide() } /*} }*/ }) } if (typeof Swiper !== "undefined") { var pagevideo = new Swiper("#pagevideo", { slidesPerView: 3, spaceBetween: 30, pagination: { el: ".swiper-pagination", type: "fraction" }, navigation: { nextEl: ".video-button-next", prevEl: ".video-button-prev" }, breakpoints: { 0: { slidesPerView: 1, spaceBetween: 10 }, 768: { slidesPerView: 2, spaceBetween: 20 }, 1024: { slidesPerView: 3, spaceBetween: 20 } } }); var teamTookSwiper = new Swiper("#teamTookSwiper", { autoplay: { disableOnInteraction: false, delay: 2000 }, slidesPerView: 4, spaceBetween: 30, loop: true, pagination: { el: ".took-pagination", clickable: true }, breakpoints: { 320: { slidesPerView: 2, spaceBetween: 10 }, 768: { slidesPerView: 4, spaceBetween: 20 } } }) 
110								
111								
112} });
113function pageFaq() {  { $(".project-list")
114            .addClass("faqs-list");
115        $(".faqs-list li:nth-child(1) .project-info")
116            .addClass("open") } var Accordion = function (el, multiple) { this.el = el || {};
117        this.multiple = multiple || false; var links = this.el.find(".project-name");
118        links.on("click", { el: this.el, multiple: this.multiple }, this.dropdown) };
119    Accordion.prototype.dropdown = function (e) { var $el = e.data.el;
120        ($this = $(this)), ($next = $this.next());
121        $next.slideToggle();
122        $this.parent()
123            .toggleClass("open"); if (!e.data.multiple) { $el.find(".project-content")
124                .not($next)
125                .slideUp()
126                .parent()
127                .removeClass("open") } };
128    new Accordion($(".faqs-list"), false) } pageFaq();
129function proDetailsVideo() { var mediaSrc = $("#media source")
130        .attr("src"); if (mediaSrc != "") { $(".preview-container .thumbnail-box .item")
131            .click(function () { $("#media")
132                    .hide();
133                $(".small-box")
134                    .show();
135                $(".vPlay")
136                    .show() });
137        $(".vPlay")
138            .click(function () { $("#media")
139                    .show();
140                $(".small-box")
141                    .hide() }) } else { $(".vPlay")
142            .hide() } }
143if (!isMob()) { proDetailsVideo() }
144
145function isSeo() { const probottom = $(".pro-bottom")
146        .text()
147        .replace(/\s*/g, ""); if (probottom == "") { $(".pro-bottom")
148            .hide() } } isSeo();
149
150function proDetailSwiper() { if (window.innerWidth > 768) { if ($("#gallery")
151            .length) { var swiperproduct = new Swiper("#gallery", { slidesPerView: 3, spaceBetween: 30, navigation: { nextEl: ".prodetails-button-next", prevEl: ".prodetails-button-prev" }, breakpoints: { 0: { spaceBetween: 10 }, 1280: { spaceBetween: 30 } } }) } } $('.preview-container .thumbnail-box .item .imgalt')
152        .each(function () { if ($(this)
153                .html() == '') { $(this)
154                    .hide() } }) } proDetailSwiper();
155
156function pageseobox() { if ($(".pro-bottom")
157        .text() == "") { $(".pro-bottom")
158            .hide() } } pageseobox();
159$(function () { if (isMob()) { $(".page-main")
160            .append($(".sidebar-item.inquiry")) } $(".pro-btn.send,.newsendinquiry")
161        .click(function () { $("html,body")
162                .animate({ scrollTop: $("#toinquiry")
163                        .offset()
164                        .top - 70 }, 500) });
165    $('article table')
166        .wrap('<div class="table-wrap"></div>') });

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.