https://www.xs8.cn/
哪个大佬知道这个网站的JS逻辑是怎样的,我直接引用可以使用,但是下载下来却用不了?
- <script data-ignore="true" src="//qidian.gtimg.com/lbf/1.0.4.1/LBF.js?max_age=31536000"></script><script>// LBF 配置
- LBF.config({"paths":{"site":"//qidian.gtimg.com/xs8/js","xs8":"//qidian.gtimg.com/xs8","common":"//qidian.gtimg.com/common/1.0.1"},"vars":{"theme":"//qidian.gtimg.com/xs8/css"},"combo":true,"debug":false});
- // 全局的通用数据都放g_data变量里
- var g_data = {};
- // 环境变量,会按照环境选择性打log
- g_data.envType = 'pro';
- // 用作统计PV
- g_data.pageId = 'yb_p_qidian';
- //环境域名 - 判断是否跳转到搜索页
- g_data.domainSearch = 'www.xs8.cn/search';
- //环境域名
- g_data.domainPreFix = '';
- //静态资源域名
- g_data.staticPath = '//qidian.gtimg.com/xs8';</script><script>LBF.use(['lib.jQuery', 'xs8/js/index/index.36b32.js'], function ($, Index) {
- // 页面逻辑入口
- new Index({});
- /*$(window).on('load.speedReport', function () {
- // speedTimer[onload]
- speedTimer.push(new Date().getTime());
- var f1 = 7718, // china reading limited's ID
- f2 = 260, // site ID
- f3 = 1; // page ID
- // chrome & IE9 Performance API
- SpeedReport.reportPerformance({
- flag1: f1,
- flag2: f2,
- flag3IE: f3,
- flag3Chrome: f3,
- rate:0.1,
- url: '//isdspeed.qidian.com/cgi-bin/r.cgi'
- });
- // common speedTimer:['dom ready', 'onload']
- var speedReport = SpeedReport.create({
- flag1: f1,
- flag2: f2,
- flag3: f3,
- start: speedZero,
- rate:0.1,
- url: '//isdspeed.qidian.com/cgi-bin/r.cgi'
- });
- // chrome & IE9 Performance API range 1~19, common speedTimer use 20+
- for (var i = 0; i < speedTimer.length; i++) {
- speedReport.add(speedTimer[i], i + 20)
- }
- // http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=7718&flag2=224&flag3=1&1=38&2=38&…
- speedReport.send();
- })*/
- });
- // speedTimer[dom ready], put it before </body>
- //speedTimer.push(new Date().getTime());</script><script>(function(){
- var bp = document.createElement('script');
- var curProtocol = window.location.protocol.split(':')[0];
- if (curProtocol === 'https') {
- bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
- }
- else {
- bp.src = 'http://push.zhanzhang.baidu.com/push.js';
- }
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(bp, s);
- })();</script><script>var _mtac = {"senseQuery":1};
- (function() {
- var mta = document.createElement("script");
- mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
- mta.setAttribute("name", "MTAH5");
- mta.setAttribute("sid", "500439741");
- mta.setAttribute("cid", "500455258");
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(mta, s);
- })();</script><script>(function(){
- var bp = document.createElement('script');
- var curProtocol = window.location.protocol.split(':')[0];
- if (curProtocol === 'https') {
- bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
- }
- else {
- bp.src = 'http://push.zhanzhang.baidu.com/push.js';
- }
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(bp, s);
- })();</script><script data-ignore="true" src="//qidian.gtimg.com/lib/raven/3.18.1/raven.min.js"></script><script>Raven.config('http://[email protected]/4', {
- whitelistUrls: [
- /https?:\/\/(local|dev|oa|pre|)qidian\.gtimg\.com|https?:\/\/(local|dev|oa|pre|)www\.hongxiu\.com/
- ]
- }).install();</script>
复制代码 |