PageSourceSearch

https://skin3.yxlady.com/skin/mobile.js

js yxlady.com collected 2026-10-02 06:04:37 UTC 4,697 bytes, 116 lines download raw bytes

1var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cscript src='" + _bdhmProtocol + "skin3.yxlady.com/skin/hm.js%3Fec15606f91acff10cf6e283db88a20c4' type='text/javascript'%3E%3C/script%3E"));
2
3var yxmbrow = {
4    ver: function() {
5        var u = navigator.userAgent.toLowerCase();
6        return {
7            meizu: u.indexOf('mz-') > -1 || u.indexOf('zh-cn; m') > -1 || u.indexOf('pro 5') > -1 || u.indexOf('pro 6') > -1 || u.indexOf('mx5') > -1 || u.indexOf('mx4 pro') > -1 || u.indexOf('m3 note') > -1 || u.indexOf('m3s') > -1 || u.indexOf('m2 note') > -1
8        };
9    }()
10}
11
12var browser = {
13    versions: function() {
14        var u = navigator.userAgent,
15            app = navigator.appVersion;
16        return {
17            trident: u.indexOf('Trident') > -1,
18            presto: u.indexOf('Presto') > -1,
19            webKit: u.indexOf('AppleWebKit') > -1,
20            gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,
21            mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/IEMobile/) || !!u.match(/Windows Phone/) || !!u.match(/Android/) || !!u.match(/iPhone/) || !!u.match(/iPad/),
22            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
23            android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,
24            iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1,
25            ucbrowser: u.indexOf('UCBrowser') > -1,
26            iPad: u.indexOf('iPad') > -1,
27            windowsphone: u.indexOf('Windows Phone') > -1,
28            webApp: u.indexOf('Safari') == -1,
29            fang: u.indexOf('MQQBrowser') > -1 || u.indexOf('MiuiBrowser') > -1 || u.indexOf('mso_app') > -1 || u.indexOf('UCBrowser') > -1 || u.indexOf('LieBaoFast') > -1 || u.indexOf('SogouMobileBrowser') > -1 || u.indexOf('Mb2345Browser') > -1,
30            //fangmm :  u.indexOf('MiuiBrowser') > -1 || u.indexOf('UCBrowser') > -1 || u.indexOf('MQQBrowser') > -1 || u.indexOf('MicroMessenger') > -1  || u.indexOf('QQ/') > -1 || u.indexOf('vivo') > -1 || u.indexOf('Letv') > -1 || u.indexOf('OppoBrowser') > -1, 
31            fangmm: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/IEMobile/) || !!u.match(/Windows Phone/) || !!u.match(/Android/) || !!u.match(/iPhone/) || !!u.match(/iPad/),
32            mqq: u.indexOf('MQQBrowser') > -1 && u.indexOf('MicroMessenger') == -1 && u.indexOf('QQ/') == -1
33        };
34    }(),
35    language: (navigator.browserLanguage || navigator.language).toLowerCase()
36}
37
38function loadjscssfile(filename, filetype) {
39    if (filetype == "js") {
40        var fileref = document.createElement('script')
41        fileref.setAttribute("type", "text/javascript")
42        fileref.setAttribute("src", filename)
43    } else if (filetype == "css") {
44        var fileref = document.createElement("link")
45        fileref.setAttribute("rel", "stylesheet")
46        fileref.setAttribute("type", "text/css")
47        fileref.setAttribute("href", filename)
48    }
49    if (typeof fileref != "undefined") {
50        document.getElementsByTagName("head")[0].appendChild(fileref)
51    }
52}
53
54if (top != self) {
55    top.location = self.location;
56}
57
58urlhost = window.location.host;
59urldomain = urlhost.substr(urlhost.length - 10);
60if (urldomain != 'yxlady.com') {
61    //window.location.href = 'http://www.yxlady.com';
62}
63
64var _hmt = _hmt || [];
65(function() {
66    var hm = document.createElement("script");
67    hm.src = "https://hm.baidu.com/hm.js?917456cc8ed736b9e67249d5ab23c34b";
68    var s = document.getElementsByTagName("script")[0];
69    s.parentNode.insertBefore(hm, s);
70})();
71
72
73
74
75function setImportant(designWidth, maxWidth) {
76    var doc = document,
77        win = window,
78        docEl = doc.documentElement,
79        remStyle = document.createElement("style"),
80        tid;
81
82    function refreshRem() {
83        var width = docEl.getBoundingClientRect().width;
84        maxWidth = maxWidth || 540;
85        width > maxWidth && (width = maxWidth);
86        var rem = width * 100 / designWidth;
87        // remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
88        document.querySelector('html').style.fontSize = `${rem}px`
89    }
90
91    refreshRem();
92
93    win.addEventListener("resize", function() {
94        clearTimeout(tid);
95        tid = setTimeout(refreshRem, 300);
96    }, false);
97
98    win.addEventListener("pageshow", function(e) {
99        if (e.persisted) {
100            clearTimeout(tid);
101            tid = setTimeout(refreshRem, 300);
102        }
103    }, false);
104}
105setImportant(750, 750);
106
107
108
109
110
111
112
113
114function close() {
115    document.querySelector('.company-mini').style.display = 'none';
116}

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.