ͬı(Conspi })());
}
return _results2;
} else {
_results3 = [];
for (_l = 0, _len3 = arr.length; _l < _len3; _l++) {
v = arr[_l];
_results3.push(el.attachEvent("on" + v, fn));
}
return _results3;
}
}
}
function _byClass (cls, root, tag) {
var arr, els, i, j, o1, o2, _i, _j, _len, _len1, _ref;
if (root == null) {
root = document.body;
}
if (tag == null) {
tag = '*';
}
root = typeof root === 'string' ? document.getElementById(root) : root;
arr = [];
if (!root) {
return arr;
}
els = root.getElementsByTagName(tag);
for (i = _i = 0, _len = els.length; _i < _len; i = ++_i) {
o1 = els[i];
_ref = o1.className.split(" ");
for (j = _j = 0, _len1 = _ref.length; _j < _len1; j = ++_j) {
o2 = _ref[j];
if (o2 === cls) {
arr.push(o1);
break;
}
}
}
return arr;
}
function _byAtrName (atrN, atrV, root, tag) {
var arr, els, o1, _i, _len;
if (root == null) {
root = document.body;
}
if (tag == null) {
tag = '*';
}
root = typeof root === 'string' ? document.getElementById(root) : root;
arr = [];
els = root.getElementsByTagName(tag);
for (_i = 0, _len = els.length; _i < _len; _i++) {
o1 = els[_i];
if (atrV != null) {
if (o1.getAttribute(atrN) === atrV) {
arr.push(o1);
}
} else {
if (o1.getAttribute(atrN) != null) {
arr.push(o1);
}
}
}
return arr;
}
function _hasClass (el, cls) {
var reg;
reg = new RegExp("(^|\\s)" + cls + "($|\\s)");
return reg.test(el.className);
}
function _removeClass (el, cls) {
var reg;
reg = new RegExp("(^|\\s)" + cls + "($|\\s)", "g");
return el.className = el.className.replace(reg, '');
}
function _addClass (el, cls) {
if (!_hasClass(el, cls)) {
return el.className += " " + cls;
}
}
function _nextElementSibling (el) {
var _el;
if (el.nextElementSibling) {
return el.nextElementSibling;
} else {
_el = el;
while (_el.nextSibling.nodeType !== 1) {
_el = _el.nextSibling;
}
return _el.nextSibling;
}
}
function _elementChildren (el, cls) {
var arr, i, o, _i, _j, _len, _len1, _ref, _ref1;
arr = [];
if (cls) {
_ref = el.childNodes;
for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
o = _ref[i];
if (o.nodeType === 1 && _hasClass(o, cls)) {
arr.push(o);
}
}
} else {
_ref1 = el.childNodes;
for (i = _j = 0, _len1 = _ref1.length; _j < _len1; i = ++_j) {
o = _ref1[i];
if (o.nodeType === 1) {
arr.push(o);
}
}
}
return arr;
};
// main
_addEvent(document.getElementById('board'),'click',(function(){
var curSelection = {trigger:null,pannel:null};
return function (e){
var e = e || window.event,
src = e.target || e.srcElement;
if (src && src.getAttribute('node-type') === 'pop'){
switchSelectionPanel(curSelection,src);
}
}
})());
function switchSelectionPanel (curSelection,el){
if (curSelection.trigger){
// 收起已展开 SelectionPanel
curSelection.pannel.style.display = 'none';
m pp pp _ _ @用户uid
uid: '1642634100',
// 文章docid,用来检测是否已收藏
docID: 'http://doc.sina.cn/?id=comos:nhwkcck5693340',
pagepubtime: '2026-05-01',
difDay: 180,
ADIDs: ["PublicRelation2","PublicRelation3","left_focus_ad","PublicRelation6","PublicRelation8","pl_sideAd"],
// 底部微博推荐,如果没有,不填即可
weiboGroupID: '',
smallsreenlock:false,
bigsreenlock:false,
is_limit5 :true
};