Skip to content

Commit c95c7b0

Browse files
committed
Switched to max version in demos
1 parent 36e4c10 commit c95c7b0

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

demos/index.html

+3-2
Original file line numberDiff line numberDiff 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

7172
jQuery(document).ready(function(){

demos/remotecontrol.html

+2-1
Original file line numberDiff line numberDiff 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

demos/stalkbuttons.html

+2-1
Original file line numberDiff line numberDiff 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

demos/target.html

+3-2
Original file line numberDiff line numberDiff 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(){

demos/thumbnails.html

+1-1
Original file line numberDiff line numberDiff 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">

js/jquery.jparallax.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
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

@@ -500,8 +500,8 @@
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);

0 commit comments

Comments
 (0)