Skip to content

Commit a47b2cb

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 2b8e9e4 + f2c6159 commit a47b2cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/hello-mui/examples/ad.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ <h1 class="mui-title">advertisement(广告模板)</h1>
5151
//百度广告地址
5252
var p = ["acom","icxm","tcmm","icfm","mcum"];
5353
var t = new Date().getTime();
54-
var url = "http://pos.baidu.com/"+p[parseInt(5*Math.random())]+"?dc=2&dri=0&dis=0&dai=1&ps=0x0&dcb=BAIDU_SSP_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr="+t+"&ari=1&dbv=2&drs=1&cfv=0&cpl=0&chi=4&cce=true&cec=UTF-8&tlm=1437985083&ecd=1&pis=-1x-1&ccd=24&cja=false&cmi=0&col=en-US&cdo=0&tcn=1467173621&qn=d5d5b72998fc778b&tt=1467173620584.25.60.68";
54+
var url = "http://pos.baidu.com/"+p[parseInt(5*Math.random())]+"?dc=2&dri=0&dis=0&dai=1&ps=0x0&dcb=BAIDU_SSP_define&dtm=HTML_POST&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr="+t+"&ari=1&dbv=2&drs=1&cfv=0&cpl=0&chi=4&cce=true&cec=UTF-8&tlm=1437985083&ecd=1&pis=-1x-1&ccd=24&cja=false&cmi=0&col=en-US&cdo=0&tcn=1467173621&qn=d5d5b72998fc778b&tt=1467173620584.25.60.68";
5555
url += "&sz="+width+"x"+adHeight;
5656
url +="&rdid="+cpro_id.substring(1);
5757
url +="&di="+cpro_id;
5858
url +="&ti="+title;
5959
url +="&ltu="+ltu;
6060
url +="&psr="+window.screen.availWidth+"x"+window.screen.availHeight+"&par="+window.screen.availWidth+"x"+window.screen.availHeight;
6161
url +="&pcs="+window.outerWidth+"x"+window.outerHeight+"&pss="+window.outerWidth+"x0";
62-
url +="&rw="+window.outerWidth;
62+
url +="&rw="+Math.max(320, Math.min(window.innerWidth, window.innerHeight));
6363

6464
var adBottom = mui.os.ios?('-'+adHeight+'px'):'0';
6565

@@ -103,4 +103,4 @@ <h1 class="mui-title">advertisement(广告模板)</h1>
103103

104104
</script>
105105

106-
</html>
106+
</html>

0 commit comments

Comments
 (0)