PageSourceSearch

https://www.zxchemgroup.com/upload/js/f315fb0025c6424c97cc454a9473…&viewType=p&v=1790558208000&siteType=oper

js zxchemgroup.com collected 2026-10-05 19:20:34 UTC 3,947 bytes, 110 lines download raw bytes

1
2
3  $(()=>{
4  if(isFrontEnv()) {
5  $("body").addClass("zjj");
6  isFrontEnv() && $("body").each(function(){let body=$(this);let a=$(window).width();let e=["s","a"];if(a>768){$(this).addClass(e[0])}else{$(this).addClass(e[1])}requestAnimationFrame(function c(){let b=$(window).width();if(b==a){requestAnimationFrame(c);return}if(b>768){body.addClass(e[0]);body.removeClass(e[1])}else{body.removeClass(e[0]);body.addClass(e[1])}a=b;requestAnimationFrame(c)})});
7  }
8  });
9
10
11
12
13
14
15$(a => isFrontEnv() && $("body").each(a => {
16  $("a[href*='tel'],a[href*='mailto']").attr("rel", "nofollow");
17  $("div[class*=e_banner]").find(".p_info").each(function(){
18    $(this).html($(this).html().replace("h1","h2"));
19  })
20}));
21isFrontEnv() && location.href.includes(".pre.") && (onerror = a => true);
22
23
24
25
26
27document.addEventListener('DOMContentLoaded', function () {
28    //判断是什么语言
29    const Language_Query = {
30        'zh_CN': '询盘邮件',
31        'zh_HN': '詢盤郵件',
32        'en': 'Inquiry email',
33        'de': 'Anfrage-E-Mail',
34        'fr': 'E-mail de demande',
35        'ru': 'Запрос по электронной почте',
36        'pt': 'E-mail de consulta',
37        'ko': '문의 메일',
38        'ja': 'お問い合わせメール',
39        'es': 'Correo electrónico de consulta',
40        'ar': 'البريد الإلكتروني للاستفسار',
41        'it': 'E-mail di richiesta',
42        'bn': 'তদন্ত ইমেল',
43        'da': 'Forespørgselsmail',
44        'idn': 'Email pertanyaan',
45        'th': 'อีเมลสอบถาม',
46        'vi': 'Email yêu cầu',
47        'tr': 'Soruşturma e-postası',
48        'nl': 'E-mail voor aanvraag',
49        'pl': 'Zapytanie e-mailowe',
50        'cs': 'Email s dotazem',
51        'ee': 'Päringu email',
52        'fi': 'Tiedustelu sähköposti',
53        'el': 'Επικοινωνία email',
54        'hu': 'Érdeklődő email',
55        'gg': 'Имейл за запитване',
56        'hr': 'E-pošta za upit',
57        'ga': 'Ríomhphost fiosrúcháin',
58        'ro': 'E-mail de întrebare',
59        'lv': 'Uzziņas e-pasts',
60        'mt': 'Email tal-Inkjesta',
61        'sk': 'E-mail s dopytom',
62        'si': 'E-pošta za povpraševanje',
63        'sv': 'Förfrågningsmail',
64        'lt': 'Užklausos el',
65        'ml': 'E-mel pertanyaan',
66        'bur': 'စုံစမ်းမေးမြန်းရန်အီးမေးလ်',
67        'kh': 'អ៊ីមែលសាកសួរ',
68        'la': 'ສອບຖາມອີເມລ໌',
69        'ph': 'Email ng pagtatanong',
70        'fa': 'ایمیل استعلام',
71        'uk': 'Електронна пошта для запиту',
72        'ta': 'விசாரணை மின்னஞ்சல்',
73        'mn': 'Лавлагааны имэйл',
74        'kk': 'Сұрау электрондық поштасы'
75
76    };
77
78    //循环A链接
79    const A_tag = document.querySelectorAll('a');
80    let language = window.tenant.language;
81    if (!language) {
82        language = 'en';
83    }
84    const inquirySubjectText = Language_Query[language] || Language_Query['en'];
85
86    // 获取当前页面域名并赋值给currentDomain
87    const currentDomain = window.location.hostname;
88
89    A_tag.forEach((link) => {
90        const href = link.href;
91        //拼接邮件主题内容,判断逻辑,避免重复添加subject
92        if (inquirySubjectText && href.includes('mailto:')) {
93            const existingSubjectIndex = href.indexOf('?subject=');
94            if (existingSubjectIndex === -1) {
95                link.href = href + '?subject=' + inquirySubjectText;
96            }
97            link.rel = 'nofollow';
98        }
99
100        if (href.indexOf('javascript')!== -1) {
101            return;
102        }
103
104        const isExternalLink =!href.includes(currentDomain);
105        if (isExternalLink) {
106            link.target = '_blank';
107            link.rel = 'nofollow';
108        }
109    });
110});

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.