<!DOCTYPE HTML><HTML><HeadLang= "en"> <MetaCharSet= "UTF-8"> <title></title></Head><Body><imgsrc= "Pic.jpg"ID= "Imglogo"alt=""><PID= "MOCALCTILTLR"></P><PID= "MOCALCTILTFB"></P><Script> functionDevicemotionhandler (eventData) {// varAcceleration=eventdata.accelerationincludinggravity; varFacingup= -1; if(Acceleration.z> 0) {Facingup= +1; } varTILTLR=Math.Round ((acceleration.x)/ 9.81) * - -); varTILTFB=Math.Round (((ACCELERATION.Y+ 9.81) / 9.81) * - *Facingup); document.getElementById ("MOCALCTILTLR"). InnerHTML=TILTLR; document.getElementById ("MOCALCTILTFB"). InnerHTML=TILTFB; varRotation= "Rotate (" +TILTLR+ "deg) Rotate3d (1,0,0," +(TILTFB)+ "deg)"; document.getElementById ("Imglogo"). Style.webkittransform=rotation; } // if(window. Devicemotionevent) {Window.addeventlistener ('devicemotion', Devicemotionhandler,false); }Else{alert ('Pro, your browser does not support Devicemotionevent Oh ~'); }</Script></Body></HTML>
Mobile phone shake a shake