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:
Paul Schneider 2015-10-25 12:45:43 +01:00
commit 1e8fe62e23
4 changed files with 18 additions and 5 deletions

View file

@ -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;