采集的文章
var WX_BJ_REPORT = window.WX_BJ_REPORT || {}; (function(_) { if (_.BadJs) { return; }
var BADJS_WIN_ERR = 'BadjsWindowError'; var extend = function(source, destination) { for (var property in destination) { source[property] = destination[property] } return source }
_.BadJs = { uin: 0, mid: "", view: "wap", _cache: {}, _info: {}, _hookCallback: null, ignorePath: true, throw: function(e, extData) { this.onError(e, extData); throw e; },
onError: function(e, extData) { try {
if (e.BADJS_EXCUTED == true) { return; } e.BADJS_EXCUTED = true; var data = errToData(e); data.uin = this.uin; data.mid = this.mid; data.view = this.view; data.cmdb_module = 'mmbizwap';
if (!!extData) { data = extend(data, extData); }
if (data.cid) { data.key = "[" + data.cid + "]:" + data.key; }
if (data._info) { if (Object.prototype.toString.call(data._info) == "[object Object]") { data.msg += " || info:" + JSON.stringify(data._info); } else if (Object.prototype.toString.call(data._info) == "[object String]") { data.msg += " || info:" + data._info; } else { data.msg += " || info:" + data._info; } } if (typeof this._hookCallback == "function") { if (this._hookCallback(data) === false) { return } } this._send(data); return _.BadJs; } catch (e) { console.error(e); } }, winErr: function(event) { if (event.error && event.error.BADJS_EXCUTED) { return; } if (event.type === 'unhandledrejection') { _.BadJs.onError(createError(event.type, typeof event.reason === 'object' ? JSON.stringify(event.reason) : event.reason, "", "", "", event.reason)); }else{ _.BadJs.onError(createError(BADJS_WIN_ERR, event.message, event.filename, event.lineno, event.colno, event.error)); } }, init: function(uin, mid, view) { this.uin = uin || this.uin; this.mid = mid || this.mid; this.view = view || this.view; return _.BadJs; },
hook: function(fn) { this._hookCallback = fn; return _.BadJs; }, _send: function(data) {
if (!data.mid) { if (typeof window.PAGE_MID !== 'undefined' && window.PAGE_MID) { data.mid = window.PAGE_MID; } else { return; } } if (!data.uin) { data.uin = window.user_uin || 0; }
var flag = [data.mid, data.name, data.key].join("|"); if (this._cache && this._cache[flag]) { return } else { this._cache && (this._cache[flag] = true); this._xhr(data); } return _.BadJs; }, _xhr: function(data) {
var xmlobj; if (window.ActiveXObject) { try { xmlobj = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlobj = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlobj = false; } } } else if (window.XMLHttpRequest) { xmlobj = new XMLHttpRequest(); } var param = ""; for (var key in data) { if (key && data[key]) { param += [key, "=", encodeURIComponent(data[key]), "&"].join(""); } } if (xmlobj && typeof xmlobj.open == "function") { xmlobj.open("POST", "https://badjs.weixinbridge.com/report", true); xmlobj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); xmlobj.onreadystatechange = function(status) {}; xmlobj.send(param.slice(0, -1)); } else { var img = new Image(); img.src = "https://badjs.weixinbridge.com/report?" + param; } },
report: function(name, key, data) { this.onError(createError(name, key), data); return this; },
mark: function(info) { this._info = extend(this._info, info); }, nocache: function() { this._cache = false; return _.BadJs; } } function createError(name, msg, url, line, col, error) { return { name: name || "", message: msg || "", file: url || "", line: line || "", col: col || "", stack: (error && error.stack) || "", } }
function errToData(e) { var _stack = parseStack(e); return { name: e.name, key: e.message, msg: e.message, stack: _stack.info, file: _stack.file, line: _stack.line, col: _stack.col, client_version: "", _info: e._info } } function parseStack(e) { e._info = e._info || ""; var stack = e.stack || ""; var _stack = { info: stack, file: e.file || "", line: e.line || "", col: e.col || "", }; if (_stack.file == "") {
var stackArr = stack.split(/batb/); if (stackArr && stackArr[1]) { var match = /(https?://[^n]+):(d+):(d+)/.exec(stackArr[1]); if (match) {
if (match[1] && match[1] != _stack.file) { _stack.file && (e._info += " [file: " + _stack.file + " ]"); _stack.file = match[1]; } if (match[2] && match[2] != _stack.line) { _stack.line && (e._info += " [line: " + _stack.line + " ]"); _stack.line = match[2]; } if (match[3] && match[3] != _stack.col) { _stack.col && (e._info += " [col: " + _stack.col + " ]"); _stack.col = match[3]; } } } }
if (_stack && _stack.file && _stack.file.length > 0) { _stack.info = _stack.info.replace(new RegExp(_stack.file.split("?")[0], "gi"), "__FILE__") }
if (_.BadJs.ignorePath) { _stack.info = _stack.info.replace(/http(s)?:[^:n]*//ig, "").replace(/n/gi, ""); } return _stack; }
window.addEventListener && window.addEventListener('error', _.BadJs.winErr); window.addEventListener && window.addEventListener('unhandledrejection', _.BadJs.winErr); return _.BadJs; })(WX_BJ_REPORT); window.WX_BJ_REPORT = WX_BJ_REPORT;
function __moonf__() { if (window.__moonhasinit) return; window.__moonhasinit = true; window.__moonclientlog = []; if (typeof JSON != "object") { window.JSON = { stringify: function() { return ""; }, parse: function() { return {}; } }; } var moon_init = function() {
(function() { var inWx = (/MicroMessenger/i).test(navigator.userAgent); var inMp = (/MPAPP/i).test(navigator.userAgent); var _idkey = 121261; var _startKey; var _limit; var _badjsId; var _reportOpt; var _extInfo; var MOON_AJAX_NETWORK_OFFSET = 4; window.__initCatch = function(opt) { _idkey = opt.idkey; _startKey = opt.startKey || 0; _limit = opt.limit; _badjsId = opt.badjsId; _reportOpt = opt.reportOpt || ""; _extInfo = opt.extInfo || {}; _extInfo.rate = _extInfo.rate || 0.5; }
window.__moon_report = function(array, rate_opt) { var isAcrossOrigin = false; var href = ''; try { href = top.location.href; } catch (e) { isAcrossOrigin = true; } var rate = 0.5; if (!!_extInfo && !!_extInfo.rate) { rate = _extInfo.rate; } if (!!rate_opt && (typeof rate_opt == 'number')) { rate = rate_opt; } if ( (!(/mp.weixin.qq.com/).test(location.href) && !(/payapp.weixin.qq.com/).test(location.href)) || Math.random() > rate || !(inWx || inMp) || (top != window && !isAcrossOrigin && !(/mp.weixin.qq.com/).test(href)) ) {
} if (isObject(array)) array = [array]; if (!isArray(array) || _idkey == '') return; var data = ""; var log = []; var key = []; var val = []; var idkey = [];
if (typeof _limit != "number") { _limit = Infinity; } for (var i = 0; i < array.length; i++) { var item = array[i] || {}; if (item.offset > _limit) continue; if (typeof item.offset != "number") continue; if (item.offset == MOON_AJAX_NETWORK_OFFSET && !!_extInfo && !!_extInfo.network_rate && Math.random() >= _extInfo.network_rate) { continue; }
var k = _limit == Infinity ? _startKey : (_startKey + item.offset); log[i] = (("[moon]" + _idkey + "_" + k + ";") + item.log + ";" + getErrorMessage(item.e || {})) || ""; key[i] = k; val[i] = 1; } for (var j = 0; j < key.length; j++) { idkey[j] = _idkey + "_" + key[j] + "_" + val[j]; data = data + "&log" + j + "=" + log[j]; } if (idkey.length > 0) {
sendReport("POST", location.protocol + '//mp.weixin.qq.com/mp/jsmonitor?', "idkey=" + idkey.join(";") + "&r=" + Math.random() + "&lc=" + log.length + data);
var rate = 1;
if (_extInfo && _extInfo.badjs_rate) {
rate = _extInfo.badjs_rate;
}
if (Math.random() < rate) {
data = data.replace(/uin:(.)*|biz:(.)*|mid:(.)*|idx:(.)*|sn:(.)*|/, '');
if(!!_badjsId){
var _img = new Image();
var _src = 'https://badjs.weixinbridge.com/badjs?id=' + _badjsId + '&level=4&from=' + encodeURIComponent(location.host) + '&msg=' + encodeURIComponent(data);
_img.src = _src.slice(0, 1024);
}
if (typeof WX_BJ_REPORT != "undefined" && WX_BJ_REPORT.BadJs) {
for (var i = 0; i < array.length; i++) {
var item = array[i] || {};
if (item.e) {
WX_BJ_REPORT.BadJs.onError(item.e,{_info:item.log});
} else {
var name = /[^:;]*/.exec(item.log)[0];
WX_BJ_REPORT.BadJs.report(name, item.log, { mid: "mmbizwap:Monitor" });
}
}
}
} else {
for (var i = 0; i < array.length; i++) {
var item = array[i] || {};
if (item.e) {
item.e.BADJS_EXCUTED = true;
}
}
}
}
}
function isArray(obj) {
return Object.prototype.toString.call(obj) === '[object Array]';
}
function isObject(obj) {
return Object.prototype.toString.call(obj) === '[object Object]';
}
function getErrorMessage(e) {
var stack = e.stack + ' ' + e.toString() || "";
try {
if (!window.testenv_reshost) {
stack = stack.replace(/http(s)?://res.wx.qq.com/g, "");
} else {
var host = 'http(s)?://' + window.testenv_reshost;
var reg = new RegExp(host, 'g');
stack = stack.replace(reg, "");
}
var reg = //([^.]+)/js/(S+?).js(,|:)?/g;
while (reg.test(stack)) {
stack = stack.replace(reg, function(a, b, c, d, e, f) {
return c + d
});
}
} catch (e) {
stack = e.stack ? e.stack : ""
}
var ret = [];
for (o in _reportOpt) {
if (_reportOpt.hasOwnProperty(o)) {
ret.push(o + ":" + _reportOpt[o]);
}
}
ret.push("STK:" + stack.replace(/n/g, ""));
return ret.join("|");
}
function sendReport(type, url, data) {
if (!/^mp.weixin.qq.com$/.test(location.hostname)) {
var tmp = [];
data = data.replace(location.href, (location.origin || "") + (location.pathname || "")).replace("#wechat_redirect", "").replace("#rd", "").split("&");
for (var i = 0, il = data.length; i < il; i++) {
var a = data[i].split("=");
if (!!a[0] && !!a[1]) {
tmp.push(a[0] + "=" + encodeURIComponent(a[1]));
}
}
var _img = new window.Image();
_img.src = (url + tmp.join("&")).substr(0, 1024);
return;
}
var xmlobj;
if (window.ActiveXObject) {
try {
xmlobj = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlobj = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlobj = false;
}
}
} else if (window.XMLHttpRequest) {
xmlobj = new XMLHttpRequest();
}
if (!xmlobj) return;
xmlobj.open(type, url, true);
xmlobj.setRequestHeader("cache-control", "no-cache");
xmlobj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
xmlobj.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xmlobj.send(data);
}
})();
};
moon_init();
(!!window.__moon_initcallback) && (window.__moon_initcallback());
}
__moonf__();
if (!!window.addEventListener){
window.addEventListener("load",function(){
var MOON_SCRIPT_ERROR_KEY_OFFSET = 1;
var ns = document.querySelectorAll("[reportloaderror]");
for(var ni=0,nl=ns.length;ni
偃师是客家人南迁始发地
“客家人”是个专用名词。所谓客家人,是祖居南方的当地人对因战乱等原因迁徙到该地的中原人的称呼。因此,客家人是战乱的受害者,是战乱逼迫他们背井离乡,流落各地。自古有“得中原者得天下”之说,英雄豪杰逐鹿中原,战乱不已,使中原人民备受伤害荼毒。而偃师地处河洛平原腹心,自然是战乱频发之地,客家人就在这样的社会背景下产生了。由此可知,客家人是与偃师紧密联系在一起的。
曹魏元帝曹奂咸熙二年(265年),司马昭长子、晋王司马炎在士族豪门支持下,重演“曹丕代汉”故事,逼迫曹奂禅位,建立西晋王朝,登上皇帝宝座,是为晋武帝。咸宁六年(280年),司马炎扫灭东吴,统一全国,罢州郡兵,劝课农桑,与民休息,使社会得到短暂的安定与复苏,史家誉之为“太康繁荣”。
司马炎是个有作为的皇帝,但他犯了一个致命的错误。太子司马衷是个智障儿,他一方面担心太子继位后掌控不了天下,另方面消极接受曹魏“本根无所庇荫,遂乃三叶而亡”(曹魏没有大封本性宗亲子弟为诸侯王,当司马氏篡逆时,曹家没有人站出来保护朝廷,因此皇位仅传三代就名存实亡了)的教训,并出于监督异姓功臣及吴、蜀地方势力的需要,大封宗室27人为王,还允许封国建立军队(大国5000人,次国3000人,小国1500人人)。这个错误,埋下了西晋灭亡的祸根。
司马炎死后,司马衷继位,是为晋惠帝。晋惠帝无能,皇后贾南风擅权独掌朝政,猜忌手握重兵、专治方面的诸侯王爷,于是争夺朝廷最高权力的斗争不可避免的发生了。八个势力最大的诸侯王汝南王司马亮、楚王司马玮、赵王司马伦、齐王司马囧(jiǒng)、成都王司马颖、河间王司马顒(yóng)、长沙王司马乂(yì)、东海王司马越,以争夺京都为中心,兵锋直指河洛,展开了长达16年的大混战。这场大战史称“八王之乱”,导致“昭阳兴废,有甚弈棋,乘舆幽挚,更同羑(yǒu)里,胡羯(jié)凌辱,宗庙丘墟”,使千百万人丧生,给社会经济文化带来了极大破坏。如永宁元年(301年),司马囧、司马颖、司马伦大混战,死者十万人;永兴元年(304年),司马顒部将张方攻入京城,烧杀抢掠,死人无数,13岁以上男子全部被迫服役,米价暴涨至一石万钱,饿殍遍野。
“八王之乱”使国家衰弱,中原空虚,北方“五胡”(匈奴、鲜卑、氐、羌、羯)等少数民族的军阀趁虚而入夺取天下,兵临城下。永嘉五年(311年),匈奴大将王弥、刘曜(yào)率匈奴大军攻入洛阳,纵兵抢掠,焚烧宫殿民舍,全城为墟。这场悲剧,史称“永嘉之乱”。
“八王之乱”、“永嘉之乱”长达20余年,给京师洛阳、河洛地区、中原大地造成了极大灾难,广大汉人尤其是衣冠贵族难以生存下去,只好纷纷南迁以避战乱,于是形成了我国历史上第一次中原汉人大规模南迁浪潮。这就出现了今日各地客家人的第一批先民。
关于此次南迁人数,《中国史纲要》认为,到达长江流域的至少有70万人,另有20万人没有到达长江流域,聚居在今山东境内。客家人研究专家谭其骧先生《晋永嘉乱后之民族迁徙》一文认为,从永嘉之乱到拓跋焘(tāo)攻宋(刘裕建立的宋),北方人口南迁将近百万。为了安置这些南迁汉人,东晋朝廷沿长江一带设置了许多侨州、侨郡和侨县,如南徐州、南豫州等。侨人不入当地户籍,官吏均为北方士族。河南大学教授朱绍侯先生在《河洛文化与河洛人、客家人》一文中说:“永嘉之乱”之后的唐代“安史之乱”、唐末战乱、五代战乱、北宋南迁、南宋灭亡之时,黄河流域均有大批汉人南迁,“在每一次北方人南迁的潮流中,河洛人都占绝大多数。”
繁荣发达的汉魏晋文化,富庶美丽的洛阳盆地、河洛地区、中原大地,繁华似锦的京都盛事,都在南迁汉人、客家人的思想上留下了难以磨灭的印痕,成为他们世代沿袭、薪火相传的宝贵财富和精神支柱;许许多多的人和事,是他们永远道不完、表不尽的情怀。正是这些南迁汉人、客家先民带来的先进文化和先进生产技术,极大的促进了长江流域以及南方广大地区社会经济发展和文化进步。客家人根在河洛,客家文化与河洛文化一脉相承,是不争的事实。
唐代诗人张籍《永嘉行》诗,淋漓尽致地描绘了晋末战乱、胡人入侵、汉人南迁的悲惨场面,至今读来仍令人荡气回肠。据权威资料统计,目前生活在我国南方以及海外的客家人超过一亿人,几乎是英法两国人口的总和,以至形成了只要有人类的地方就有华人,只要有华人的地方就有客家人的局面,而且其中不乏政坛显要、金融大亨、商界大腕、文化泰斗!“煌煌祖宗业,永怀河洛间”,客家人公认“根在河洛”,台湾的客家人自称“河洛人”“河洛郎”,台湾电视台有一个专栏节目就叫“河洛大舞台”,他们对洛阳、对河洛地区、对中原大地的情感,是难以用语言表达的!
基于以上确凿史实,史学界公认偃师是客家人南迁的始发地。第一批南迁先民,是从京城出东门,在七里涧桥东的三门(遗址在今首阳山镇石桥村,是古时京师士子送去迎归之所)与亲人话别后才上路的。为纪念这个重大事件,经中华客家人权威机构认定,偃师市委、市政府于2009年建造竖立了“中原客家先民南迁圣地纪念碑”,让子子孙孙永世不忘。
编 辑丨石丹婷 审 核丨刘青晓
监 制丨刘龙选 总监制丨姬军鹏
新闻热线:67716487(工作日内拨打)
点它,浏览发布便民信息
if (!window.console) window.console = { log: function() {} }; if (typeof getComputedStyle == 'undefined') { if (document.body.currentStyle) { window.getComputedStyle = function(el) { return el.currentStyle; } } else { window.getComputedStyle = {}; } } (function(){ window.__zoom = 1;
var ua = navigator.userAgent.toLowerCase(); var re = new RegExp("msie ([0-9]+[.0-9]*)"); var version; if (re.exec(ua) != null) { version = parseInt(RegExp.$1); } var isIE = false; if (typeof version != 'undefined' && version >= 6 && version <= 9) { isIE = true; } var isAccessibilityKey = 'isMpUserAccessibility'; var isAccessMode = window.localStorage.getItem(isAccessibilityKey); var isCarton = isIE || '0' === '1' || '' === '1' || isAccessMode === '1'; var bodyWidth = '' * 1; if (bodyWidth) { var styles = getComputedStyle(document.getElementById('page-content')); bodyWidth - parseFloat(styles.paddingLeft) - parseFloat(styles.paddingRight); } var getMaxWith = function () { var container = document.getElementById('img-content'); var max_width = container.offsetWidth; !max_width && bodyWidth && (max_width = bodyWidth); var container_padding = 0; var container_style = getComputedStyle(container); container_padding = parseFloat(container_style.paddingLeft) + parseFloat(container_style.paddingRight); max_width -= container_padding; if (!max_width) { max_width = window.innerWidth - 30; } return max_width; }; var getParentWidth = function (dom) { var parent_width = 0; var parent = dom.parentNode; var outerWidth = 0; while (true) { if (!parent || parent.nodeType != 1) break; var parent_style = getComputedStyle(parent); if (!parent_style) break; parent_width = parent.clientWidth - parseFloat(parent_style.paddingLeft) - parseFloat(parent_style.paddingRight) - outerWidth; if (parent_width > 16) break; outerWidth += parseFloat(parent_style.paddingLeft) + parseFloat(parent_style.paddingRight) + parseFloat(parent_style.marginLeft) + parseFloat(parent_style.marginRight) + parseFloat(parent_style.borderLeftWidth) + parseFloat(parent_style.borderRightWidth); parent = parent.parentNode; } return parent_width; } var getOuterW = function (dom) { var style = getComputedStyle(dom), w = 0; if (!!style) { w = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth); } return w; }; var getOuterH = function (dom) { var style = getComputedStyle(dom), h = 0; if (!!style) { h = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); } return h; }; var insertAfter = function (dom, afterDom) { var _p = afterDom.parentNode; if (!_p) { return; } if (_p.lastChild === afterDom) { _p.appendChild(dom); } else { _p.insertBefore(dom, afterDom.nextSibling); } }; var getQuery = function (name, url) {
var u = arguments[1] || window.location.search, reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"), r = u.substr(u.indexOf("?") + 1).match(reg); return r != null ? r[2] : ""; };
function setImgSize(item, widthNum, widthUnit, ratio, breakParentWidth) { setTimeout(function () { var img_padding_border = getOuterW(item) || 0; var img_padding_border_top_bottom = getOuterH(item) || 0;
if (widthNum > getParentWidth(item) && !breakParentWidth) { widthNum = getParentWidth(item); }
var height = (widthNum - img_padding_border) * ratio + img_padding_border_top_bottom;
if (isCarton) { var url = item.getAttribute('data-src'); item.src = url;
item.style.height = 'auto'; } else {
widthNum !== 'auto' && (item.style.cssText += ";width: " + widthNum + widthUnit + " !important;"); widthNum !== 'auto' && (item.style.cssText += ";height: " + height + widthUnit + " !important;"); } }, 10); }
window.__videoDefaultRatio = 16 / 9;//默认值是16/9 window.__getVideoWh = function (dom) { var max_width = getMaxWith(), width = max_width, ratio_ = dom.getAttribute('data-ratio') * 1,//mark16/9 arr = [4 / 3, 16 / 9], ret = arr[0], abs = Math.abs(ret - ratio_); if (!ratio_) { if (dom.getAttribute("data-mpvid")) { ratio_ = 16 / 9; } else { ratio_ = 4 / 3; } } else { for (var j = 1, jl = arr.length; j < jl; j++) { var _abs = Math.abs(arr[j] - ratio_); if (_abs < abs) { abs = _abs; ret = arr[j]; } } ratio_ = ret; } var parent_width = getParentWidth(dom) || max_width, width = width > parent_width ? parent_width : width, outerW = getOuterW(dom) || 0, outerH = getOuterH(dom) || 0, videoW = width - outerW, videoH = videoW / ratio_, speedDotH = 12, height = videoH + outerH + speedDotH;
return { w: Math.ceil(width), h: Math.ceil(height), vh: videoH, vw: videoW, ratio: ratio_, sdh: speedDotH }; };
(function () { var iframe = document.getElementsByTagName('iframe'); for (var i = 0, il = iframe.length; i < il; i++) { if (window.__second_open__ && iframe[i].getAttribute('__sec_open_place_holder__')) { continue; } var a = iframe[i]; var src_ = a.getAttribute('src') || a.getAttribute('data-src') || ""; var vid = getQuery("vid", src_) || a.getAttribute('data-mpvid'); if (!vid) { continue; } vid = vid.replace(/^[suFEFFxA0]+|[suFEFFxA0]+$/g, "");//清除前后空格 a.removeAttribute('src'); a.style.display = "none"; var obj = window.__getVideoWh(a), videoPlaceHolderSpan = document.createElement('span'); videoPlaceHolderSpan.className = "js_img_placeholder wx_widget_placeholder"; videoPlaceHolderSpan.setAttribute("data-vid", vid); videoPlaceHolderSpan.innerHTML = ''; videoPlaceHolderSpan.style.cssText = "width: " + obj.w + "px !important;";
insertAfter(videoPlaceHolderSpan, a);
var mid = "" || "" || "2652497116"; var biz = "" || "MzA5NzAyMzE3Ng=="; var sessionid = "" || "svr_f06a14c2b80"; var idx = "" || "1"; var hitInfos = [ ];
(function setHitStyle(parentNode, copyIframe, index, vid) { var ret = (hitInfos || []).find(function (info) { return info.video_id === vid; } ); if (!ret) return; var ori = ret.ori_status; var hit_biz_headimg = ret.hit_biz_headimg + '/64'; var hit_nickname = ret.hit_nickname; var hit_username = ret.hit_username; var sourceBiz = ret.hit_bizuin;
var selfUserName = "gh_1c5b73276f2a";
if (ori === 2 && selfUserName !== hit_username) { var videoBar = document.createElement('div'); var videoBarHtml = '
a.style.cssText += ";width: " + obj.w + "px !important;"; a.setAttribute("width", obj.w); if (window.__zoom != 1) { a.style.display = "block"; videoPlaceHolderSpan.style.display = "none"; a.setAttribute("_ratio", obj.ratio); a.setAttribute("_vid", vid); } else { videoPlaceHolderSpan.style.cssText += "height: " + (obj.h - obj.sdh) + "px !important;margin-bottom: " + obj.sdh + "px !important;"; a.style.cssText += "height: " + obj.h + "px !important;"; a.setAttribute("height", obj.h); } a.setAttribute("data-vh", obj.vh); a.setAttribute("data-vw", obj.vw); if (a.getAttribute("data-mpvid")) { a.setAttribute("data-src", location.protocol + "//mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&auto=0&vid=" + vid); } else { a.setAttribute("data-src", location.protocol + "//v.qq.com/iframe/player.html?vid=" + vid + "&width=" + obj.vw + "&height=" + obj.vh + "&auto=0"); } } })();
(function () {
if (window.__zoom != 1) {
if (!window.__second_open__) {
document.getElementById('page-content').style.zoom = window.__zoom;
var a = document.getElementById('activity-name');
var b = document.getElementById('meta_content');
if (!!a) {
a.style.zoom = 1 / window.__zoom;
}
if (!!b) {
b.style.zoom = 1 / window.__zoom;
}
}
var images = document.getElementsByTagName('img');
for (var i = 0, il = images.length; i < il; i++) {
if (window.__second_open__ && images[i].getAttribute('__sec_open_place_holder__')) {
continue;
}
images[i].style.zoom = 1 / window.__zoom;
}
var iframe = document.getElementsByTagName('iframe');
for (var i = 0, il = iframe.length; i < il; i++) {
if (window.__second_open__ && iframe[i].getAttribute('__sec_open_place_holder__')) {
continue;
}
var a = iframe[i];
a.style.zoom = 1 / window.__zoom;
var src_ = a.getAttribute('data-src') || "";
if (!/^http(s)*://v.qq.com/iframe/(preview|player).html?/.test(src_)
&& !/^http(s)*://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl/.test(src_)
) {
continue;
}
var ratio = a.getAttribute("_ratio");
var vid = a.getAttribute("_vid");
a.removeAttribute("_ratio");
a.removeAttribute("_vid");
var vw = a.offsetWidth - (getOuterW(a) || 0);
var vh = vw / ratio;
var h = vh + (getOuterH(a) || 0)
a.style.cssText += "height: " + h + "px !important;"
a.setAttribute("height", h);
if (/^http(s)*://v.qq.com/iframe/(preview|player).html?/.test(src_)) {
a.setAttribute("data-src", location.protocol + "//v.qq.com/iframe/player.html?vid=" + vid + "&width=" + vw + "&height=" + vh + "&auto=0");
}
a.style.display = "none";
var parent = a.parentNode;
if (!parent) {
continue;
}
for (var j = 0, jl = parent.children.length; j < jl; j++) {
var child = parent.children[j];
if (child.className.indexOf("js_img_placeholder") >= 0 && child.getAttribute("data-vid") == vid) {
child.style.cssText += "height: " + h + "px !important;";
child.style.display = "";
}
}
}
}
})();
})();
var anchor_tree_msg = '';