function isApp() { return navigator.userAgent.toLowerCase().indexOf("bai du yun") > -1 } const isHideHeader = location.search.indexOf('isHideHeader=true') > 0; if (!isApp() && 0 > location.host.indexOf("intl") && 0 > location.search.indexOf("locale=en") && !isHideHeader) { let _ = document.querySelector("body") , $ = _.children[0] , a = document.createElement("header") , t = '百度智能云'; !Boolean(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)) && window.innerWidth > 700 ? (a.className = "header-cloud cloud-header-pc", a.innerHTML = `
`) : (a.className = "header-cloud cloud-header-wap", a.innerHTML = `
${t}
菜单
用户信息
搜索
`), _.insertBefore(a, $) }