...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
* @fileoverview YAS (YOHO! Acquisition System) YOHO!采集系统的前端js的开发包,
|
|
|
* 用于在网页端采集信息(应用信息,用户信息,用户行为信息,浏览器及其系统信息)。
|
|
|
*/
|
|
|
require('yoho.json2');
|
|
|
|
|
|
//工具库
|
|
|
var util = require('./util');
|
...
|
...
|
@@ -17,8 +18,6 @@ var ev = require('./event'); |
|
|
|
|
|
var config = require('./config');
|
|
|
|
|
|
require('yoho.json2');
|
|
|
|
|
|
//sdk 版本
|
|
|
var version = config.version;
|
|
|
|
...
|
...
|
@@ -71,16 +70,8 @@ var browserInfo = { |
|
|
sy: window.navigator.platform, //systemInfo
|
|
|
ce: window.navigator.cookieEnabled, //cookiesEnabled
|
|
|
fv: flash.f ? flash.v : 0 //flashVersion
|
|
|
|
|
|
};
|
|
|
|
|
|
(function() {
|
|
|
var hm = document.createElement("script");
|
|
|
hm.src = "http://pv.sohu.com/cityjson?ie=utf-8";
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
})();
|
|
|
|
|
|
//入口方法
|
|
|
var _yas = function(initTime, version, tid, uid, geo, selector) {
|
|
|
custInfo.ak = tid;
|
...
|
...
|
|