[mw_shl_code=css,true]define("liveStreamVideo#1.0.2/utils", [], function() {
"use strict";
var e = function(e, t) {
var i = {};
for (var n in e) i[n] = n in t ? t[n] : e[n];
return i
},
t = function(e, t) {
for (var i, n = {}, s = 0, r = e.length; r > s; s++) i = e, i in t && (n = t);
return n
},
i = function() {
return 0
},
n = function() {
var e = "",
t = window.location.href,
i = t.indexOf("http://") + "http://".length,
n = t.indexOf(".ifeng.com");
return -1 !== i && -1 !== n ? e = t.substr(i, n - i) : e
},
s = function(e) {
for (var t = e + "=", i = t.length, n = document.cookie.length, s = 0; n > s;) {
var r = s + i;
if (document.cookie.substring(s, r) === t) return function(e) {
var t = document.cookie.indexOf(";", e);
return -1 === t && (t = document.cookie.length), decodeURIComponent(document.cookie.substring(e, t))
}(r);
if (s = document.cookie.indexOf(" ", s) + 1, 0 === s) break
}
return ""
};
return {
containParams: e,
filterParams: t,
getStarTime: i,
getCookie: s,
getFrom: n
}
}), define("liveStreamVideo#1.0.2", ["F_glue", "F_WidgetBase", "videoCore#1.0.4", "liveStreamVideo#1.0.2/utils", "jquery#1.8.1"], function(e, t, i, n, s) {
"use strict";
var r = (window, document),
o = 0,
a = {
swfUrl: "http://y0.ifengimg.com/swf/ifengLivePlayer_v5.0.50_p.swf",
containerId: "",
width: 600,
height: 455
},
c = {
allowFullScreen: "true",
wmode: "transparent",
allowScriptAccess: "always"
},
u = {
ChannelID: "",
from: n.getFrom(),
ADPlay: !0,
adcpid: 1210,
AutoPlay: !0,
uid: n.getCookie("userid"),
sid: n.getCookie("sid"),
locid: n.getCookie("location"),
subject: "live",
pageurl: window.location.href,
PlayerName: "vLivePlayer",
color: "0xC2C2C2",
picUrl: "http://vimg.ifeng.com/live/images/click.jpg",
AutoP2P: !1,
picP2PUrl: "http://vimg.ifeng.com/live/images/clickp2p.jpg",
picP2PLink: "http://v.ifeng.com/live/phlive.shtml",
DisableEPG: !1
},
l = function(e) {
for (var t = [{
key: "autoPlay",
value: "AutoPlay"
}, {
key: "poster",
value: "picUrl"
}], i = 0, n = t.length; n > i; i++) t.key in e && (e[t.value] = e[t.key]);
return e
},
h = t.extend({
version: "1.0.2",
type: "liveVideo",
createModel: function() {
this.swfId = "js_streamVideo" + o++
},
mixProperties: function(e) {
e = l(e), h.superclass.mixProperties.call(this, e)
},
resolveTemplate: function() {
this.conf = n.containParams(a, this), this.paramConf = n.containParams(c, this), this.varConf = n.containParams(u, this)
},
renderer: function() {
this.createPlayer()
},
bindDataEvent: function() {},
createPlayer: function() {
var e, t = this.conf,
n = this.paramConf,
s = this.varConf,
o = new i.Player(this.container, {
url: t.swfUrl,
height: t.height,
width: t.width,
id: this.swfId
});
for (e in n) o.addParam(e, n[e]);
for (e in s) o.addVariable(e, s[e]);
o.play(), this.player = o, o.addCallback("swfplay", p), o.addCallback("shareTo", f), o.addCallback("goPage", d), this.flash = r.getElementById(this.swfId)
},
play: function() {
this.flash.videoPlay()
},
pause: function() {
this.flash.videoPause()
},
show: function() {
s(this.flash).show()
},
hide: function() {
s(this.flash).hide()
},
destroy: function() {
s(this.flash).remove()
}
}),
p = function() {
return "the last!"
},
d = function(e) {
window.open(e)
},
f = function(e, t, i, n, r) {
var o = o || {
url: document.location.href,
title: document.title
},
a = encodeURIComponent,
c = i || o.url,
u = a(c),
l = n || o.title,
h = a(l);
switch (e) {
case "ifengkuaibo":
break;
case "ifengteew":
var p = h,
d = u,
f = "凤凰视频",
m = 1,
g = screen,
v = "http://t.ifeng.com/interface.php?_c=share&_a=share&",
b = ["sourceUrl=", u, "&title=", h, "&pic=", a(r || ""), "&source=", a(f || ""), "&type=", a(m || 0)].join(""),
y = function() {
window.open([v, b].join(""), "", ["toolbar=0,status=0,resizable=1,width=640,height=481,left=", (g.width - 640) / 2, ",top=", (g.height - 480) / 2].join("")) || (location.href = [v, b].join(""))
};
/Firefox/.test(navigator.userAgent) ? setTimeout(y, 0) : y();
break;
case "kaixin":
window.open("http://www.kaixin001.com/repaste/share.php?rurl=" + u + "&rtitle=" + h);
break;
case "renren":
window.open("http://share.renren.com/share/buttonshare.do?link=" + u + "&title=" + h);
break;
case "sinateew":
var w = (screen.width - 440) / 2,
p = (screen.height - 430) / 2,
r = r || "";
s.ajax({
url: "http://api.t.sina.com.cn/friendships/create/1806128454.xml?source=168486312",
dataType: "script",
success: function() {}
}), window.open("http://v.t.sina.com.cn/share/share.php?appkey=168486312&url=" + u + "&title=" + h + "&source=ifeng&searchPic=false&sourceUrl=http://v.ifeng.com/&content=utf8&pic=" + r + "&ralateUid=1806128454", "_blank", "toolbar=0,status=0,resizable=1,width=440,height=430,left=" + w + ",top=" + p);
break;
case "qqzone":
window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + u);
break;
case "qqteew":
var x = encodeURI("f8ca1cd768da4529ab190fae9f1bf21d"),
_ = encodeURI(r || ""),
C = "http://v.ifeng.com",
k = "http://v.t.qq.com/share/share.php?title=" + h + "&url=" + u + "&appkey=" + x + "&site=" + C + "&pic=" + _;
window.open(k, "转播到腾讯微博", "width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no");
break;
case "163":
var i = "link=http://www.ifeng.com&source=" + encodeURIComponent("凤凰网") + "&info=" + h + " " + u;
window.open("http://t.163.com/article/user/checkLogin.do?" + i + "&" + (new Date).getTime(), "newwindow", "height=330,width=550,top=" + (screen.height - 280) / 2 + ",left=" + (screen.width - 550) / 2 + ", toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no");
break;
case "feixin":
var S = "http://space.fetion.com.cn/api/share?Source=" + encodeURIComponent("凤凰视频") + "&Title=" + h + "&url=" + u + "&IsEditTitle=false";
window.open(S, "newwindow", "top=" + (screen.height - 280) / 2 + ",left=" + (screen.width - 550) / 2 + ", toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no");
break;
case "sohuteew":
var g = screen,
d = c,
p = l,
v = "http://t.sohu.com/third/post.jsp?",
E = ["&url=", a(d), "&title=", a(p), "&content=utf-8", "&pic=", a(r || "")].join(""),
j = function() {
window.open([v, E].join(""), "mb", ["toolbar=0,status=0,resizable=1,width=660,height=470,left=", (g.width - 660) / 2, ",top=", (g.height - 470) / 2].join("")) || (location.href = [v, E].join(""))
};
/Firefox/.test(navigator.userAgent) ? setTimeout(j, 0) : j();
break;
case "51com":
var S = "http://share.51.com/share/out_share_video.php?from=" + encodeURIComponent("凤凰视频") + "&title=" + h + "&vaddr=" + u + "&IsEditTitle=false&charset=utf-8";
window.open(S, "newwindow", "top=" + (screen.height - 280) / 2 + ",left=" + (screen.width - 550) / 2 + ", toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no");
break;
case "baiduI":
var S = "http://tieba.baidu.com/i/app/open_share_api?link=" + u,
I = function() {
window.open(S) || (location.href = S)
};
return /Firefox/.test(navigator.userAgent) ? setTimeout(I, 0) : I(), !1;
default:
return !1
}
};
return h
}), define("livePic#1.0.9/template", ["artTemplate#3.0.3"], function(e) {
e = new e;
var t = {},
i = [];
i.push('<div class="mod-picPop__109">'), i.push(' <div class="w-imgBox js_imgBox">'), i.push(" </div>"), i.push("</div>'"), t.layout = e("layout", i.join(""));
var n = [];
return n.push('<div class="mod-mask__109" ></div>'), t.mask = e("mask", n.join("")), t.helper = function(t, i) {
e.helper(t, i)
}, t
}), define("livePic#1.0.9/utils", [], function() {
"use strict";
return {}
}), define("livePic#1.0.9/mask", ["F_glue", "F_WidgetBase", "livePic#1.0.9/template", "jquery#1.8.1"], function(e, t, i, n) {
"use strict";
var s = window,
r = t.extend({
type: "livePic/mask",
createModel: function() {
this.isHide = !0
},
resolveTemplate: function() {
this.layout = n(i.mask()), this.layout.hide()
},
renderer: function() {
n("body").append(this.layout), this.resize()
},
bindDataEvent: function() {
var e = this,
t = null;
this.layout.on("click", function() {
e.trigger("click")
}), n(s).on("resize", function() {
clearTimeout(t), t = setTimeout(function() {
e.resize()
}, 100)
})
},
show: function() {
this.isHide === !0 && (this.isHide = !1, this.layout.show())
},
hide: function() {
this.isHide === !1 && (this.isHide = !0, this.layout.hide())
},
resize: function() {
this.resizeHeight()
},
resizeHeight: function() {
this.layout.height(n(s).height())
}
});
return e.Events.mixTo(r), r
}), define("livePic#1.0.9", ["F_glue", "F_WidgetBase", "livePic#1.0.9/template", "livePic#1.0.9/utils", "livePic#1.0.9/mask", "jquery#1.8.1"], function(e, t, i, n, s, r) {
"use strict";
var o = window,
a = (document, e.Class(t).extend({
version: "1.0.9",
type: "livePic",
createModel: function() {
this.src = "", this.srcServeUrl = "http://d.ifengimg.com", this.srcRatio = "mw700", this.isHide = !0, this.mask = new s(this), this.mask.create()
},
resolveTemplate: function() {
this.layout = r(i.layout()), this.imgBox = this.layout.find(".js_imgBox"), this.layout.hide()
},
bindDomEvent: function() {
var e = null,
t = this;
this.layout.on("click", r.proxy(this.hide, this)), r(o).on("resize", function() {
clearTimeout(e), e = setTimeout(function() {
t.resize()
}, 100)
})
},
renderer: function() {
r("body").append(this.layout)
},
show: function(e) {
this.isHide !== !1 && (this.isHide = !1, this.layout.fadeIn(), this.hideHtmlScroll(), this.mask.show(), "undfined" != typeof e ? this.update(e) : this.resize())
},
hide: function() {
var e = this;
this.isHide !== !0 && (this.isHide = !0, this.layout.fadeOut(function() {
e.restoreHtmlScroll()
}), this.mask.hide())
},
update: function(e) {
var t = this,
i = new Image;
i.onload = function() {
t.resize()
}, i.src = this.getSrc(e), this.imgBox.html(i)
},
getSrc: function(e) {
var t = 0 === this.srcRatio.lastIndexOf("/") ? this.srcRatio : this.srcRatio + "/",
i = 0 === this.srcServeUrl.lastIndexOf("/") ? this.srcServeUrl : this.srcServeUrl + "/";
return e = e.replace("http://", ""), i + t + e
},
resize: function() {
if (!this.isHide) {
var e, t = r(o).height(),
i = this.imgBox.find("img").height();
this.layout.height(t), e = i > t - 100 ? 50 : (t - i) / 2, this.imgBox.css("top", e + "px"), this.mask.resize()
}
},
hideHtmlScroll: function() {
r("html").css("overflow", "hidden"), r.browser.msie && "6.0" === r.browser.version || r("html").css("padding-right", "17px")
},
restoreHtmlScroll: function() {
r("html").css("overflow", ""), r.browser.msie && "6.0" === r.browser.version || r("html").css("padding-right", "")
}
}));
return a
}), define("comment#1.1.14/Login", ["F_glue", "jquery#1.8.1"], function(e, t) {
var i = [],
n = function() {};
return n.prototype.execListener = function(e) {
for (var t = [], n = 0; n < i.length; n++) t.push(i[n]);
for (var n = 0; n < t.length; n++) t[n](e)
}, n.prototype.getCookie = function(e) {
for (var t = document.cookie, i = this.removeBlanks(t), n = i.split(";"), s = 0; s < n.length; s++) {
var r = n.split("=");
if (r.length > 1 && r[0] === e) return r[1]
}
return ""
}, n.prototype.removeBlanks = function(e) {
for (var t = "", i = 0; i < e.length; i++) {
var n = e.charAt(i);
" " !== n && (t += n)
}
return t
}, n.prototype.getUserInfo = function() {
var e = this.getCookie("sid");
if ("" == e || null == e) return null;
var t = decodeURIComponent(e).substring(32);
return {
userName: t
}
}, n.prototype.addLoginedListener = function(e) {
i.push(e)
}, n.prototype.removeLoginedListener = function(e) {
for (var t = [], n = 0; n < i.length; n++) i[n] != e && t.push(i[n]);
i = t
}, n.prototype.login = function() {
var e = this,
t = this.getUserInfo();
null != t ? e.execListener(t) : (window.REG_LOGIN_CALLBACK(1, function(t) {
var i = "string" == typeof t ? t : t.uname,
n = {
userName: i
};
isLogin = !0, e.execListener(n)
}), window.GLOBAL_LOGIN())
}, new n
}), define("comment#1.1.14/picture", [], function() {
"use strict";
function e(e) {
e = r(e);
var t = "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",
i = 0,
n = 0,
s = 0;
i = -1 ^ i;
for (var o = 0, a = e.length; a > o; o++) s = 255 & (i ^ e.charCodeAt(o)), n = "0x" + t.substr(9 * s, 8), i = i >>> 8 ^ n;
return -1 ^ i
}
function t(e) {
var t, i, n, s, o, a, c, u, l, h, p = function(e, t) {
return e << t | e >>> 32 - t
},
d = function(e, t) {
var i, n, s, r, o;
return s = 2147483648 & e, r = 2147483648 & t, i = 1073741824 & e, n = 1073741824 & t, o = (1073741823 & e) + (1073741823 & t), i & n ? 2147483648 ^ o ^ s ^ r : i | n ? 1073741824 & o ? 3221225472 ^ o ^ s ^ r : 1073741824 ^ o ^ s ^ r : o ^ s ^ r
},
f = function(e, t, i) {
return e & t | ~e & i
},
m = function(e, t, i) {
return e & i | t & ~i
},
g = function(e, t, i) {
return e ^ t ^ i
},
v = function(e, t, i) {
return t ^ (e | ~i)
},
b = function(e, t, i, n, s, r, o) {
return e = d(e, d(d(f(t, i, n), s), o)), d(p(e, r), t)
},
y = function(e, t, i, n, s, r, o) {
return e = d(e, d(d(m(t, i, n), s), o)), d(p(e, r), t)
},
w = function(e, t, i, n, s, r, o) {
return e = d(e, d(d(g(t, i, n), s), o)), d(p(e, r), t)
},
x = function(e, t, i, n, s, r, o) {
return e = d(e, d(d(v(t, i, n), s), o)), d(p(e, r), t)
},
_ = function(e) {
for (var t, i = e.length, n = i + 8, s = (n - n % 64) / 64, r = 16 * (s + 1), o = new Array(r - 1), a = 0, c = 0; i > c;) t = (c - c % 4) / 4, a = c % 4 * 8, o[t] = o[t] | e.charCodeAt(c) << a, c++;
return t = (c - c % 4) / 4, a = c % 4 * 8, o[t] = o[t] | 128 << a, o[r - 2] = i << 3, o[r - 1] = i >>> 29, o
},
C = function(e) {
var t, i, n = "",
s = "";
for (i = 0; 3 >= i; i++) t = e >>> 8 * i & 255, s = "0" + t.toString(16), n += s.substr(s.length - 2, 2);
return n
},
k = [],
S = 7,
E = 12,
j = 17,
I = 22,
P = 5,
D = 9,
T = 14,
A = 20,
B = 4,
q = 11,
O = 16,
F = 23,
L = 6,
R = 10,
$ = 15,
N = 21;
for (e = r(e), k = _(e), c = 1732584193, u = 4023233417, l = 2562383102, h = 271733878, t = k.length, i = 0; t > i; i += 16) n = c, s = u, o = l, a = h, c = b(c, u, l, h, k[i + 0], S, 3614090360), h = b(h, c, u, l, k[i + 1], E, 3905402710), l = b(l, h, c, u, k[i + 2], j, 606105819), u = b(u, l, h, c, k[i + 3], I, 3250441966), c = b(c, u, l, h, k[i + 4], S, 4118548399), h = b(h, c, u, l, k[i + 5], E, 1200080426), l = b(l, h, c, u, k[i + 6], j, 2821735955), u = b(u, l, h, c, k[i + 7], I, 4249261313), c = b(c, u, l, h, k[i + 8], S, 1770035416), h = b(h, c, u, l, k[i + 9], E, 2336552879), l = b(l, h, c, u, k[i + 10], j, 4294925233), u = b(u, l, h, c, k[i + 11], I, 2304563134), c = b(c, u, l, h, k[i + 12], S, 1804603682), h = b(h, c, u, l, k[i + 13], E, 4254626195), l = b(l, h, c, u, k[i + 14], j, 2792965006), u = b(u, l, h, c, k[i + 15], I, 1236535329), c = y(c, u, l, h, k[i + 1], P, 4129170786), h = y(h, c, u, l, k[i + 6], D, 3225465664), l = y(l, h, c, u, k[i + 11], T, 643717713), u = y(u, l, h, c, k[i + 0], A, 3921069994), c = y(c, u, l, h, k[i + 5], P, 3593408605), h = y(h, c, u, l, k[i + 10], D, 38016083), l = y(l, h, c, u, k[i + 15], T, 3634488961), u = y(u, l, h, c, k[i + 4], A, 3889429448), c = y(c, u, l, h, k[i + 9], P, 568446438), h = y(h, c, u, l, k[i + 14], D, 3275163606), l = y(l, h, c, u, k[i + 3], T, 4107603335), u = y(u, l, h, c, k[i + 8], A, 1163531501), c = y(c, u, l, h, k[i + 13], P, 2850285829), h = y(h, c, u, l, k[i + 2], D, 4243563512), l = y(l, h, c, u, k[i + 7], T, 1735328473), u = y(u, l, h, c, k[i + 12], A, 2368359562), c = w(c, u, l, h, k[i + 5], B, 4294588738), h = w(h, c, u, l, k[i + 8], q, 2272392833), l = w(l, h, c, u, k[i + 11], O, 1839030562), u = w(u, l, h, c, k[i + 14], F, 4259657740), c = w(c, u, l, h, k[i + 1], B, 2763975236), h = w(h, c, u, l, k[i + 4], q, 1272893353), l = w(l, h, c, u, k[i + 7], O, 4139469664), u = w(u, l, h, c, k[i + 10], F, 3200236656), c = w(c, u, l, h, k[i + 13], B, 681279174), h = w(h, c, u, l, k[i + 0], q, 3936430074), l = w(l, h, c, u, k[i + 3], O, 3572445317), u = w(u, l, h, c, k[i + 6], F, 76029189), c = w(c, u, l, h, k[i + 9], B, 3654602809), h = w(h, c, u, l, k[i + 12], q, 3873151461), l = w(l, h, c, u, k[i + 15], O, 530742520), u = w(u, l, h, c, k[i + 2], F, 3299628645), c = x(c, u, l, h, k[i + 0], L, 4096336452), h = x(h, c, u, l, k[i + 7], R, 1126891415), l = x(l, h, c, u, k[i + 14], $, 2878612391), u = x(u, l, h, c, k[i + 5], N, 4237533241), c = x(c, u, l, h, k[i + 12], L, 1700485571), h = x(h, c, u, l, k[i + 3], R, 2399980690), l = x(l, h, c, u, k[i + 10], $, 4293915773), u = x(u, l, h, c, k[i + 1], N, 2240044497), c = x(c, u, l, h, k[i + 8], L, 1873313359), h = x(h, c, u, l, k[i + 15], R, 4264355552), l = x(l, h, c, u, k[i + 6], $, 2734768916), u = x(u, l, h, c, k[i + 13], N, 1309151649), c = x(c, u, l, h, k[i + 4], L, 4149444226), h = x(h, c, u, l, k[i + 11], R, 3174756917), l = x(l, h, c, u, k[i + 2], $, 718787259), u = x(u, l, h, c, k[i + 9], N, 3951481745), c = d(c, n), u = d(u, s), l = d(l, o), h = d(h, a);
var M = C(c) + C(u) + C(l) + C(h);
return M.toLowerCase()
}
function i() {
var e = /%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,
t = arguments,
i = 0,
n = t[i++],
s = function(e, t, i, n) {
i || (i = " ");
var s = e.length >= t ? "" : new Array(1 + t - e.length >>> 0).join(i);
return n ? e + s : s + e
},
r = function(e, t, i, n, r, o) {
var a = n - e.length;
return a > 0 && (e = i || !r ? s(e, n, o, i) : e.slice(0, t.length) + s("", a, "0", !0) + e.slice(t.length)), e
},
o = function(e, t, i, n, o, a, c) {
var u = e >>> 0;
return i = i && u && {
2: "0b",
8: "0",
16: "0x"
}[t] || "", e = i + s(u.toString(t), a || 0, "0", !1), r(e, i, n, o, c)
},
a = function(e, t, i, n, s, o) {
return null !== n && (e = e.slice(0, n)), r(e, "", t, i, s, o)
},
c = function(e, n, c, u, l, h, p) {
var d, f, m, g, v;
if ("%%" === e) return "%";
for (var b = !1, y = "", w = !1, x = !1, _ = " ", C = c.length, k = 0; c && C > k; k++) switch (c.charAt(k)) {
case " ":
y = " ";
break;
case "+":
y = "+";
break;
case "-":
b = !0;
break;
case "'":
_ = c.charAt(k + 1);
break;
case "0":
w = !0;
break;
case "#":
x = !0
}
if (u = u ? "*" === u ? +t[i++] : "*" === u.charAt(0) ? +t[u.slice(1, -1)] : +u : 0, 0 > u && (u = -u, b = !0), !isFinite(u)) throw new Error("sprintf: (minimum-)width must be finite");
switch (h = h ? "*" === h ? +t[i++] : "*" === h.charAt(0) ? +t[h.slice(1, -1)] : +h : "fFeE".indexOf(p) > -1 ? 6 : "d" === p ? 0 : void 0, v = n ? t[n.slice(0, -1)] : t[i++], p) {
case "s":
return a(String(v), b, u, h, w, _);
case "c":
return a(String.fromCharCode(+v), b, u, h, w);
case "b":
return o(v, 2, x, b, u, h, w);
case "o":
return o(v, 8, x, b, u, h, w);
case "x":
return o(v, 16, x, b, u, h, w);
case "X":
return o(v, 16, x, b, u, h, w).toUpperCase();
case "u":
return o(v, 10, x, b, u, h, w);
case "i":
case "d":
return d = parseInt(+v, 10), f = 0 > d ? "-" : y, v = f + s(String(Math.abs(d)), h, "0", !1), r(v, f, b, u, w);
case "e":
case "E":
case "f":
case "F":
case "g":
case "G":
return d = +v, f = 0 > d ? "-" : y, m = ["toExponential", "toFixed", "toPrecision"]["efg".indexOf(p.toLowerCase())], g = ["toString", "toUpperCase"]["eEfFgG".indexOf(p) % 2], v = f + Math.abs(d)[m](h), r(v, f, b, u, w)[g]();
default:
return e
}
};
return n.replace(e, c)
}
function n(e) {
return (e + "").toLowerCase()
}
function s(e, t, i) {
e += "";
var n = e.length;
return 0 > t && (t += n), n = "undefined" == typeof i ? n : 0 > i ? i + n : i + t, t >= e.length || 0 > t || t > n ? !1 : e.slice(t, n)
}
function r(e) {
var t, i, n = e + "",
s = "",
r = 0;
t = i = 0, r = n.length;
for (var o = 0; r > o; o++) {
var a = n.charCodeAt(o),
c = null;
128 > a ? i++ : c = a > 127 && 2048 > a ? String.fromCharCode(a >> 6 | 192) + String.fromCharCode(63 & a | 128) : String.fromCharCode(a >> 12 | 224) + String.fromCharCode(a >> 6 & 63 | 128) + String.fromCharCode(63 & a | 128), null !== c && (i > t && (s += n.substring(t, i)), s += c, t = i = o + 1)
}
return i > t && (s += n.substring(t, n.length)), s
}
var o = "http://ucimg.ifeng.com/upload",
a = function(r, a) {
var c = o,
u = t(n(r)),
l = s(u, 0, 16),
h = i("%u", e(l));
h -= 255 * Math.floor(h / 255);
var p = s(u, 16),
d = i("%u", e(p));
d -= 255 * Math.floor(d / 255);
var f = c + "/" + h + "/" + d + "/" + l;
return a === !0 && (f += "_1"), f + ".jpg"
};
return a
}), define("comment#1.1.14/base", ["F_glue", "jquery#1.8.1", "F_WidgetBase", "handlebar#1.3.3", "comment#1.1.14/Login", "comment#1.1.14/picture"], function(e, t, i, n, s, r) {
n.registerHelper("each", function(e, t) {
for (var i = "", n = 0, s = e.length; s > n; n++) i += t.fn(e[n]);
return i
}), n.registerHelper("if", function(e, t) {
return e ? t.fn(this) : t.inverse(this)
}), n.registerHelper("content", function(e, t) {
return e
}), n.registerHelper("fang", function(e, t) {
var i = "";
if (e.length > 0) for (var n = e.length, s = 1, r = n; r > 0; r--) {
var o = [],
a = e[r - 1];
o.push('<div class="words mod-ori-comment">'), o.push(' <span class="t-num">' + s + "</span>"), o.push(' <p class="clearfix w-title">'), o.push(' <span class="name "><a href="http://comment.ifeng.com/viewpersonal.php?uname=' + encodeURIComponent(a.uname) + '" target="_blank">' + a.uname + "</a>[凤凰网" + a.ip_from + "]</span>"), o.push(" </p>"), o.push(' <p class="content">' + a.comment_contents + "</p>"), o.push(' <p class="rec"><span class="time">' + a.comment_date + "</span></p>"), o.push("</div>"), s++, i += o.join("")
}
return i
});
var o = "http://my.ifeng.com/logout?backurl=" + encodeURIComponent(location.href),
a = "http://t.ifent.com",
c = "http://my.ifeng.com",
u = !1,
l = 0,
h = 0,
p = 0,
d = null,
f = null,
m = null,
g = i.extend({
version: "1.1.14",
type: "comment",
initialize: function() {
var e = this;
if (g.superclass.initialize.apply(this, arguments), this.userInfo = s.getUserInfo(), null === this.userInfo) {
var t = function(i) {
e.logined(i), s.removeLoginedListener(t)
};
s.addLoginedListener(t)
}
},
getUserInfo: function() {
return this.userInfo
},
login: function() {
s.login()
},
createModel: function() {
this.version = "1.1.14", this.userInfo = s.getUserInfo(), this.hotCurrentStatue = {
pageIndex: 1,
pageSize: 10
}, this.lastCurrentStatue = {
pageIndex: 1,
pageSize: 10
}, this.itemCache = {}, this.itemtCount = 0, this.scrollToDom = null, this.model = e.modelFactory.define(function(e) {
e.getAddr = "http://comment.ifeng.com/getspecial.php", e.postAddr = "http://comment.ifeng.com/post.php", e.joincount = "http://comment.ifeng.com/joincount.php", e.speUrl = "", e.docUrl = "", e.docName = "", e.needLogin = !1, e.recommendUrl = "http://comment.ifeng.com/vote.php", e.isFang = !1, e.isInner = !1, e.hotSize = 10, e.showHot = !0, e.showHotMoreBtn = !0, e.showHotTitle = !0, e.lastSize = 10, e.showLast = !0, e.showLastTitle = !0, e.showLastMoreBtn = !0, e.useComment = !0, e.isSpecial = !1, e.fllowScroll = !0, e.showLoginBtn = !0, e.theme = ""
})
},
resolveTemplate: function() {
var e = null != this.userInfo,
t = this.getCompiledTemplate()({
isLogin: e,
userInfo: this.userInfo,
items: [],
showHot: this.model.showHot,
showLast: this.model.showLast,
commentCount: 0,
logoutUrl: o,
vbUrl: a,
myIfengUrl: c,
encodeuname: e ? encodeURIComponent(this.userInfo.userName) : "",
useComment: this.model.useComment,
commentJoinCount: 0,
isInner: this.model.isInner,
isFang: this.model.isFang,
showLoginBtn: this.model.showLoginBtn,
theme: this.model.theme
});
this.container.innerHTML = t
},
createComplete: function() {
this.model.isSpecial ? this.model.getAddr = "http://comment.ifeng.com/getspecial.php" : this.model.getAddr = "http://comment.ifeng.com/get.php", this.hotCurrentStatue.pageSize = this.model.hotSize, this.lastCurrentStatue.pageSize = this.model.lastSize, this.requestCommentData()
},
requestCommentData: function() {
var e = this;
this.model.showHot && this.getCommentList("hot"), this.model.showLast && this.getCommentList("last"), this.model.showHot || this.model.showLast || t.ajax({
url: this.model.joincount,
data: {
docUrl: e.model.docUrl
},
dataType: "jsonp",
cache: !0,
timeout: 1e4,
jsonpCallback: "__commentJoinCountCallback__",
success: function() {
e.commentCount(l), e.commentJoinCount(h)
}
})
},
loadCompleted: function() {},
bindDomEvent: function() {
var e = this;
t(this.container).on("click", ".js_submit", function() {
if (null == e.userInfo && e.model.needLogin) s.login();
else {
var i = t(e.container).find(".js_commentcontent")[0];
e.publishComment(i)
}
return !1
}), t(this.container).on("focus", ".js_commentcontent", function() {
var e = t(this).val();
return e.match(/^文明上网,不传谣言/) ? (t(this).val(e.replace(/^文明上网,不传谣言/, "")), !1) : void 0
}), t(this.container).on("blur", ".js_commentcontent", function() {
var e = t(this).val();
return "" == e ? (t(this).val("文明上网,不传谣言"), !1) : void 0
}), t(this.container).on("click", ".uptimes", function() {
var i = t(this).attr("data-value");
return e.vote(i, t(this)), !1
}), t(this.container).on("click", ".js_login", function() {
return s.login(), !1
}), t(this.container).on("click.lastmore", ".js_lastmore", function() {
var i = t(this).attr("data-type");
return e.getCommentList(i), !1
}), t(this.container).on("click.hotmore", ".js_hotmore", function() {
var i = t(this).attr("data-type");
return e.getCommentList(i), !1
}), t(this.container).on("click", ".js_btn_submit", function() {
var i = t(this).attr("data-quoteid"),
n = t(e.container).find("#replycontent_" + i);
return e.reply(i, n), !1
}), window.__commentJoinCountCallback__ = function(e, t, i) {
l = e, h = t, p = i
}
},
bindDataEvent: function() {},
logined: function(e) {
this.userInfo = e, this.refreshInput()
},
logout: function() {
this.refreshInput()
},
refreshInput: function() {
var e = {
isLogin: null != this.userInfo,
userInfo: this.userInfo,
encodeuname: encodeURIComponent(this.userInfo.userName),
logoutUrl: o,
vbUrl: a,
myIfengUrl: c,
useComment: this.model.useComment,
commentCount: this.itemtCount,
isFang: this.model.isFang,
showLoginBtn: this.model.showLoginBtn
},
i = t(this.container).find(".js_commentInput")[0],
n = t(i).find(".js_commentcontent").val();
e.oldValue = n;
var s = this.getCompiledCommentInput()(e);
t(i).replaceWith(s)
},
publishComment: function(e) {
var i = this,
n = t(e).val();
if ("" == n) return alert("请输入内容!"), !1;
var s = {};
s.docUrl = this.model.docUrl, s.speUrl = this.model.speUrl, s.docName = this.model.docName, s.format = "js", s.content = n, t.ajax({
url: this.model.postAddr,
data: s,
dataType: "jsonp",
cache: !0,
jsonpCallback: "__publishCallback__",
success: function(s) {
if (alert("发布成功!"), t(e).val(""), null != i.userInfo && "undefined" != typeof i.userInfo) var r = {
uname: i.userInfo.userName,
comment_contents: n.replace(/\r|\n/g, "<br/>"),
isMock: !0
};
else var r = {
uname: "手机用户",
comment_contents: n.replace(/\r|\n/g, "<br/>"),
isMock: !0
};
i.addItems([r], "last")
},
error: function() {}
})
},
reply: function(e, i) {
var n = t(i).val();
if ("" == n) return alert("请输入内容!"), !1;
var s = this.itemCache[e];
if ("undefined" != typeof s) {
var r = {};
r.docUrl = s.doc_url, r.speUrl = s.speUrl, r.docName = s.doc_name, r.quoteId = e, r.format = "js", r.content = n, t.ajax({
url: this.model.postAddr,
data: r,
dataType: "jsonp",
cache: !0,
jsonpCallback: "__replycallback__",
success: function(e) {
alert("回复成功!"), t(i).val("")
},
error: function() {
alert("error")
}
})
}
},
vote: function(e, i) {
var n = window._comment_vita_time || 0,
s = new Date;
return s.getTime() - n < 5e3 ? void alert("5秒钟内不得重复投票,请稍后再试") : (window._comment_vita_time = s.getTime(), void t.ajax({
url: this.model.recommendUrl,
data: {
cmtId: e,
job: "up",
format: "js",
rt: "sj",
docUrl: this.model.docUrl
},
dataType: "jsonp",
cache: !0,
jsonpCallback: "__votecallback__",
success: function(e) {
var n = i.attr("data-value");
t("#up" + n).text(parseInt(t("#up" + n).text()) + 1)
},
error: function() {}
}))
},
refresh: function() {
this.hotCurrentStatue.pageIndex = 1, this.lastCurrentStatue.pageIndex = 1, t("#commentlast").empty(), t("#commentHot").empty(), this.requestCommentData()
},
getCommentList: function(e) {
this.morehide(e);
var i = this.model.speUrl,
n = this,
s = 5,
r = {},
o = 0;
"hot" == e && (r.orderby = "uptimes", s = this.hotCurrentStatue.pageSize, o = this.hotCurrentStatue.pageIndex), "last" == e && (s = this.lastCurrentStatue.pageSize, o = this.lastCurrentStatue.pageIndex), r.speurl = i, r.docurl = this.model.docUrl, r.format = "js", this.model.isSpecial ? r.job = "9" : r.job = "1", r.pagesize = s, r.p = o, t.ajax({
url: this.model.getAddr,
data: r,
dataType: "jsonp",
cache: !0,
timeout: 1e4,
jsonpCallback: "hot" == e ? "hotCommetCallback" : "newCommentCallback",
success: function(i) {
var s = null;
s = 0 == i.comments ? [] : t.isPlainObject(i.comments) ? [i.comments] : i.comments || [], n.commentCount(i.count), n.commentJoinCount(i.join_count), n.itemtCount = i.count, s.length > 0 ? (n.addItems(s, e, r.pagesize), "hot" == e ? n.hotCurrentStatue.pageIndex = n.hotCurrentStatue.pageIndex + 1 : "last" == e && (n.lastCurrentStatue.pageIndex = n.lastCurrentStatue.pageIndex + 1)) : n.moreShow(e, !1)
},
error: function() {
n.moreShow(e)
}
})
},
addItems: function(e, i, s) {
t(this.container).find("ul li:last-child").removeClass("last-child");
for (var o = e, a = this, c = 0; c < o.length; c++) {
var u = o[c];
a.itemCache[u.comment_id] = u, u.userPicture = r(u.uname, !0), u.encodeuname = encodeURIComponent(u.uname), u.speUrl = speUrl, u.isFang = a.model.isFang, u.isLogin = null != this.userInfo, u.hasParent = "undefined" != typeof u.parent && u.parent.length > 0, c == o.length - 1 && (u.lastItem = !0)
}
var l = a.getCompliedCommentItem()({
items: o
});
if ("hot" == i && a.model.showHot) {
var h = t(a.container).find("#commentHot"),
p = !1;
if (0 == h.length) {
p = !0;
var d = a.model.showHotTitle,
f = n.compile(a.getCommentHead())({
showHot: !0,
showTitle: d
});
t(a.container).find(".js_box_comment_hot").append(f), h = t(a.container).find("#commentHot")
}
if (u.isMock) {
var m = h.children();
m.length > 0 ? m.first().before(l) : h.append(l)
} else h.append(l);
h.css("zoom", "1"), a.moreShow(i, o.length >= s && a.model.showHotMoreBtn || !u.isMock && !p)
} else if ("last" == i && a.model.showLast) {
var g = t(a.container).find("#commentlast"),
p = !1;
if (0 == g.length) {
p = !0;
var d = a.model.showLastTitle,
f = n.compile(a.getCommentHead())({
showLast: !0,
showTitle: d
});
t(a.container).find(".js_box_comment_last").append(f), g = t(a.container).find("#commentlast")
}
if (u.isMock) {
var m = g.children();
m.length > 0 ? m.first().before(l) : g.append(l)
} else g.append(l);
g.css("zoom", "1"), a.moreShow(i, o.length >= s && a.model.showLastMoreBtn || !u.isMock && !p)
}
t(this.container).find("ul li:last-child").addClass("last-child")
},
commentCount: function(e) {
t(this.container).find(".js_commentCount").html(e)
},
commentJoinCount: function(e) {
t(this.container).find(".js_commentJoinCount").html(e)
},
hotAlreadyInit: !1,
lastAlreadyInit: !1,
moreShow: function(e, i) {
var n = this;
if ("hot" == e && (t(this.container).find(".js_hotloading").hide(), t(this.container).find(".js_hotmore").show(), !i && !this.hotAlreadyInit)) {
t(this.container).find(".js_hotmore span").text("收起"), t(this.container).off(".hotmore");
var s = !0;
this.hotAlreadyInit = !0, t(this.container).find(".js_hotmore").on("click", function() {
if (t(n.container).find(".js_box_comment_hot .mod-comment-con").toggle(), t(n.container).css("zoom", "1"), s) {
if (n.scrollToDom) var e = t(n.scrollToDom).offset();
else var e = t(n.container).find(".mod-list").offset();
var i = e.top,
r = t(window).scrollTop();
r > i && t(window).scrollTop(i)
}
s = !s;
var o = s ? "收起" : "展开";
return t(n.container).find(".js_hotmore span").text(o), !1
})
}
if ("last" == e && (t(this.container).find(".js_lastloading").hide(), t(this.container).find(".js_lastmore").show(), !i && !this.lastAlreadyInit)) {
t(this.container).find(".js_lastmore").show(), t(this.container).find(".js_lastmore span").text("收起"), t(this.container).off(".lastmore");
var s = !0;
this.lastAlreadyInit = !0, t(this.container).find(".js_lastmore").on("click", function() {
if (t(n.container).find(".js_box_comment_last .mod-comment-con").toggle(), s) {
if (n.scrollToDom) var e = t(n.scrollToDom).offset();
else var e = t(n.container).find(".mod-list").offset();
var i = e.top,
r = t(window).scrollTop();
r > i && t(window).scrollTop(i)
}
s = !s;
var o = s ? "收起" : "展开";
return t(n.container).find(".js_lastmore span").text(o), !1
})
}
},
morehide: function(e) {
"hot" == e && (t(this.container).find(".js_hotloading").show(), t(this.container).find(".js_hotmore").hide()), "last" == e && (t(this.container).find(".js_lastloading").show(), t(this.container).find(".js_lastmore").hide())
},
hide: function() {
t(this.container).hide(), u = !0
},
show: function() {
t(this.container).show(), u = !1
},
isHide: function() {
return u
},
getCommentHead: function() {
var e = [];
return e.push("{{#if showHot}}"), e.push("{{#if showTitle}}"), e.push('<div class="mod-comment-typeTitle">'), e.push(' <h4 class="title">最热评论</h4>'), e.push("</div>"), e.push("{{/if}}"), e.push('<div class="mod-comment-con" ><ul class="mod-comment-ul" id="commentHot"></ul></div>'), e.push('<div class="mod-loadBox">'), e.push(' <span class="mod-loading js_hotloading" style="display:none;"></span>'), e.push(' <a href="javascript:void(0)" class="more-btn js_hotmore js_a_more" target="_blank" data-type="hot"><span>查看更多评论</span></a>'), e.push("</div>"), e.push("{{/if}}"), e.push("{{#if showLast}}"), e.push("{{#if showTitle}}"), e.push('<div class="mod-comment-typeTitle">'), e.push(' <h4 class="title">最新评论</h4>'), e.push("</div>"), e.push("{{/if}}"), e.push('<div class="mod-comment-con" ><ul class="mod-comment-ul" id="commentlast"></ul></div>'), e.push('<div class="mod-loadBox">'), e.push(' <span class="mod-loading js_lastloading" style="display:none;"></span>'), e.push(' <a href="javascript:void(0)" class="more-btn js_lastmore js_a_more" target="_blank" data-type="last"><span>查看更多评论</span></a>'), e.push("</div>"), e.push("{{/if}}"), e.join("")
},
getCommentTemplate: function() {
var e = [];
return e.push('<div class="mod-comment {{theme}}">'), e.push('<div class="mod-list">'), e.push(this.getCommentInput()), e.push('<div class="mod-comment-list">'), e.push('<div class="js_box_comment_hot mod-comment-blo"></div>'), e.push('<div class="js_box_comment_last mod-comment-blo"></div>'), e.push("</div>"), e.push("</div>"), e.push("</div>"), e.join("")
},
getCommentItem: function() {
var e = [];
return e.push("{{#each items}}"), e.push("{{#if isMock}}"), e.push("<li>"), e.push(' <div class="words js_item">'), e.push(' <p class="clearfix w-title"><span class="name "><a href="http://comment.ifeng.com/viewpersonal.php?uname={{uname}}" target="_blank">{{uname}}</a>[凤凰网{{ip_from}}网友]</span></p>'), e.push(" {{#if hasParent}}"), e.push(' <div class="mod-commentListTower">'), e.push(" </div>"), e.push(" {{/if}}"), e.push(' <p class="content">{{#content comment_contents}}{{/content}}</p>'), e.push(" </div>"), e.push("</li>"), e.push("{{else}}"), e.push("<li>"), e.push(' <div class="words js_item">'), e.push(' <p class="clearfix w-title"><span class="name "><a href="http://comment.ifeng.com/viewpersonal.php?uname={{uname}}" target="_blank">{{uname}}</a>[凤凰网{{ip_from}}网友]</span></p>'), e.push(" {{#if hasParent}}"), e.push(' <div class="mod-commentListTower">'), e.push(" {{#if isFang}}{{#fang parent}}{{/fang}}{{/if}}"), e.push(" </div>"), e.push(" {{/if}}"), e.push(' <p class="content">{{#content comment_contents}}{{/content}}</p>'), e.push(' <p class="rec js_showReply" data-quoteId="{{comment_id}}">'), e.push(' <span class="right-box">'), e.push(' <a href="javascript:;" target="_blank" class="uptimes" data-value="{{comment_id}}">推荐<em class="highlight" id="up{{comment_id}}">{{uptimes}}</em></a><em>/</em><a href="javascript:void(0);" data-quoteId="{{comment_id}}" class="js_msgReply">回复</a>'), e.push(" </span>"), e.push(' <span class="time">{{comment_date}}</span>'), e.push(" </p>"), e.push(' <div class="js_fuc"></div>'), e.push(" " + this.getPhoneReply()), e.push(" </div>"), e.push("</li>"), e.push("{{/if}}"), e.push("{{/each}}"), e.join("")
},
getPhoneReply: function() {
return ""
},
getCommentInput: function() {
var e = [];
return e.push("{{#if useComment}}"), e.push("{{#if isLogin}}"), e.push('<div class="mod-comment-area js_commentInput">'), e.push(' {{#if isInner}}<span class="re-arr"></span>{{/if}}'), e.push(' <div class="top clearfix">'), e.push(' <p class="top-txt">'), e.push(' <span class="right-box">'), e.push(' <a class="" href="javascript:;"><span class="num js_commentCount">{{commentCount}}</span>条评论</a>'), e.push(" <em>/</em>"), e.push(' <a class="" href="javascript:;"><span class="num js_commentJoinCount">{{commentJoinCount}}</span>人参与</a>'), e.push(" </span>"), e.push(' <span class="txt">网友评论</span>'), e.push(" </p>"), e.push(" </div>"), e.push(' <div class="middle">'), e.push(' <form action="">'), e.push(' <textarea name="comment" id="" class="comment-area on js_commentcontent">文明上网,不传谣言</textarea>'), e.push(" </form>"), e.push(" </div>"), e.push(' <div class="submit">'), e.push(' <a href="javascript:;" class="submit-btn js_submit">发表评论</a>'), e.push(' <a class="user-name" href="http://comment.ifeng.com/viewpersonal.php?uname={{encodeuname}}">{{userInfo.userName}}</a><em>/</em><a href="{{logoutUrl}}">退出</a>'), e.push(" </div>"), e.push("</div>"), e.push("{{else}}"), e.push('<div class="mod-comment-area js_commentInput">'), e.push(' {{#if isInner}}<span class="re-arr"></span>{{/if}}'), e.push(' <div class="top clearfix">'), e.push(' <p class="top-txt">'), e.push(' <span class="right-box">'), e.push(' <a class="" href="javascript:;"><span class="num js_commentCount">{{commentCount}}</span>条评论</a>'), e.push(" <em>/</em>"), e.push(' <a class="" href="javascript:;"><span class="num js_commentJoinCount">{{commentJoinCount}}</span>人参与</a>'), e.push(" </span>"), e.push(' <span class="txt">网友评论</span>'), e.push(" </p>"), e.push(" </div>"), e.push(' <div class="middle">'), e.push(' <form action="">'), e.push(' <textarea name="comment" id="" class="comment-area on js_commentcontent">文明上网,不传谣言</textarea>'), e.push(" </form>"), e.push(" </div>"), e.push(' <div class="submit">'), e.push(' <a href="javascript:;" class="submit-btn js_submit">发表评论</a>'), e.push(' <a class="login js_login" href="javascript:;">登录</a>'), e.push(" </div>"), e.push("</div>"), e.push("{{/if}}"), e.push("{{/if}}"), e.join("")
},
getCompiledTemplate: function() {
return null == d && (d = n.compile(this.getCommentTemplate())), d
},
getCompiledCommentInput: function() {
return null == f && (f = n.compile(this.getCommentInput())), f
},
getCompliedCommentItem: function() {
return null == m && (m = n.compile(this.getCommentItem())), m
}
});
return g
}), define("comment#1.1.14", ["jquery#1.8.1", "F_glue", "comment#1.1.14/base", "handlebar#1.3.3"], function(e, t, i, n) {
var s = "http://my.ifeng.com/logout?backurl=" + encodeURIComponent(location.href),
r = "http://t.ifent.com",
o = "http://my.ifeng.com",
a = t.Class(i).extend({
placeholderDiv: null,
commentInput: null,
commentTextAreaHeight: null,
commentInputTop: null,
commentInputPosTop: null,
commentInputHeight: null,
commentInputWidth: null,
commentInputBottom: null,
hotComment: null,
hotCommentTop: null,
hotCommentHeight: null,
hotCommentBottom: null,
lastComment: null,
lastCommentTop: null,
lastCommentHeight: null,
lastCommentBottom: null,
logined: function(e) {
a.superclass.logined.call(this, e), this.reloadEle()
},
reloadEle: function() {
this.hotComment = e(this.container).find(".js_box_comment_hot"), this.hotCommentTop = 0 == this.hotComment.length ? this.commentInputBottom : this.hotComment.offset().top, this.hotCommentHeight = 0 == this.hotComment.length ? 0 : this.hotComment.outerHeight(), this.hotCommentBottom = 0 == this.hotComment.length ? this.commentInputBottom : this.hotCommentTop + this.hotCommentHeight, this.lastComment = e(this.container).find(".js_box_comment_last"), this.lastCommentTop = 0 == this.lastComment.length ? this.hotCommentBottom : this.lastComment.offset().top, this.lastCommentHeight = 0 == this.lastComment.length ? 0 : this.lastComment.outerHeight(), this.lastCommentBottom = 0 == this.lastComment.length ? this.hotCommentBottom : this.lastCommentTop + this.lastCommentBottom
},
resolveTemplate: function() {
a.superclass.resolveTemplate.call(this, []), placeholderDiv = null, this.commentInput = e(this.container).find(".js_commentInput");
var t = this.commentInput.offset();
this.commentInputTop = t.top, this.commentInputPosTop = this.commentInput.position().top, this.commentInputHeight = this.commentInput.outerHeight(), this.commentInputBottom = this.commentInputTop + this.commentInputHeight, this.commentTextArea = this.commentInput.find("textarea").height(), this.commentInputWidth = this.commentInput.width()
},
bindDomEvent: function() {
a.superclass.bindDomEvent.call(this, []);
var t = this;
e(this.container).on("click", ".js_msgReply", function() {
if (null == t.getUserInfo() && t.model.needLogin) t.login();
else if ("true" == e(this).attr("show")) e(this).parents(".js_item").find(".js_fuc").empty(), e(this).text("回复"), e(this).attr("show", "false");
else {
var i = t.getUserInfo(),
n = e(this).attr("data-quoteId"),
a = e(t.container).find(".js_msgReply");
a.text("回复"), a.attr("show", "false"), e(t.container).find(".js_box_reply_input").remove();
var c = u({
isLogin: null != i,
userInfo: i,
encodeuname: encodeURIComponent(null == i ? "" : i.userName),
logoutUrl: s,
vbUrl: r,
myIfengUrl: o,
useComment: t.model.useComment,
quoteid: n,
isFang: t.model.isFang
});
e(this).parents(".js_item").find(".js_fuc").append(c), e(this).attr("show", "true"), e(this).text("取消")
}
return !1
}), placeholderDiv = null, t.model.useComment && t.model.fllowScroll && (e.browser.msie && "6.0" == e.browser.version ? t.ie6Scroll() : t.scroll(), e(t.container).on("click", ".js_commentcontent", function() {
return (t.commentInput.hasClass("dis_none") || t.commentInput.hasClass("dis_none_abs")) && e(".js_commentcontent").height(65), !1
}), e("body").bind("click", function() {
(t.commentInput.hasClass("dis_none") || t.commentInput.hasClass("dis_none_abs")) && e(".js_commentcontent").height(28)
}))
},
ie6Scroll: function() {
var t = this;
e(window).scroll(function() {
if (!t.isHide()) {
var i = e(window).scrollTop();
t.reloadEle(), i >= t.commentInputBottom && i < t.lastCommentBottom ? (t.commentInput.addClass("dis_none_abs"), t.commentInput.css("top", t.commentInputPosTop + (i - t.commentInputTop)), t.commentInput.css("width", t.commentInputWidth), t.commentInput.find(".js_commentcontent").height(28)) : (t.placeholderDiv = null, t.commentInput.removeClass("dis_none_abs"), t.commentInput.css("width", ""), t.commentInput.css("top", ""), t.commentInput.find(".js_commentcontent").height(65))
}
})
},
scroll: function() {
var t = this;
e(window).scroll(function() {
if (!t.isHide()) {
var i = e(window).scrollTop();
t.reloadEle(), i >= t.commentInputBottom && i < t.lastCommentBottom - 110 ? (null == t.placeholderDiv && (t.placeholderDiv = e('<div id="placeholderDiv">'), t.placeholderDiv.css("height", t.commentInputHeight), t.commentInput.before(t.placeholderDiv)), t.commentInput.addClass("dis_none"), t.commentInput.css("width", t.commentInputWidth), t.commentInput.find(".js_commentcontent").height(28)) : (e(t.container).find("#placeholderDiv").remove(), t.placeholderDiv = null, t.commentInput.removeClass("dis_none"), t.commentInput.css("width", ""), t.commentInput.find(".js_commentcontent").height(65))
}
})
}
}),
c = function() {
var e = [];
return e.push('<div class="mod-replyComment js_box_reply_input">'), e.push(' <span class="re-arr"></span>'), e.push(' <div class="mod-comment-area">'), e.push(' <div class="middle">'), e.push(' <form action="">'), e.push(' <textarea name="comment" id="replycontent_{{quoteid}}" class="comment-area on" placeholder="文明上网,不传谣言"></textarea>'), e.push(" </form>"), e.push(" </div>"), e.push(' <div class="submit">'), e.push(' <a href="#" class="submit-btn js_btn_submit" data-quoteid="{{quoteid}}">提交</a>'), e.push("{{#if isLogin}}"), e.push(' <a class="user-name" target="_blank" href="http://comment.ifeng.com/viewpersonal.php?uname={{userInfo.userName}}">{{userInfo.userName}}</a><em>/</em><a class="login-out" href="{{logoutUrl}}">退出</a>'), e.push("{{else}}"), e.push(' <a class="login js_login" href="javascript:;">登录</a>'), e.push("{{/if}}"), e.push(" </div>"), e.push(" </div>"), e.push("</div>"), e.join("")
},
u = n.compile(c());
return a
}), define("liveVideo#1.1.1/utils", [], function() {
"use strict";
var e = function(e, t) {
var i = {};
for (var n in e) i[n] = n in t ? t[n] : e[n];
return i
},
t = function(e, t) {
for (var i, n = {}, s = 0, r = e.length; r > s; s++) i = e, i in t && (n = t);
return n
},
i = function() {
return 0
},
n = function() {
var e = "",
t = window.location.href,
i = t.indexOf("http://") + "http://".length,
n = t.indexOf(".ifeng.com");
return -1 !== i && -1 !== n ? e = t.substr(i, n - i) : e
},
s = function(e) {
for (var t = e + "=", i = t.length, n = document.cookie.length, s = 0; n > s;) {
var r = s + i;
if (document.cookie.substring(s, r) === t) return function(e) {
var t = document.cookie.indexOf(";", e);
return -1 === t && (t = document.cookie.length), decodeURIComponent(document.cookie.substring(e, t))
}(r);
if (s = document.cookie.indexOf(" ", s) + 1, 0 === s) break
}
return ""
};
return {
containParams: e,
filterParams: t,
getStarTime: i,
getCookie: s,
getFrom: n
}
}), define("liveVideo#1.1.1", ["F_glue", "F_WidgetBase", "videoCore#1.0.4", "liveVideo#1.1.1/utils", "jquery#1.8.1"], function(e, t, i, n, s) {
"use strict";
var r = (window, document),
o = 0,
a = {
swfUrl: "http://y0.ifengimg.com/swf/ifengFreePlayer_v5.0.71.swf",
containerId: "",
width: 600,
height: 455
},
c = {
allowFullScreen: "true",
wmode: "transparent",
allowScriptAccess: "always"
},
u = {
guid: "",
from: n.getFrom(),
AutoPlay: !0,
ADPlay: !0,
uid: n.getCookie("userid"),
sid: n.getCookie("sid"),
locid: n.getCookie("location"),
startTime: n.getStarTime(),
parent: 0,
adType: 1,
preAdType: 0,
pageurl: window.location.href,
PlayerName: "vFreePlayer"
},
l = function(e) {
for (var t = [{
key: "autoPlay",
value: "AutoPlay"
}], i = 0, n = t.length; n > i; i++) t.key in e && (e[t.value] = e[t.key]);
return e
},
h = t.extend({
version: "1.1.1",
type: "liveVideo",
createModel: function() {
this.swfId = "js_playVideo" + o++
},
mixProperties: function(e) {
e = l(e), h.superclass.mixProperties.call(this, e)
},
resolveTemplate: function() {
this.conf = n.containParams(a, this), this.paramConf = n.containParams(c, this), this.varConf = n.containParams(u, this)
},
renderer: function() {
this.createPlayer()
},
bindDataEvent: function() {},
createPlayer: function() {
var e, t = this.conf,
n = this.paramConf,
s = this.varConf,
o = new i.Player(this.container, {
url: t.swfUrl,
height: t.height,
width: t.width,
id: this.swfId
});
for (e in n) o.addParam(e, n[e]);
for (e in s) o.addVariable(e, s[e]);
o.play(), this.player = o, o.addCallback("swfplay", p), o.addCallback("shareTo", f), o.addCallback("goPage", d), this.flash = r.getElementById(this.swfId)
},
play: function() {
this.flash.videoPlay()
},
pause: function() {
this.flash.videoPause()
},
show: function() {
s(this.flash).show()
},
hide: function() {
s(this.flash).hide()
},
destroy: function() {
s(this.flash).remove()
}
}),
p = function() {
return "the last!"
},
d = function(e) {
window.open(e)
},
f = function(e, t, i, n, r) {
var o = o || {
url: document.location.href,
title: document.title
},
a = encodeURIComponent,
c = i || o.url,
u = a(c),
l = n || o.title,
h = a(l);
switch (e) {
case "ifengkuaibo":
break;
case "ifengteew":
var p = h,
d = u,
f = "凤凰视频",
m = 1,
g = screen,
v = "http://t.ifeng.com/interface.php?_c=share&_a=share&",
b = ["sourceUrl=", u, "&title=", h, "&pic=", a(r || ""), "&source=", a(f || ""), "&type=", a(m || 0)].join(""),
y = function() {
window.open([v, b].join(""), "", ["toolbar=0,status=0,resizable=1,width=640,height=481,left=", (g.width - 640) / 2, ",top=", (g.height - 480) / 2].join("")) || (location.href = [v, b].join(""))
};
/Firefox/.test(navigator.userAgent) ? setTimeout(y, 0) : y();
break;
case "kaixin":
window.open("http://www.kaixin001.com/repaste/share.php?rurl=" + u + "&rtitle=" + h);
break;
case "renren":
window.open("http://share.renren.com/share/buttonshare.do?link=" + u + "&title=" + h);
break;
case "sinateew":
var w = (screen.width - 440) / 2,
p = (screen.height - 430) / 2,
r = r || "";
s.ajax({
url: "http://api.t.sina.com.cn/friendships/create/1806128454.xml?source=168486312",
dataType: "script",
success: function() {}
}), window.open("http://v.t.sina.com.cn/share/share.php?appkey=168486312&url=" + u + "&title=" + h + "&source=ifeng&searchPic=false&sourceUrl=http://v.ifeng.com/&content=utf8&pic=" + r + "&ralateUid=1806128454", "_blank", "toolbar=0,status=0,resizable=1,width=440,height=430,left=" + w + ",top=" + p);
break;
case "qqzone":
window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + u);
break;
case "qqteew":
var x = encodeURI("f8ca1cd768da4529ab190fae9f1bf21d"),
_ = encodeURI(r || ""),
C = "http://v.ifeng.com",
k = "http://v.t.qq.com/share/share.php?title=" + h + "&url=" + u + "&appkey=" + x + "&site=" + C + "&pic=" + _;
window.open(k, "转播到腾讯微博", "width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no");
break;
case "163":
var i = "link=http://www.ifeng.com&source=" + encodeURIComponent("凤凰网") + "&info=" + h + " " + u;
window.open("http://t.163.com/article/user/checkLogin.do?" + i + "&" + (new Date).getTime(), "newwindow", "height=330,width=550,top=" + (screen.height - 280) / 2 + ",left=" + (screen.width - 550) / 2 + ", toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no");
break;
case "feixin":
var S = "http://space.fetion.com.cn/api/share?Source=" + encodeURIComponent("凤凰视频") + "&Title=" + h + "&url=" + u + "&IsEditTitle=false";
window.open(S, "newwindow", "top=" + (screen.height - 280) / 2 + ",left=" + (screen.width - 550) / 2 + ", toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no");
break;
case "sohuteew":
var g = screen,
d = c,
p = l,
v = "http://t.sohu.com/third/post.jsp?",
E = ["&url=", a(d), "&title=", a(p), "&content=utf-8", "&pic=", a(r || "")].join(""),
j = function() {
window.open([v, E].join(""), "mb", ["toolbar=0,status=0,resizable=1,width=660,height=470,left=", (g.width - 660) / 2, ",top=", (g.height - 470) / 2].join("")) || (location.href = [v, E].join(""))
};
/Firefox/.test(navigator.userAgent) ? setTimeout(j, 0) : j();
break;
case "51com":
var S = "http://share.51.com/share/out_share_video.php?from=" + encodeURIComponent("凤凰视频") + "&title=" + h + "&vaddr=" + u + "&IsEditTitle=false&charset=utf-8";
window.open(S, "newwindow", "top=" + (screen.height - 280) / 2 + ",left=" + (screen.width - 550) / 2 + ", toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no");
break;
case "baiduI":
var S = "http://tieba.baidu.com/i/app/open_share_api?link=" + u,
I = function() {
window.open(S) || (location.href = S)
};
return /Firefox/.test(navigator.userAgent) ? setTimeout(I, 0) : I(), !1;
default:
return !1
}
};
return h
});[/mw_shl_code] |