');
// var ptloginSrc = location.protocol + '//xui.ptlogin2.qq.com/cgi-bin/xlogin?'
// // ptlogin 传参列表
// // 文档:http://platform.server.com/ptlogin/param.html
// // 文档:http://platform.server.com/ptlogin/no-lower-domain.html#xui_param_table
// var ptLoginParam = $.param({
// appid: 1600000494,
// s_url: location.protocol + "//" + location.host + "/getway/direct" + location.search + location.hash,
// target:"top",
// // 隐藏关闭按钮
// hide_title_bar: 1,
// // 是否隐藏边框
// hide_border: 1,
// style: 33,
// maskOpacity:0,
// hide_border:1,
// protocol:"https:",
// domain:"qq.com"
// })
// var iframeSrc = ptloginSrc + ptLoginParam
// $iframe.attr({
// width: 370,
// height: 300,
// frameborder: 0,
// sandbox: 'allow-scripts allow-top-navigation allow-forms allow-same-origin'
// });
// $('#login').append($iframe);
/*
pt.setParams({
"appid":1600000494,
"s_url": location.protocol + "//" + location.host + "/getway/direct" + location.search + location.hash,
"style":33,
"protocol":"https:",
"domain":"qq.com",
"target":"top",
"maskOpacity":0,
"hide_border":1
})
var appendTo=document.getElementById("login")
pt.setCallback("resize",function(width,height){
console.log(width,height)
appendTo.style.width=width+"px"
appendTo.style.height=300+"px"
});
pt.showPtui(appendTo);*/
var clientID = location.host === 'qlwjz.qq.com' ? '101508660' : '101503543'
$('.login-btn').click(function() {
location.href = 'https://graph.qq.com/oauth2.0/authorize?client_id=' + clientID + '&response_type=code&redirect_uri=' + location.origin + '/redirect'
})
$.alertIE(11)