File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 99< style type ="text/css ">
1010 # demo {
1111 background : # ff9900 ;
12- background : url ('../image/l1 .png' ) no-repeat;
12+ background : url ('../image/demo1 .png' ) no-repeat;
1313 background-position : center;
1414 background-size : 100% ;
1515 height : 200px ;
4747 // console.log(Y);
4848 if ( Math . abs ( Y ) > Math . abs ( X ) && Y > 0 ) {
4949 var demoH = $api . offset ( $api . byId ( "demo" ) ) . h ;
50- var _demoH = demoH + 1 ;
50+ var _demoH = demoH + 2 ;
5151 var bgSize = 100 + i ;
5252 $api . css ( $api . byId ( "demo" ) , "height:" + _demoH + "px;background-size:" + bgSize + "%;" ) ;
5353 if ( _demoH > 260 ) {
Original file line number Diff line number Diff line change 162162 delay : delay
163163 } ) ;
164164 }
165+ function openDemo ( ) {
166+ var delay = 0 ;
167+ if ( api . systemType != 'ios' ) {
168+ delay = 300 ;
169+ }
170+ api . openWin ( {
171+ name : 'demo' ,
172+ url : 'demo.html' ,
173+ bounces :false ,
174+ delay : delay
175+ } ) ;
176+ }
165177</ script >
166178</ html >
You can’t perform that action at this time.
0 commit comments