little presentation improvments
* style.css: backgrounds don't really need transitions. * App.master: Removes a duplicated link to contact form * parallax.js: enforce responsivity on small devices supporting orientation capture.
This commit is contained in:
parent
6106c6cdda
commit
1e8fe62e23
4 changed files with 18 additions and 5 deletions
|
|
@ -78,11 +78,15 @@ $(document).ready(function(){
|
|||
$(window).scroll(function() {
|
||||
onPos($bgobj,tiltLR,titleFB);
|
||||
});
|
||||
var nbevo=0;
|
||||
if (window.DeviceOrientationEvent) {
|
||||
window.addEventListener('deviceorientation', function(event) {
|
||||
if (nbevo++>6) {
|
||||
tiltLR = event.gamma;
|
||||
titleFB = event.beta;
|
||||
onPos($bgobj,tiltLR,titleFB);
|
||||
nbevo=0;
|
||||
}
|
||||
},false);
|
||||
$(window).mousemove(function(e) {
|
||||
tiltLR = e.pageX;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue