File tree Expand file tree Collapse file tree 6 files changed +14
-10
lines changed Expand file tree Collapse file tree 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>
6464
6565</ div >
6666
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 >
6970< script type ="text/javascript ">
7071
7172jQuery ( 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>
100100
101101</ div >
102102
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 >
104105< script src ="../js/jquery.jparallax.min.js "> </ script >
105106< script type ="text/javascript ">
106107
Original file line number Diff line number Diff line change @@ -419,7 +419,8 @@ <h2>jParallax Demos <a href="remotecontrol.html">next</a></h2>
419419
420420</ div >
421421
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 >
423424< script src ="../js/jquery.jparallax.min.js "> </ script >
424425< script type ="text/javascript ">
425426
Original file line number Diff line number Diff line change @@ -43,8 +43,9 @@ <h2>jParallax Demos <a href="index.html">next</a></h2>
4343 < img class ="parallax-layer " src ="http://webdev.stephband.info/jparallax/images/parallax_target/target_red.png " alt ="" />
4444 </ div >
4545
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 >
4849 < script type ="text/javascript ">
4950
5051 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>
9595
9696</ div >
9797
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 >
9999< script src ="../js/jquery.event.frame.js "> </ script >
100100< script src ="../js/jquery.jparallax.js "> </ script >
101101< script type ="text/javascript ">
Original file line number Diff line number Diff line change 208208 }
209209 // We're working by ratio
210210 else {
211- cssPosition = pos [ x ] * 100 + '%' ;
211+ cssPosition = ( pos [ x ] * 100 ) + '%' ;
212212 cssMargin = pos [ x ] * this . size [ x ] * - 1 ;
213213 }
214214
500500
501501 layers . trigger ( 'DeviceMotionEvent' , {
502502 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
505505 }
506506 } ) ;
507507 } , false ) ;
You can’t perform that action at this time.
0 commit comments