第一次提交
This commit is contained in:
commit
8121362a03
4412 files changed
+1091845
No files matched your search
@@ -0,0 +1,250 @@
|
||||
var Event = {};
|
||||
var showJsChatPub = false;
|
||||
window.jsChatPubComplete = false;
|
||||
Event.addEvents = function (target, eventType, handle) {
|
||||
if (document.addEventListener) {
|
||||
Event.addEvents = function (target, eventType, handle) {
|
||||
target.addEventListener(eventType, handle, false);
|
||||
};
|
||||
} else {
|
||||
Event.addEvents = function (target, eventType, handle) {
|
||||
target.attachEvent('on' + eventType, function () {
|
||||
handle.call(target, arguments);
|
||||
});
|
||||
};
|
||||
};
|
||||
Event.addEvents(target, eventType, handle);
|
||||
};
|
||||
|
||||
var isExpandChatTopMain = true;
|
||||
Event.addEvents(document.getElementById("expand-bar-btn"), "click", function () {
|
||||
if (isExpandChatTopMain) {
|
||||
document.getElementById("pkRankTop").style.position = "absolute";
|
||||
document.getElementById("pkRankTop").style.right = "900px";
|
||||
document.getElementById("expand-bar-btn").className = "expand-bar";
|
||||
}
|
||||
else {
|
||||
document.getElementById("pkRankTop").style.position = "relative";
|
||||
document.getElementById("pkRankTop").style.right = "0px";
|
||||
document.getElementById("expand-bar-btn").className = "expand-bar expand-bar-up";
|
||||
}
|
||||
isExpandChatTopMain = !isExpandChatTopMain;
|
||||
resizeRightUI();
|
||||
});
|
||||
|
||||
function resizeRightUI() {
|
||||
if (!window.jsChatPubComplete)
|
||||
return;
|
||||
try{
|
||||
var mainWrap = document.getElementById("mainWrap");
|
||||
var pkChat = document.getElementById("pkChat");
|
||||
var pkChatWrap = document.getElementById("pkChatWrap");
|
||||
var pkRightWrap = document.getElementById("pkRightWrap");
|
||||
var pkMainWrap = document.getElementById("pkMainWrap");
|
||||
var chatTopMainHeight = document.getElementById("pkRankTop").offsetHeight + document.getElementById("pkVideosTop").offsetHeight + 5;
|
||||
if (document.getElementById("pkRankTop").style.position == "absolute")
|
||||
chatTopMainHeight = document.getElementById("pkVideosTop").offsetHeight + 5;
|
||||
pkChatWrap.style.height = pkRightWrap.offsetHeight - chatTopMainHeight + "px";
|
||||
|
||||
pkMainWrap.style.marginRight = "260px";
|
||||
pkRightWrap.style.width = "260px";
|
||||
pkRightWrap.style.marginRight = "0px";
|
||||
|
||||
if (document.body.clientWidth < (850 + 260)) {
|
||||
mainWrap.style.width = 850 + 260 + "px";
|
||||
}
|
||||
else {
|
||||
mainWrap.style.width = document.body.clientWidth + "px";
|
||||
}
|
||||
}
|
||||
catch(e){
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function setSwfSize(swfId, heightValue) {
|
||||
if (!window.jsChatPubComplete)
|
||||
return;
|
||||
document.getElementById(swfId).style.height = heightValue + "px";
|
||||
resizeRightUI();
|
||||
}
|
||||
|
||||
function getIsOpenJsChatPub() {
|
||||
return showJsChatPub;
|
||||
}
|
||||
|
||||
function hideYYShowDiv() {
|
||||
if (!window.jsChatPubComplete)
|
||||
return;
|
||||
document.getElementById("pkYYShowTop").style.display = "none";
|
||||
}
|
||||
function showYYShowDiv() {
|
||||
if (!window.jsChatPubComplete)
|
||||
return;
|
||||
document.getElementById("pkYYShowTop").style.display = "block";
|
||||
}
|
||||
var MainDiamondRank;
|
||||
var ChatVer;
|
||||
var MainVideoLists;
|
||||
var YYShowBrocast;
|
||||
var RightConfig;
|
||||
function changeJsChatPub(ChatVer, MainDiamondRank, MainVideoLists, YYShowBrocast,RightConfig) {
|
||||
showJsChatPub = true;
|
||||
this.ChatVer = ChatVer;
|
||||
this.MainDiamondRank = MainDiamondRank;
|
||||
this.MainVideoLists = MainVideoLists;
|
||||
this.YYShowBrocast = YYShowBrocast;
|
||||
this.RightConfig = RightConfig;
|
||||
if (showJsChatPub) {
|
||||
var pkChat = document.getElementById("pkChat");
|
||||
var pkChatWrap = document.getElementById("pkChatWrap");
|
||||
var pkRightWrap = document.getElementById("pkRightWrap");
|
||||
var pkMainWrap = document.getElementById("pkMainWrap");
|
||||
if (pkChat.attachEvent) {
|
||||
pkChat.attachEvent("onload", function () {
|
||||
window.jsChatPubComplete = true;
|
||||
validateChat();
|
||||
});
|
||||
}
|
||||
else {
|
||||
pkChat.onload = function () {
|
||||
window.jsChatPubComplete = true;
|
||||
validateChat();
|
||||
}
|
||||
}
|
||||
|
||||
pkChat.src = "http://show.vip.yy.com/clientpkchatpub/index.html?t=" + ChatVer;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
function validateChat(){
|
||||
if(this.jsIsRealyLoadedFlag && window.jsChatPubComplete && this.showJsChatPub)
|
||||
{
|
||||
this.onCompletePkChat(this.ChatVer, this.MainDiamondRank, this.MainVideoLists, this.YYShowBrocast,this.RightConfig);
|
||||
document.getElementById(yy.flashId).jsChatComplete();
|
||||
}
|
||||
}
|
||||
function onCompletePkChat(ver, MainDiamondRank, MainVideoLists, YYShowBrocast,Config) {
|
||||
|
||||
if(!jsIsRealyLoadedFlag)
|
||||
return;
|
||||
|
||||
var pkChat = document.getElementById("pkChat");
|
||||
var pkChatWrap = document.getElementById("pkChatWrap");
|
||||
var pkRightWrap = document.getElementById("pkRightWrap");
|
||||
var pkMainWrap = document.getElementById("pkMainWrap");
|
||||
|
||||
|
||||
setTimeout(function () {
|
||||
if(!jsIsRealyLoadedFlag)
|
||||
return;
|
||||
var flashvars = "";
|
||||
var params = { wmode: "direct" };
|
||||
params.allowScriptAccess = "always";
|
||||
var MainDiamondRankHeigt = "165px";
|
||||
if(Config.MainDiamondRankHeigt > 0)
|
||||
MainDiamondRankHeigt = Config.MainDiamondRankHeigt + "px";
|
||||
swfobject.embedSWF(MainDiamondRank + "?t=" + ver, "pkRankTopMain", "100%", MainDiamondRankHeigt, "10.0.0", "", flashvars, params);
|
||||
|
||||
}, 1000);
|
||||
|
||||
/*
|
||||
setTimeout(function () {
|
||||
if(!jsIsRealyLoadedFlag)
|
||||
return;
|
||||
var flashvars = "";
|
||||
var params = { wmode: "direct" };
|
||||
params.allowScriptAccess = "always";
|
||||
swfobject.embedSWF(MainVideoLists + "?t=" + ver, "pkVideosTopMain", "100%", "170px", "10.0.0", "", flashvars, params);
|
||||
|
||||
}, 3000);
|
||||
*/
|
||||
|
||||
setTimeout(function () {
|
||||
if(!jsIsRealyLoadedFlag)
|
||||
return;
|
||||
var flashvars = "";
|
||||
var params = { wmode: "direct" };
|
||||
params.allowScriptAccess = "always";
|
||||
swfobject.embedSWF(YYShowBrocast + "?t=" + ver, "pkYYShowTopMain", "100%", "100%", "10.0.0", "", flashvars, params);
|
||||
}, 5000);
|
||||
|
||||
resizeRightUI();
|
||||
callExternal("IChannelWindow_setRightAreaVisible", false);
|
||||
|
||||
}
|
||||
var jsIsRealyLoadedFlag;
|
||||
function jsIsRealyLoaded(){
|
||||
if(jsIsRealyLoadedFlag)
|
||||
return;
|
||||
jsIsRealyLoadedFlag = true;
|
||||
validateChat();
|
||||
|
||||
}
|
||||
function jsIsError(){
|
||||
changeDefaultChat();
|
||||
}
|
||||
|
||||
function resizeDefaultStyle(){
|
||||
|
||||
if(!window.jsChatPubComplete)
|
||||
{
|
||||
var mainWrap = document.getElementById("mainWrap");
|
||||
var pkRightWrap = document.getElementById("pkRightWrap");
|
||||
mainWrap.style.width = document.body.clientWidth + "px";
|
||||
pkMainWrap.style.marginRight = "0px";
|
||||
}
|
||||
}
|
||||
function openClientChat(){
|
||||
callExternal("IChannelWindow_setRightAreaVisible", true);
|
||||
}
|
||||
function closeClientChat(){
|
||||
callExternal("IChannelWindow_setRightAreaVisible", false);
|
||||
}
|
||||
|
||||
function changeDefaultChat(){
|
||||
|
||||
this.jsIsRealyLoadedFlag = false;
|
||||
window.jsChatPubComplete = false;
|
||||
this.showJsChatPub = false;
|
||||
var pkRightWrap = document.getElementById("pkRightWrap");
|
||||
if(pkRightWrap)
|
||||
{
|
||||
pkRightWrap.style.display = "none";
|
||||
}
|
||||
resizeDefaultStyle();
|
||||
|
||||
callExternal("IChannelWindow_setRightAreaVisible", true);
|
||||
|
||||
}
|
||||
function changeSelfChat(){
|
||||
|
||||
this.jsIsRealyLoadedFlag = true;
|
||||
window.jsChatPubComplete = true;
|
||||
this.showJsChatPub = true;
|
||||
if(pkRightWrap)
|
||||
{
|
||||
pkRightWrap.style.display = "block";
|
||||
}
|
||||
resizeRightUI();
|
||||
callExternal("IChannelWindow_setRightAreaVisible", false);
|
||||
|
||||
}
|
||||
window.onresize = function () {
|
||||
|
||||
if(!window.jsChatPubComplete)
|
||||
{
|
||||
resizeDefaultStyle();
|
||||
}
|
||||
else
|
||||
{
|
||||
resizeRightUI();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function checkJsChatPubComplete(){
|
||||
return window.jsChatPubComplete;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<root>
|
||||
<ver>v4201806252</ver>
|
||||
<palyModeVideo>0</palyModeVideo>
|
||||
<Config_Broadcast>http://show.vip.yy.com/clientpkconfig/{v}/config_broadcast.xml</Config_Broadcast>
|
||||
<Config_Others>http://show.vip.yy.com/clientpkconfig/{v}/config_othersUrl.xml</Config_Others>
|
||||
<Config_Gift>http://show.vip.yy.com/clientpkconfig/{v}/config_gift.xml</Config_Gift>
|
||||
<Config_Enter>http://show.vip.yy.com/clientpkconfig/{v}/config_enter.xml</Config_Enter>
|
||||
<Config_Common>http://show.vip.yy.com/clientpkconfig/{v}/config_common.xml</Config_Common>
|
||||
<Config_Plugin>http://show.vip.yy.com/clientpkconfig/{v}/config_plugins.xml</Config_Plugin>
|
||||
<Config_Skill>http://show.vip.yy.com/clientpkconfig/{v}/config_Skills.xml</Config_Skill>
|
||||
<Config_UpdateNotice>http://show.vip.yy.com/clientpkconfig/{v}/config_updatenotice.xml</Config_UpdateNotice>
|
||||
<Config_Background>http://show.vip.yy.com/clientpkconfig/{v}/config_Background.xml</Config_Background>
|
||||
<Config_SpecialGift>http://show.vip.yy.com/clientpkconfig/{v}/config_specialGift.xml</Config_SpecialGift>
|
||||
<Config_chatPub>http://show.vip.yy.com/clientpkchatpub/config.xml</Config_chatPub>
|
||||
<jsChatPub>1</jsChatPub>
|
||||
<verC>v420180628_1</verC>
|
||||
<testevi>false</testevi>
|
||||
</root>
|
||||
@@ -0,0 +1 @@
|
||||
{"forceupdate":0,"tests":[],"release":"","local":true}
|
||||
@@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
|
||||
<head>
|
||||
<script type="text/javascript" src="jquery-1.12.4.min.js?_=10095" ></script>
|
||||
<script>
|
||||
|
||||
|
||||
Array.prototype.indexOf2 = function (str) {
|
||||
for (var i = 0; i < this.length; i++) {
|
||||
if (str == this[i]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
var res = $.ajax({url:"config_tchannel.txt?t="+new Date().getTime(),async:false});
|
||||
var result = $.parseJSON(res.responseText);
|
||||
//读取本顶级频道长位id
|
||||
var shortid = 0;
|
||||
var yyexternal = window.external;
|
||||
var retObj = "{}";
|
||||
try{
|
||||
retObj = yyexternal.IChannel_GetCurrentChannelInfo();
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
|
||||
}
|
||||
retObj = eval("(" + retObj +")");
|
||||
if(retObj && retObj.ret == 0)
|
||||
shortid = retObj.short_id;
|
||||
|
||||
var data = result;
|
||||
var tests = data.tests;
|
||||
var release = data.release;
|
||||
var local = data.local;
|
||||
var toUrl;
|
||||
for(var i=tests.length-1;i>=0;i--)
|
||||
{
|
||||
var test = tests[i];
|
||||
if(typeof(test) === "function"){
|
||||
continue;
|
||||
}
|
||||
var channels = test.channels;
|
||||
var ver = test.ver;
|
||||
if(channels && channels.indexOf2(shortid.toString()) != -1){
|
||||
toUrl = "publish/" + ver + "/index.html?t=" + new Date().getTime();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!toUrl)
|
||||
{
|
||||
if(!local && release !="")
|
||||
window.location.href = "publish/" + release + "/index.html?t=" + new Date().getTime();
|
||||
else
|
||||
window.location.href = "index.html?t=" + new Date().getTime();
|
||||
}
|
||||
else
|
||||
{
|
||||
window.location.href = toUrl;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<cross-domain-policy>
|
||||
<site-control permitted-cross-domain-policies="all" />
|
||||
<allow-http-request-headers-from domain="yy.com" headers="*" secure="false"/>
|
||||
<allow-http-request-headers-from domain="*.yy.com" headers="*" secure="false"/>
|
||||
<allow-http-request-headers-from domain="*.webyy.yy.com" headers="*" secure="false"/>
|
||||
<allow-http-request-headers-from domain="*.web.yy.com" headers="*" secure="false"/>
|
||||
<allow-access-from domain="yy.com" secure="false" to-ports="*" />
|
||||
<allow-access-from domain="*.yy.com" secure="false" to-ports="*" />
|
||||
<allow-access-from domain="*.webyy.yy.com" secure="false" to-ports="*" />
|
||||
<allow-access-from domain="*.web.yy.com" secure="false" to-ports="*" />
|
||||
<allow-access-from domain="*" secure="false" to-ports="*" />
|
||||
</cross-domain-policy>
|
||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
/* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */
|
||||
|
||||
#ie_historyFrame { width: 0px; height: 0px; display:none }
|
||||
#firefox_anchorDiv { width: 0px; height: 0px; display:none }
|
||||
#safari_formDiv { width: 0px; height: 0px; display:none }
|
||||
#safari_rememberDiv { width: 0px; height: 0px; display:none }
|
||||
@@ -0,0 +1,696 @@
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
BrowserHistoryUtils = {
|
||||
addEvent: function(elm, evType, fn, useCapture) {
|
||||
useCapture = useCapture || false;
|
||||
if (elm.addEventListener) {
|
||||
elm.addEventListener(evType, fn, useCapture);
|
||||
return true;
|
||||
}
|
||||
else if (elm.attachEvent) {
|
||||
var r = elm.attachEvent('on' + evType, fn);
|
||||
return r;
|
||||
}
|
||||
else {
|
||||
elm['on' + evType] = fn;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BrowserHistory = (function() {
|
||||
// type of browser
|
||||
var browser = {
|
||||
ie: false,
|
||||
ie8: false,
|
||||
firefox: false,
|
||||
safari: false,
|
||||
opera: false,
|
||||
version: -1
|
||||
};
|
||||
|
||||
// Default app state URL to use when no fragment ID present
|
||||
var defaultHash = '';
|
||||
|
||||
// Last-known app state URL
|
||||
var currentHref = document.location.href;
|
||||
|
||||
// Initial URL (used only by IE)
|
||||
var initialHref = document.location.href;
|
||||
|
||||
// Initial URL (used only by IE)
|
||||
var initialHash = document.location.hash;
|
||||
|
||||
// History frame source URL prefix (used only by IE)
|
||||
var historyFrameSourcePrefix = 'history/historyFrame.html?';
|
||||
|
||||
// History maintenance (used only by Safari)
|
||||
var currentHistoryLength = -1;
|
||||
|
||||
// Flag to denote the existence of onhashchange
|
||||
var browserHasHashChange = false;
|
||||
|
||||
var historyHash = [];
|
||||
|
||||
var initialState = createState(initialHref, initialHref + '#' + initialHash, initialHash);
|
||||
|
||||
var backStack = [];
|
||||
var forwardStack = [];
|
||||
|
||||
var currentObjectId = null;
|
||||
|
||||
//UserAgent detection
|
||||
var useragent = navigator.userAgent.toLowerCase();
|
||||
|
||||
if (useragent.indexOf("opera") != -1) {
|
||||
browser.opera = true;
|
||||
} else if (useragent.indexOf("msie") != -1) {
|
||||
browser.ie = true;
|
||||
browser.version = parseFloat(useragent.substring(useragent.indexOf('msie') + 4));
|
||||
if (browser.version == 8)
|
||||
{
|
||||
browser.ie = false;
|
||||
browser.ie8 = true;
|
||||
}
|
||||
} else if (useragent.indexOf("safari") != -1) {
|
||||
browser.safari = true;
|
||||
browser.version = parseFloat(useragent.substring(useragent.indexOf('safari') + 7));
|
||||
} else if (useragent.indexOf("gecko") != -1) {
|
||||
browser.firefox = true;
|
||||
}
|
||||
|
||||
if (browser.ie == true && browser.version == 7) {
|
||||
window["_ie_firstload"] = false;
|
||||
}
|
||||
|
||||
function hashChangeHandler()
|
||||
{
|
||||
currentHref = document.location.href;
|
||||
var flexAppUrl = getHash();
|
||||
//ADR: to fix multiple
|
||||
if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
|
||||
var pl = getPlayers();
|
||||
for (var i = 0; i < pl.length; i++) {
|
||||
pl[i].browserURLChange(flexAppUrl);
|
||||
}
|
||||
} else {
|
||||
getPlayer().browserURLChange(flexAppUrl);
|
||||
}
|
||||
}
|
||||
|
||||
// Accessor functions for obtaining specific elements of the page.
|
||||
function getHistoryFrame()
|
||||
{
|
||||
return document.getElementById('ie_historyFrame');
|
||||
}
|
||||
|
||||
function getFormElement()
|
||||
{
|
||||
return document.getElementById('safari_formDiv');
|
||||
}
|
||||
|
||||
function getRememberElement()
|
||||
{
|
||||
return document.getElementById("safari_remember_field");
|
||||
}
|
||||
|
||||
// Get the Flash player object for performing ExternalInterface callbacks.
|
||||
// Updated for changes to SWFObject2.
|
||||
function getPlayer(id) {
|
||||
var i;
|
||||
|
||||
if (id && document.getElementById(id)) {
|
||||
var r = document.getElementById(id);
|
||||
if (typeof r.SetVariable != "undefined") {
|
||||
return r;
|
||||
}
|
||||
else {
|
||||
var o = r.getElementsByTagName("object");
|
||||
var e = r.getElementsByTagName("embed");
|
||||
for (i = 0; i < o.length; i++) {
|
||||
if (typeof o[i].browserURLChange != "undefined")
|
||||
return o[i];
|
||||
}
|
||||
for (i = 0; i < e.length; i++) {
|
||||
if (typeof e[i].browserURLChange != "undefined")
|
||||
return e[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
var o = document.getElementsByTagName("object");
|
||||
var e = document.getElementsByTagName("embed");
|
||||
for (i = 0; i < e.length; i++) {
|
||||
if (typeof e[i].browserURLChange != "undefined")
|
||||
{
|
||||
return e[i];
|
||||
}
|
||||
}
|
||||
for (i = 0; i < o.length; i++) {
|
||||
if (typeof o[i].browserURLChange != "undefined")
|
||||
{
|
||||
return o[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function getPlayers() {
|
||||
var i;
|
||||
var players = [];
|
||||
if (players.length == 0) {
|
||||
var tmp = document.getElementsByTagName('object');
|
||||
for (i = 0; i < tmp.length; i++)
|
||||
{
|
||||
if (typeof tmp[i].browserURLChange != "undefined")
|
||||
players.push(tmp[i]);
|
||||
}
|
||||
}
|
||||
if (players.length == 0 || players[0].object == null) {
|
||||
var tmp = document.getElementsByTagName('embed');
|
||||
for (i = 0; i < tmp.length; i++)
|
||||
{
|
||||
if (typeof tmp[i].browserURLChange != "undefined")
|
||||
players.push(tmp[i]);
|
||||
}
|
||||
}
|
||||
return players;
|
||||
}
|
||||
|
||||
function getIframeHash() {
|
||||
var doc = getHistoryFrame().contentWindow.document;
|
||||
var hash = String(doc.location.search);
|
||||
if (hash.length == 1 && hash.charAt(0) == "?") {
|
||||
hash = "";
|
||||
}
|
||||
else if (hash.length >= 2 && hash.charAt(0) == "?") {
|
||||
hash = hash.substring(1);
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
/* Get the current location hash excluding the '#' symbol. */
|
||||
function getHash() {
|
||||
// It would be nice if we could use document.location.hash here,
|
||||
// but it's faulty sometimes.
|
||||
var idx = document.location.href.indexOf('#');
|
||||
return (idx >= 0) ? document.location.href.substr(idx+1) : '';
|
||||
}
|
||||
|
||||
/* Get the current location hash excluding the '#' symbol. */
|
||||
function setHash(hash) {
|
||||
// It would be nice if we could use document.location.hash here,
|
||||
// but it's faulty sometimes.
|
||||
if (hash == '') hash = '#'
|
||||
document.location.hash = hash;
|
||||
}
|
||||
|
||||
function createState(baseUrl, newUrl, flexAppUrl) {
|
||||
return { 'baseUrl': baseUrl, 'newUrl': newUrl, 'flexAppUrl': flexAppUrl, 'title': null };
|
||||
}
|
||||
|
||||
/* Add a history entry to the browser.
|
||||
* baseUrl: the portion of the location prior to the '#'
|
||||
* newUrl: the entire new URL, including '#' and following fragment
|
||||
* flexAppUrl: the portion of the location following the '#' only
|
||||
*/
|
||||
function addHistoryEntry(baseUrl, newUrl, flexAppUrl) {
|
||||
|
||||
//delete all the history entries
|
||||
forwardStack = [];
|
||||
|
||||
if (browser.ie) {
|
||||
//Check to see if we are being asked to do a navigate for the first
|
||||
//history entry, and if so ignore, because it's coming from the creation
|
||||
//of the history iframe
|
||||
if (flexAppUrl == defaultHash && document.location.href == initialHref && window['_ie_firstload']) {
|
||||
currentHref = initialHref;
|
||||
return;
|
||||
}
|
||||
if ((!flexAppUrl || flexAppUrl == defaultHash) && window['_ie_firstload']) {
|
||||
newUrl = baseUrl + '#' + defaultHash;
|
||||
flexAppUrl = defaultHash;
|
||||
} else {
|
||||
// for IE, tell the history frame to go somewhere without a '#'
|
||||
// in order to get this entry into the browser history.
|
||||
getHistoryFrame().src = historyFrameSourcePrefix + flexAppUrl;
|
||||
}
|
||||
setHash(flexAppUrl);
|
||||
} else {
|
||||
|
||||
//ADR
|
||||
if (backStack.length == 0 && initialState.flexAppUrl == flexAppUrl) {
|
||||
initialState = createState(baseUrl, newUrl, flexAppUrl);
|
||||
} else if(backStack.length > 0 && backStack[backStack.length - 1].flexAppUrl == flexAppUrl) {
|
||||
backStack[backStack.length - 1] = createState(baseUrl, newUrl, flexAppUrl);
|
||||
}
|
||||
|
||||
if (browser.safari && !browserHasHashChange) {
|
||||
// for Safari, submit a form whose action points to the desired URL
|
||||
if (browser.version <= 419.3) {
|
||||
var file = window.location.pathname.toString();
|
||||
file = file.substring(file.lastIndexOf("/")+1);
|
||||
getFormElement().innerHTML = '<form name="historyForm" action="'+file+'#' + flexAppUrl + '" method="GET"></form>';
|
||||
//get the current elements and add them to the form
|
||||
var qs = window.location.search.substring(1);
|
||||
var qs_arr = qs.split("&");
|
||||
for (var i = 0; i < qs_arr.length; i++) {
|
||||
var tmp = qs_arr[i].split("=");
|
||||
var elem = document.createElement("input");
|
||||
elem.type = "hidden";
|
||||
elem.name = tmp[0];
|
||||
elem.value = tmp[1];
|
||||
document.forms.historyForm.appendChild(elem);
|
||||
}
|
||||
document.forms.historyForm.submit();
|
||||
} else {
|
||||
top.location.hash = flexAppUrl;
|
||||
}
|
||||
// We also have to maintain the history by hand for Safari
|
||||
historyHash[history.length] = flexAppUrl;
|
||||
_storeStates();
|
||||
} else {
|
||||
// Otherwise, just tell the browser to go there
|
||||
setHash(flexAppUrl);
|
||||
}
|
||||
}
|
||||
backStack.push(createState(baseUrl, newUrl, flexAppUrl));
|
||||
}
|
||||
|
||||
function _storeStates() {
|
||||
if (browser.safari) {
|
||||
getRememberElement().value = historyHash.join(",");
|
||||
}
|
||||
}
|
||||
|
||||
function handleBackButton() {
|
||||
//The "current" page is always at the top of the history stack.
|
||||
var current = backStack.pop();
|
||||
if (!current) { return; }
|
||||
var last = backStack[backStack.length - 1];
|
||||
if (!last && backStack.length == 0){
|
||||
last = initialState;
|
||||
}
|
||||
forwardStack.push(current);
|
||||
}
|
||||
|
||||
function handleForwardButton() {
|
||||
//summary: private method. Do not call this directly.
|
||||
|
||||
var last = forwardStack.pop();
|
||||
if (!last) { return; }
|
||||
backStack.push(last);
|
||||
}
|
||||
|
||||
function handleArbitraryUrl() {
|
||||
//delete all the history entries
|
||||
forwardStack = [];
|
||||
}
|
||||
|
||||
/* Called periodically to poll to see if we need to detect navigation that has occurred */
|
||||
function checkForUrlChange() {
|
||||
|
||||
if (browser.ie) {
|
||||
if (currentHref != document.location.href && currentHref + '#' != document.location.href) {
|
||||
//This occurs when the user has navigated to a specific URL
|
||||
//within the app, and didn't use browser back/forward
|
||||
//IE seems to have a bug where it stops updating the URL it
|
||||
//shows the end-user at this point, but programatically it
|
||||
//appears to be correct. Do a full app reload to get around
|
||||
//this issue.
|
||||
if (browser.version < 7) {
|
||||
currentHref = document.location.href;
|
||||
document.location.reload();
|
||||
} else {
|
||||
if (getHash() != getIframeHash()) {
|
||||
// this.iframe.src = this.blankURL + hash;
|
||||
var sourceToSet = historyFrameSourcePrefix + getHash();
|
||||
getHistoryFrame().src = sourceToSet;
|
||||
currentHref = document.location.href;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (browser.safari && !browserHasHashChange) {
|
||||
// For Safari, we have to check to see if history.length changed.
|
||||
if (currentHistoryLength >= 0 && history.length != currentHistoryLength) {
|
||||
//alert("did change: " + history.length + ", " + historyHash.length + "|" + historyHash[history.length] + "|>" + historyHash.join("|"));
|
||||
var flexAppUrl = getHash();
|
||||
if (browser.version < 528.16 /* Anything earlier than Safari 4.0 */)
|
||||
{
|
||||
// If it did change and we're running Safari 3.x or earlier,
|
||||
// then we have to look the old state up in our hand-maintained
|
||||
// array since document.location.hash won't have changed,
|
||||
// then call back into BrowserManager.
|
||||
currentHistoryLength = history.length;
|
||||
flexAppUrl = historyHash[currentHistoryLength];
|
||||
}
|
||||
|
||||
//ADR: to fix multiple
|
||||
if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
|
||||
var pl = getPlayers();
|
||||
for (var i = 0; i < pl.length; i++) {
|
||||
pl[i].browserURLChange(flexAppUrl);
|
||||
}
|
||||
} else {
|
||||
getPlayer().browserURLChange(flexAppUrl);
|
||||
}
|
||||
_storeStates();
|
||||
}
|
||||
}
|
||||
if (browser.firefox && !browserHasHashChange) {
|
||||
if (currentHref != document.location.href) {
|
||||
var bsl = backStack.length;
|
||||
|
||||
var urlActions = {
|
||||
back: false,
|
||||
forward: false,
|
||||
set: false
|
||||
}
|
||||
|
||||
if ((window.location.hash == initialHash || window.location.href == initialHref) && (bsl == 1)) {
|
||||
urlActions.back = true;
|
||||
// FIXME: could this ever be a forward button?
|
||||
// we can't clear it because we still need to check for forwards. Ugg.
|
||||
// clearInterval(this.locationTimer);
|
||||
handleBackButton();
|
||||
}
|
||||
|
||||
// first check to see if we could have gone forward. We always halt on
|
||||
// a no-hash item.
|
||||
if (forwardStack.length > 0) {
|
||||
if (forwardStack[forwardStack.length-1].flexAppUrl == getHash()) {
|
||||
urlActions.forward = true;
|
||||
handleForwardButton();
|
||||
}
|
||||
}
|
||||
|
||||
// ok, that didn't work, try someplace back in the history stack
|
||||
if ((bsl >= 2) && (backStack[bsl - 2])) {
|
||||
if (backStack[bsl - 2].flexAppUrl == getHash()) {
|
||||
urlActions.back = true;
|
||||
handleBackButton();
|
||||
}
|
||||
}
|
||||
|
||||
if (!urlActions.back && !urlActions.forward) {
|
||||
var foundInStacks = {
|
||||
back: -1,
|
||||
forward: -1
|
||||
}
|
||||
|
||||
for (var i = 0; i < backStack.length; i++) {
|
||||
if (backStack[i].flexAppUrl == getHash() && i != (bsl - 2)) {
|
||||
arbitraryUrl = true;
|
||||
foundInStacks.back = i;
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < forwardStack.length; i++) {
|
||||
if (forwardStack[i].flexAppUrl == getHash() && i != (bsl - 2)) {
|
||||
arbitraryUrl = true;
|
||||
foundInStacks.forward = i;
|
||||
}
|
||||
}
|
||||
handleArbitraryUrl();
|
||||
}
|
||||
|
||||
// Firefox changed; do a callback into BrowserManager to tell it.
|
||||
currentHref = document.location.href;
|
||||
var flexAppUrl = getHash();
|
||||
//ADR: to fix multiple
|
||||
if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
|
||||
var pl = getPlayers();
|
||||
for (var i = 0; i < pl.length; i++) {
|
||||
pl[i].browserURLChange(flexAppUrl);
|
||||
}
|
||||
} else {
|
||||
getPlayer().browserURLChange(flexAppUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var _initialize = function () {
|
||||
|
||||
browserHasHashChange = ("onhashchange" in document.body);
|
||||
|
||||
if (browser.ie)
|
||||
{
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
for (var i = 0, s; s = scripts[i]; i++) {
|
||||
if (s.src.indexOf("history.js") > -1) {
|
||||
var iframe_location = (new String(s.src)).replace("history.js", "historyFrame.html");
|
||||
}
|
||||
}
|
||||
historyFrameSourcePrefix = iframe_location + "?";
|
||||
var src = historyFrameSourcePrefix;
|
||||
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.id = 'ie_historyFrame';
|
||||
iframe.name = 'ie_historyFrame';
|
||||
iframe.src = 'javascript:false;';
|
||||
|
||||
try {
|
||||
document.body.appendChild(iframe);
|
||||
} catch(e) {
|
||||
setTimeout(function() {
|
||||
document.body.appendChild(iframe);
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (browser.safari && !browserHasHashChange)
|
||||
{
|
||||
var rememberDiv = document.createElement("div");
|
||||
rememberDiv.id = 'safari_rememberDiv';
|
||||
document.body.appendChild(rememberDiv);
|
||||
rememberDiv.innerHTML = '<input type="text" id="safari_remember_field" style="width: 500px;">';
|
||||
|
||||
var formDiv = document.createElement("div");
|
||||
formDiv.id = 'safari_formDiv';
|
||||
document.body.appendChild(formDiv);
|
||||
|
||||
var reloader_content = document.createElement('div');
|
||||
reloader_content.id = 'safarireloader';
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
for (var i = 0, s; s = scripts[i]; i++) {
|
||||
if (s.src.indexOf("history.js") > -1) {
|
||||
html = (new String(s.src)).replace(".js", ".html");
|
||||
}
|
||||
}
|
||||
reloader_content.innerHTML = '<iframe id="safarireloader-iframe" src="about:blank" frameborder="no" scrolling="no"></iframe>';
|
||||
document.body.appendChild(reloader_content);
|
||||
reloader_content.style.position = 'absolute';
|
||||
reloader_content.style.left = reloader_content.style.top = '-9999px';
|
||||
iframe = reloader_content.getElementsByTagName('iframe')[0];
|
||||
|
||||
if (document.getElementById("safari_remember_field").value != "" ) {
|
||||
historyHash = document.getElementById("safari_remember_field").value.split(",");
|
||||
}
|
||||
}
|
||||
|
||||
if (browserHasHashChange)
|
||||
document.body.onhashchange = hashChangeHandler;
|
||||
}
|
||||
|
||||
return {
|
||||
historyHash: historyHash,
|
||||
backStack: function() { return backStack; },
|
||||
forwardStack: function() { return forwardStack },
|
||||
getPlayer: getPlayer,
|
||||
initialize: function(src) {
|
||||
_initialize(src);
|
||||
},
|
||||
setURL: function(url) {
|
||||
document.location.href = url;
|
||||
},
|
||||
getURL: function() {
|
||||
return document.location.href;
|
||||
},
|
||||
getTitle: function() {
|
||||
return document.title;
|
||||
},
|
||||
setTitle: function(title) {
|
||||
try {
|
||||
backStack[backStack.length - 1].title = title;
|
||||
} catch(e) { }
|
||||
//if on safari, set the title to be the empty string.
|
||||
if (browser.safari) {
|
||||
if (title == "") {
|
||||
try {
|
||||
var tmp = window.location.href.toString();
|
||||
title = tmp.substring((tmp.lastIndexOf("/")+1), tmp.lastIndexOf("#"));
|
||||
} catch(e) {
|
||||
title = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
document.title = title;
|
||||
},
|
||||
setDefaultURL: function(def)
|
||||
{
|
||||
defaultHash = def;
|
||||
def = getHash();
|
||||
//trailing ? is important else an extra frame gets added to the history
|
||||
//when navigating back to the first page. Alternatively could check
|
||||
//in history frame navigation to compare # and ?.
|
||||
if (browser.ie)
|
||||
{
|
||||
window['_ie_firstload'] = true;
|
||||
var sourceToSet = historyFrameSourcePrefix + def;
|
||||
var func = function() {
|
||||
getHistoryFrame().src = sourceToSet;
|
||||
window.location.replace("#" + def);
|
||||
setInterval(checkForUrlChange, 50);
|
||||
}
|
||||
try {
|
||||
func();
|
||||
} catch(e) {
|
||||
window.setTimeout(function() { func(); }, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (browser.safari)
|
||||
{
|
||||
currentHistoryLength = history.length;
|
||||
if (historyHash.length == 0) {
|
||||
historyHash[currentHistoryLength] = def;
|
||||
var newloc = "#" + def;
|
||||
window.location.replace(newloc);
|
||||
} else {
|
||||
//alert(historyHash[historyHash.length-1]);
|
||||
}
|
||||
setInterval(checkForUrlChange, 50);
|
||||
}
|
||||
|
||||
|
||||
if (browser.firefox || browser.opera)
|
||||
{
|
||||
var reg = new RegExp("#" + def + "$");
|
||||
if (window.location.toString().match(reg)) {
|
||||
} else {
|
||||
var newloc ="#" + def;
|
||||
window.location.replace(newloc);
|
||||
}
|
||||
setInterval(checkForUrlChange, 50);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/* Set the current browser URL; called from inside BrowserManager to propagate
|
||||
* the application state out to the container.
|
||||
*/
|
||||
setBrowserURL: function(flexAppUrl, objectId) {
|
||||
if (browser.ie && typeof objectId != "undefined") {
|
||||
currentObjectId = objectId;
|
||||
}
|
||||
//fromIframe = fromIframe || false;
|
||||
//fromFlex = fromFlex || false;
|
||||
//alert("setBrowserURL: " + flexAppUrl);
|
||||
//flexAppUrl = (flexAppUrl == "") ? defaultHash : flexAppUrl ;
|
||||
|
||||
var pos = document.location.href.indexOf('#');
|
||||
var baseUrl = pos != -1 ? document.location.href.substr(0, pos) : document.location.href;
|
||||
var newUrl = baseUrl + '#' + flexAppUrl;
|
||||
|
||||
if (document.location.href != newUrl && document.location.href + '#' != newUrl) {
|
||||
currentHref = newUrl;
|
||||
addHistoryEntry(baseUrl, newUrl, flexAppUrl);
|
||||
currentHistoryLength = history.length;
|
||||
}
|
||||
},
|
||||
|
||||
browserURLChange: function(flexAppUrl) {
|
||||
var objectId = null;
|
||||
if (browser.ie && currentObjectId != null) {
|
||||
objectId = currentObjectId;
|
||||
}
|
||||
|
||||
if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) {
|
||||
var pl = getPlayers();
|
||||
for (var i = 0; i < pl.length; i++) {
|
||||
try {
|
||||
pl[i].browserURLChange(flexAppUrl);
|
||||
} catch(e) { }
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
getPlayer(objectId).browserURLChange(flexAppUrl);
|
||||
} catch(e) { }
|
||||
}
|
||||
|
||||
currentObjectId = null;
|
||||
},
|
||||
getUserAgent: function() {
|
||||
return navigator.userAgent;
|
||||
},
|
||||
getPlatform: function() {
|
||||
return navigator.platform;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
})();
|
||||
|
||||
// Initialization
|
||||
|
||||
// Automated unit testing and other diagnostics
|
||||
|
||||
function setURL(url)
|
||||
{
|
||||
document.location.href = url;
|
||||
}
|
||||
|
||||
function backButton()
|
||||
{
|
||||
history.back();
|
||||
}
|
||||
|
||||
function forwardButton()
|
||||
{
|
||||
history.forward();
|
||||
}
|
||||
|
||||
function goForwardOrBackInHistory(step)
|
||||
{
|
||||
history.go(step);
|
||||
}
|
||||
|
||||
//BrowserHistoryUtils.addEvent(window, "load", function() { BrowserHistory.initialize(); });
|
||||
(function(i) {
|
||||
var u =navigator.userAgent;var e=/*@cc_on!@*/false;
|
||||
var st = setTimeout;
|
||||
if(/webkit/i.test(u)){
|
||||
st(function(){
|
||||
var dr=document.readyState;
|
||||
if(dr=="loaded"||dr=="complete"){i()}
|
||||
else{st(arguments.callee,10);}},10);
|
||||
} else if((/mozilla/i.test(u)&&!/(compati)/.test(u)) || (/opera/i.test(u))){
|
||||
document.addEventListener("DOMContentLoaded",i,false);
|
||||
} else if(e){
|
||||
(function(){
|
||||
var t=document.createElement('doc:rdy');
|
||||
try{t.doScroll('left');
|
||||
i();t=null;
|
||||
}catch(e){st(arguments.callee,0);}})();
|
||||
} else{
|
||||
window.onload=i;
|
||||
}
|
||||
})( function() {BrowserHistory.initialize();} );
|
||||
@@ -0,0 +1,45 @@
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
||||
<META HTTP-EQUIV="Expires" CONTENT="-1">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
function processUrl()
|
||||
{
|
||||
|
||||
var pos = url.indexOf("?");
|
||||
url = pos != -1 ? url.substr(pos + 1) : "";
|
||||
if (!parent._ie_firstload) {
|
||||
parent.BrowserHistory.setBrowserURL(url);
|
||||
try {
|
||||
parent.BrowserHistory.browserURLChange(url);
|
||||
} catch(e) { }
|
||||
} else {
|
||||
parent._ie_firstload = false;
|
||||
}
|
||||
}
|
||||
|
||||
var url = document.location.href;
|
||||
processUrl();
|
||||
document.write(encodeURIComponent(url));
|
||||
</script>
|
||||
Hidden frame for Browser History support.
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,148 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
|
||||
<head>
|
||||
<title>YY PK CHANNEL</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<script type="text/javascript" src="yyapiv13.js?_=10096" language="javascript"></script>
|
||||
<script type="text/javascript" src="swfobject.js"></script>
|
||||
<style type="text/css">
|
||||
html, body {height:100%; margin:0;padding:0;}
|
||||
html
|
||||
{
|
||||
overflow: hidden;
|
||||
}
|
||||
body
|
||||
{
|
||||
overflow: hidden;
|
||||
}
|
||||
#pkSwfDiv{
|
||||
float:left;
|
||||
z-index:224;
|
||||
height: 100%;
|
||||
}
|
||||
#pkSwf{
|
||||
position: relative;
|
||||
overflow:hidden;
|
||||
margin:0 auto;
|
||||
}
|
||||
#testT{
|
||||
position:fixed;
|
||||
left:0;
|
||||
top:0;
|
||||
}
|
||||
|
||||
#loadingBg{
|
||||
width:100%;
|
||||
height: 100%;
|
||||
background-color:#170d3f;
|
||||
}
|
||||
|
||||
#loadingBg div{
|
||||
position: relative;
|
||||
height: 100%;
|
||||
background: url(http://vipweb.bs2cdn.yy.com/vipinter_419e9790179448a198a7a34f44a43aab.jpg);
|
||||
/*background: url(http://file.do.yy.com/group3/M03/D2/05/tz0MYFhKXFaAXQHvAAC7E2b7b2A303.jpg);*/
|
||||
/*background: url(http://vipweb.bs2cdn.yy.com/vipinter_b762de36b1cf4d9c92125c5a11027b16.jpg);*/
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.popiframe{
|
||||
position: absolute;
|
||||
z-index:9999;
|
||||
}
|
||||
|
||||
.expand-bar {
|
||||
cursor: pointer;
|
||||
height: 8px;
|
||||
background-color:#f4f4f4;
|
||||
background-image:url(http://vipweb.bs2cdn.yy.com/vipinter_c7af33ef7b7647609db6496670d26669.png);
|
||||
}
|
||||
.expand-bar-up{
|
||||
cursor: pointer;
|
||||
height: 8px;
|
||||
background-color:#f4f4f4;
|
||||
background-image:url(http://vipweb.bs2cdn.yy.com/vipinter_870401d8609546369bd08ef795be1c3e.png);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="mainWrap" style="width:100%;height:100%">
|
||||
<div id="pkRightWrap" style="width: 0px;height:100%; float: right; position: relative;">
|
||||
<div id="pkRankTop" style="position:relative;width:100%;background-color: #F4F4F4;clear: both;display: block">
|
||||
<div id="pkRankTopMain" style="position:relative;width:100%;height:165px;background-color: #F4F4F4;clear: both;"></div>
|
||||
</div>
|
||||
<div class="expand-bar expand-bar-up" id="expand-bar-btn"></div>
|
||||
<div id="pkVideosTop" style="position:relative;width:100%;background-color: #e7e7e7;">
|
||||
<div id="pkVideosTopMain" style="position:relative;width:100%;height:0px;background-color: #e7e7e7;">
|
||||
<img src="" style="position:absolute;left:15px;top:3px"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="pkChatWrap" style="position:relative;width:100%;height:428px">
|
||||
<iframe id="pkChat" src="" width="100%" height="100%" frameborder="0" scrolling="no" style="width:100%;height:100%"></iframe>
|
||||
<div id="pkYYShowTop" style="position:absolute;width:100%;height:75px;right:0px;top:0px;z-index:999;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="pkMainWrap" style="margin-right: 0px;height:100%;position: relative;">
|
||||
|
||||
<div id="loadingBg">
|
||||
<div id="loadingBgImage"></div>
|
||||
</div>
|
||||
|
||||
<div id="pkSwfDiv">
|
||||
<div id="pkSwf">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="logId" style="position:absolute;left:45%;top:62%;z-index:344;color:#ffffff"></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
<script type="text/javascript" src="chat.js?_=10016"></script>
|
||||
|
||||
<script type="text/javascript" src="pk.js?_=10018"></script>
|
||||
|
||||
<script type="text/javascript" src="jquery-1.12.4.min.js?_=10095" ></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$.ajax({ url: "http://vip.yy.com/vip/actpushs?adNo=60029", dataType: "jsonp", async:true, success: function(data){
|
||||
if(data.result && data.code == 0 && data.data && data.data.length > 0)
|
||||
{
|
||||
var obj = data.data[0];
|
||||
var urlObj = $.parseJSON(obj.url);
|
||||
if(urlObj)
|
||||
{
|
||||
var imgSrc = urlObj.img;
|
||||
var webUrl = urlObj.url;
|
||||
var webWidth = urlObj.width || 670;
|
||||
var webHeight = urlObj.height || 450;
|
||||
var pkVideosTopMain = document.getElementById("pkVideosTopMain");
|
||||
pkVideosTopMain.style.height = "72px";
|
||||
$("#pkVideosTopMain img").attr('src',imgSrc);
|
||||
if(webUrl)
|
||||
{
|
||||
$("#pkVideosTopMain img").css("cursor","pointer");
|
||||
$("#pkVideosTopMain img").click(function(){
|
||||
var sendPamras = {url:webUrl,width:webWidth,height:webHeight};
|
||||
sendCmd("openInnerWeb",JSON.stringify(sendPamras));
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}});
|
||||
</script>
|
||||
|
||||
</html>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
|
||||
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|Line truncated
|
||||
}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFraLine truncated
|
||||
marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],jb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]Line truncated
|
||||
padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n});
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
<script type="text/javascript">
|
||||
window.location.href = "core.html?t=" + new Date().getTime();
|
||||
</script>
|
||||
@@ -0,0 +1,340 @@
|
||||
document.domain = "yy.com";
|
||||
|
||||
document.getElementById("loadingBg").style.display = "block";
|
||||
|
||||
function reloadPage() {
|
||||
|
||||
if (this.parent != this) {
|
||||
parent.document.location.reload();
|
||||
}
|
||||
else {
|
||||
document.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
function startCallJsActive() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
function setCookie(c_name, value, expiredays) {
|
||||
var exdate = new Date();
|
||||
exdate.setDate(exdate.getDate() + expiredays);
|
||||
document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());
|
||||
}
|
||||
|
||||
function getCookie(c_name) {
|
||||
if (document.cookie.length > 0) { //先查询cookie是否为空,为空就return ""
|
||||
c_start = document.cookie.indexOf(c_name + "=") //通过String对象的indexOf()来检查这个cookie是否存在,不存在就为 -1
|
||||
if (c_start != -1) {
|
||||
c_start = c_start + c_name.length + 1 //最后这个+1其实就是表示"="号啦,这样就获取到了cookie值的开始位置
|
||||
c_end = document.cookie.indexOf(";", c_start) //其实我刚看见indexOf()第二个参数的时候猛然有点晕,后来想起来表示指定的开始索引的位置...这句是为了得到值的结束位置。因为需要考虑是否是最后一项,所以通过";"号是否存在来判断
|
||||
if (c_end == -1) c_end = document.cookie.length
|
||||
return unescape(document.cookie.substring(c_start, c_end)) //通过substring()得到了值。想了解unescape()得先知道escape()是做什么的,都是很重要的基础,想了解的可以搜索下,在文章结尾处也会进行讲解cookie编码细节
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
function cookieEnable()
|
||||
{
|
||||
var result=false;
|
||||
if(navigator.cookiesEnabled)
|
||||
return true;
|
||||
document.cookie = "testcookie=yes;";
|
||||
var cookieSet = document.cookie;
|
||||
if (cookieSet.indexOf("testcookie=yes") > -1)
|
||||
result=true;
|
||||
document.cookie = "";
|
||||
return result;
|
||||
}
|
||||
|
||||
function selectFuliTab(tabId) {
|
||||
|
||||
document.getElementById(yy.flashId).selectFuliTab(tabId);
|
||||
}
|
||||
|
||||
function showFuliTab(tabId, param) {
|
||||
|
||||
document.getElementById(yy.flashId).showFuliTab(tabId, param);
|
||||
}
|
||||
|
||||
window.onbeforeunload = onbeforeunloadHandler;
|
||||
|
||||
function onbeforeunloadHandler() {
|
||||
try {
|
||||
document.getElementById(yy.flashId).closeWindow();
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function sendCmd(str, param) {
|
||||
document.getElementById(yy.flashId).sendCmd(str, param);
|
||||
}
|
||||
|
||||
function flashChecker() {
|
||||
var hasFlash = 0; //是否安装了flash
|
||||
var flashVersion = 0; //flash版本
|
||||
|
||||
if (document.all) {
|
||||
try {
|
||||
var swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
|
||||
if (swf) {
|
||||
hasFlash = 1;
|
||||
VSwf = swf.GetVariable("$version");
|
||||
flashVersion = parseInt(VSwf.split(" ")[1].split(",")[0]);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
hasFlash = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (navigator.plugins && navigator.plugins.length > 0) {
|
||||
try {
|
||||
var swf = navigator.plugins["Shockwave Flash"];
|
||||
if (swf) {
|
||||
hasFlash = 1;
|
||||
var words = swf.description.split(" ");
|
||||
for (var i = 0; i < words.length; ++i) {
|
||||
if (isNaN(parseInt(words[i]))) continue;
|
||||
flashVersion = parseInt(words[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
hasFlash = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return { f: hasFlash, v: flashVersion };
|
||||
}
|
||||
|
||||
function appLoadComplete() {
|
||||
document.getElementById("loadingBg").style.display = "none";
|
||||
document.getElementById("pkSwfDiv").style.visibility = "visible";
|
||||
document.getElementById("pkSwfDiv").style.width = "100%";
|
||||
document.getElementById("pkSwfDiv").style.height = "100%";
|
||||
}
|
||||
|
||||
function mainLoadComplete() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
var fls = flashChecker();
|
||||
var s = "";
|
||||
if (fls.f && fls.v >= 10) {
|
||||
|
||||
yy.flashId = "pkSwf";
|
||||
var t = new Date().getTime();
|
||||
var flashvars = "";
|
||||
var params = { wmode: "direct" };
|
||||
params.allowScriptAccess = "always";
|
||||
swfobject.embedSWF("core2.swf?_=" + t, "pkSwf", "100%", "100%", "10.0.0", "", flashvars, params);
|
||||
|
||||
}
|
||||
else {
|
||||
document.getElementById("logId").innerHTML = "您没有安装flash,<a style='color:#ff0000' href='http://file.do.yy.com/group3/M02/CA/7B/tz0GSFYA1LqADdCvAQw0XIpMx2k505.zip'>马上安装</a>";
|
||||
|
||||
}
|
||||
|
||||
function loadDanrenPk() {
|
||||
|
||||
document.getElementById("loadingBg").style.display = "block";
|
||||
document.getElementById("loadingBgImage").style.display = "none";
|
||||
document.getElementById("loadingBg").style.backgroundColor = "#9f95e3";
|
||||
document.getElementById("pkSwfDiv").style.display = "none";
|
||||
window.location.href = "http://show.vip.yy.com/clientonepkgame/main9.html";
|
||||
}
|
||||
|
||||
function loadShuangrenPk(){
|
||||
document.getElementById("loadingBg").style.display = "block";
|
||||
document.getElementById("loadingBgImage").style.display = "none";
|
||||
document.getElementById("loadingBg").style.backgroundColor = "#804ccc";
|
||||
document.getElementById("pkSwfDiv").style.display = "none";
|
||||
window.location.href = "http://show.vip.yy.com/clientpkgame/main9.html";
|
||||
}
|
||||
|
||||
(function () {
|
||||
|
||||
var version = 1.1;
|
||||
var win = window;
|
||||
var _hiidoDebug = win._hiidoDebug || false;
|
||||
var logger = {
|
||||
log: function () {
|
||||
if (_hiidoDebug) {
|
||||
win.console && win.console.log(arguments);
|
||||
}
|
||||
}
|
||||
};
|
||||
var hiido = {
|
||||
domain: "ylog.hiido.com",
|
||||
ips: ['14.17.112.232', '14.17.112.233', '14.17.112.234', '14.17.112.235', '14.17.112.236', '14.17.112.237'],
|
||||
getServerUrl: function (host) {
|
||||
host = host || this.domain;
|
||||
var ptl = location.protocol;
|
||||
var path = "c.gif?";
|
||||
return ptl + "//" + host + "/" + path;
|
||||
},
|
||||
randomIp: function () {
|
||||
var Rand = Math.random();
|
||||
var index = Math.round(Rand * (this.ips.length - 1));
|
||||
var ip = this.ips[index];
|
||||
return ip;
|
||||
},
|
||||
getParam: function (opt) {
|
||||
var obj = opt;
|
||||
var param = [];
|
||||
obj.time = parseInt(1 * new Date() / 1000);
|
||||
//obj.uid=this.getCookie("yyuid");
|
||||
//obj.username=this.getCookie("username");
|
||||
for (h in obj) {
|
||||
if (obj.hasOwnProperty(h)) {
|
||||
param.push(encodeURIComponent(h) + "=" + (obj[h] === undefined || obj[h] === null ? "" :
|
||||
encodeURIComponent(obj[h])))
|
||||
}
|
||||
}
|
||||
return param.join("&");
|
||||
},
|
||||
send: function (url, backurl, times) {
|
||||
var reties = times || 0;
|
||||
var img = new Image();
|
||||
var self = this;
|
||||
img.onerror = function () {
|
||||
if (reties <= 1) {
|
||||
self.send(url, backurl, ++reties);
|
||||
}
|
||||
else if (reties == 2) {
|
||||
self.send(backurl, backurl, ++reties);
|
||||
}
|
||||
}
|
||||
img.src = url;
|
||||
},
|
||||
getCookie: function (name) {
|
||||
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
|
||||
if (arr = document.cookie.match(reg)) {
|
||||
return unescape(arr[2]);
|
||||
} else {
|
||||
return null
|
||||
};
|
||||
}
|
||||
};
|
||||
var iface = {
|
||||
stat: function (opt) {
|
||||
if (!opt) {
|
||||
return false;
|
||||
}
|
||||
var svr = hiido.getServerUrl();
|
||||
var param = hiido.getParam(opt);
|
||||
var url = svr + param;
|
||||
var backurl = hiido.getServerUrl(hiido.randomIp()) + param;
|
||||
hiido.send(url, backurl);
|
||||
}
|
||||
};
|
||||
if (typeof (module) === "object") {
|
||||
module.exports = iface;
|
||||
}
|
||||
window.appHiido = iface;
|
||||
})();
|
||||
|
||||
var ACT = "webpkaction";
|
||||
|
||||
function dataReport(sid, subsid, uid, type, remark, ver, subtype) {
|
||||
appHiido.stat({ 'act': ACT, 'uid': uid, 'sid': sid, 'subsid': subsid, 'type': type, 'remark': remark, 'ver': '1', 'subtype': subtype });
|
||||
}
|
||||
function dataReport2(sid, subsid, uid, type, statval1, remark, ver, subtype) {
|
||||
appHiido.stat({ 'act': ACT, 'uid': uid, 'sid': sid, 'subsid': subsid, 'type': type, 'remark': remark, 'ver': '1', 'statval1': statval1, 'subtype': subtype });
|
||||
}
|
||||
function callIframeFunction(iframeId, funName, args) {
|
||||
document.getElementById(iframeId).contentWindow[funName](args);
|
||||
}
|
||||
var mainDataQueue = [];
|
||||
function callMainSwf(obj,fromSwfId){
|
||||
if(!window.jsChatPubComplete)
|
||||
return;
|
||||
mainDataQueue.push({obj:obj,fromSwfId:fromSwfId});
|
||||
if(mainDataQueue.length > 50)
|
||||
mainDataQueue = [];
|
||||
}
|
||||
var otherDataQueue = [];
|
||||
function callOtherSwf(swfId,obj){
|
||||
if(!window.jsChatPubComplete)
|
||||
return;
|
||||
otherDataQueue.push({obj:obj,swfId:swfId});
|
||||
if(otherDataQueue.length > 50)
|
||||
otherDataQueue = [];
|
||||
}
|
||||
|
||||
function getMainDataQueue(){
|
||||
|
||||
var arr = [];
|
||||
while(mainDataQueue.length > 0)
|
||||
{
|
||||
arr.push(mainDataQueue.shift());
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
function getOtherDataQueue(swfId){
|
||||
|
||||
var arr = [];
|
||||
var dells = [];
|
||||
for(var i = 0; i < otherDataQueue.length;i++)
|
||||
{
|
||||
var item = otherDataQueue[i];
|
||||
if(item.swfId == swfId)
|
||||
{
|
||||
arr.push(item);
|
||||
dells.push(item);
|
||||
}
|
||||
}
|
||||
for(var i = 0; i < dells.length;i++)
|
||||
{
|
||||
var dell = dells[i];
|
||||
for(var j = 0; j < otherDataQueue.length; j++) {
|
||||
if(otherDataQueue[j] == dell) {
|
||||
otherDataQueue.splice(j, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return arr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function isIE6(){
|
||||
try{
|
||||
var isIE=!!window.ActiveXObject;
|
||||
var isIE6=isIE&&!window.XMLHttpRequest;
|
||||
var isIE8=isIE&&!!document.documentMode;
|
||||
var isIE7=isIE&&!isIE6&&!isIE8;
|
||||
if (isIE){
|
||||
if (isIE6)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
catch(e){
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function isXP(){
|
||||
var ua = navigator.userAgent;
|
||||
if(ua.indexOf("Windows NT 5")!=-1)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
function getSWF(movieName) {
|
||||
if (navigator.appName.indexOf("Microsoft") != -1) {
|
||||
return window[movieName];
|
||||
} else {
|
||||
return document[movieName];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* SWFObject v2.2 <http://code.google.com/p/swfobject/>
|
||||
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
|
||||
*/
|
||||
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(YLine truncated
|
||||
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user