File tree 6 files changed +14
-10
lines changed
6 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,9 @@ <h2>jParallax Demos <a href="stalkbuttons.html">next</a></h2>
64
64
65
65
</ div >
66
66
67
- < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js "> </ script >
68
- < script src ="../js/jquery.jparallax.min.js "> </ script >
67
+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js "> </ script >
68
+ < script src ="../js/jquery.event.frame.js "> </ script >
69
+ < script src ="../js/jquery.jparallax.js "> </ script >
69
70
< script type ="text/javascript ">
70
71
71
72
jQuery ( document ) . ready ( function ( ) {
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ <h2>jParallax Demos <a href="thumbnails.html">next</a></h2>
100
100
101
101
</ div >
102
102
103
- < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js "> </ script >
103
+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js "> </ script >
104
+ < script src ="../js/jquery.event.frame.js "> </ script >
104
105
< script src ="../js/jquery.jparallax.min.js "> </ script >
105
106
< script type ="text/javascript ">
106
107
Original file line number Diff line number Diff line change @@ -419,7 +419,8 @@ <h2>jParallax Demos <a href="remotecontrol.html">next</a></h2>
419
419
420
420
</ div >
421
421
422
- < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js "> </ script >
422
+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js "> </ script >
423
+ < script src ="../js/jquery.event.frame.js "> </ script >
423
424
< script src ="../js/jquery.jparallax.min.js "> </ script >
424
425
< script type ="text/javascript ">
425
426
Original file line number Diff line number Diff line change @@ -43,8 +43,9 @@ <h2>jParallax Demos <a href="index.html">next</a></h2>
43
43
< img class ="parallax-layer " src ="http://webdev.stephband.info/jparallax/images/parallax_target/target_red.png " alt ="" />
44
44
</ div >
45
45
46
- < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js "> </ script >
47
- < script src ="../js/jquery.jparallax.min.js "> </ script >
46
+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js "> </ script >
47
+ < script src ="../js/jquery.event.frame.js "> </ script >
48
+ < script src ="../js/jquery.jparallax.js "> </ script >
48
49
< script type ="text/javascript ">
49
50
50
51
jQuery ( document ) . ready ( function ( ) {
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ <h2>jParallax Demos <a href="target.html">next</a></h2>
95
95
96
96
</ div >
97
97
98
- < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1 /jquery.js "> </ script >
98
+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2 /jquery.js "> </ script >
99
99
< script src ="../js/jquery.event.frame.js "> </ script >
100
100
< script src ="../js/jquery.jparallax.js "> </ script >
101
101
< script type ="text/javascript ">
Original file line number Diff line number Diff line change 208
208
}
209
209
// We're working by ratio
210
210
else {
211
- cssPosition = pos [ x ] * 100 + '%' ;
211
+ cssPosition = ( pos [ x ] * 100 ) + '%' ;
212
212
cssMargin = pos [ x ] * this . size [ x ] * - 1 ;
213
213
}
214
214
500
500
501
501
layers . trigger ( 'DeviceMotionEvent' , {
502
502
accelerationIncludingGravity : {
503
- x : ( ( orientation ) ? lr : tb + 90 ) / 100 ,
504
- y : ( ( orientation ) ? tb : lr + 90 ) / 100
503
+ x : ( ( orientation ) ? lr : tb + 90 ) / 300 ,
504
+ y : ( ( orientation ) ? tb : lr + 90 ) / 200
505
505
}
506
506
} ) ;
507
507
} , false ) ;
You can’t perform that action at this time.
0 commit comments