Comment exécuter le CDE JavaScript sur la fenêtre tourne

window.addEventListener("orientationchange", function(event) {
  console.log("the orientation of the device is now " + event.target.screen.orientation.angle);
});
Delightful Deer