!function(e,n){"function"==typeof define&&define.amd?define("widget/logo",[],n):e.logo=n()}("undefined"!=typeof self?self:this,function(){function e(){}function n(){var e=null;try{e=window.baidu&&window.baidu.mobads&&window.baidu.mobads.Sdk||window.parent&&parent.baidu&&parent.baidu.mobads&&parent.baidu.mobads.Sdk}catch(n){}return e}function t(e,n){var t=document.createElement("div");t.innerHTML=n;for(var a=document.createDocumentFragment();t.childNodes.length>0;)a.appendChild(t.childNodes[0]);e.appendChild(a)}function a(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}function i(e){return e.stopPropagation?e.stopPropagation():window.event.cancelBubble=!0,e.preventDefault&&e.preventDefault(),!1}function o(e){var n=null,t=[];for(n in e)e.hasOwnProperty(n)&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function d(e){e=e||{};var n=e.logoUrl||"http://yingxiao.baidu.com/",a=document.getElementById(e.containerId||"container"),i=document.getElementById(e.feedbackParentId||"container"),o=!e.hideClose&&i,d=e.closeDirect,l=e.trackingInfo&&e.trackingInfo.dspid;if(9!==l){var u=e.deviceType>1?" logo-mobile-container":"",f=['
','',c(o),"
"].join("");if(t(a,f),o){var v=r(i.clientWidth,i.clientHeight);t(i,v),s(e.trackingInfo,d)}}}function c(e){return e?['
',''].join(""):""}function r(e,n){var t=n-250>0?30:0,a=320;320>e&&e>159?a=160:160>e&&(a=80);var i=160>a?"feedback-container fd-small":"feedback-container",o=l(e,n);return['
','
','
反馈意见:
',o.join(""),'返回',"
",'
',"
感谢您的反馈!
","

您的反馈已记录,我们将努力改善您的浏览体验。

","
","
"].join("")}function l(e,n){function t(){var e=parseInt(3*Math.random(),10);return[a[e],a[3]]}var a=['视觉干扰','内容不宜','不感兴趣','其他原因'];return 160>e&&106>n?[]:e>=80&&n>=106&&160>e&&168>n?t():e>=160&&n>=76&&320>e&&106>n?t():a}function s(e,t){var o=document.getElementById("logo-close-btn"),d=document.getElementById("feedback-container"),c=document.getElementById("reason-content"),r=document.getElementById("thx-content");a(o,"click",function(a){var o=n();return o&&t?(o.onAdPlayEnd(),void u(e,0)):(0===+c.getAttribute("data-reason-num")&&(c.style.display="none",u(e,0)),d.style.display="block",i(a))}),a(d,"click",function(t){t=t||window.event;var a=t.target||t.srcElement;if(a&&a.getAttribute)return null!=a.getAttribute("data-value")&&(u(e,a.getAttribute("data-value")),c.style.display="none",r.style.display="block",setTimeout(function(){r.style.display="none"},2e3),setTimeout(function(){var e=n();e&&e.onAdPlayEnd()},4e3)),"fb-btn-cancel"===a.className&&(d.style.display="none"),i(t)})}function u(n,t){var a="https://eclick.baidu.com/close_feedback.jpg?";n=n||{},n.reasonid=t,n._=(new Date).getTime(),a+=o(n);var i=document.createElement("img");i.onerror=e,i.src=a}return{init:d}});