cuiqian2004
2024-09-10 a39097f01f0307a911180a43faa4569b38ea1edd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(function(w){
 
document.addEventListener('plusready',function(){
    //console.log("Immersed-UserAgent: "+navigator.userAgent);
},false);
 
var immersed = 0;
var ms=(/Html5Plus\/.+\s\(.*(Immersed\/(\d+\.?\d*).*)\)/gi).exec(navigator.userAgent);
if(ms&&ms.length>=3){
    immersed=parseFloat(ms[2]);
}
w.immersed=immersed;
 
if(!immersed){
    return;
}
var t=document.getElementById('header');
t&&(t.style.paddingTop=immersed+'px',t.style.background='-webkit-linear-gradient(top,rgba(215,75,40,1),rgba(215,75,40,0.8))',t.style.color='#FFF');
t=document.getElementById('content');
t&&(t.style.marginTop=immersed+'px');
t=document.getElementById('dcontent');
t&&(t.style.marginTop=immersed+'px');
t=document.getElementById('map');
t&&(t.style.marginTop=immersed+'px');
 
})(window);