PageSourceSearch

https://flygtning.dk/scripts/IOS-rotate-reload.js

js flygtning.dk collected 2026-10-02 04:38:34 UTC 501 bytes, 16 lines download raw bytes

1(function() 
2{
3  const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
4  if (isIOS) {
5    let lastOrientation = window.orientation;
6    window.addEventListener('orientationchange', function() {
7      // Delay needed for iOS to actually apply the new orientation
8      setTimeout(() => {
9        if (window.orientation !== lastOrientation) {
10          location.reload();
11        }
12        lastOrientation = window.orientation;
13      }, 500);
14    });
15  }
16})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.