@@ -1845,19 +1845,87 @@ <h3>Import Options</h3>
1845
1845
border:1px solid #000; box-shadow:3px 3px 0 #000; ">
1846
1846
</ div >
1847
1847
< script >
1848
- ( function ( ) {
1849
- var ua = navigator . userAgent || "" ;
1850
- var isIPhone = / i P h o n e | i P o d / i. test ( ua ) ;
1851
-
1852
- if ( isIPhone ) {
1853
- document . body . innerHTML = `
1854
- <div id="mobileWarning">
1855
- <h1>Desktop or iPad Only</h1>
1856
- <p>This app isn’t supported on iPhone. Please use an iPad or desktop.</p>
1857
- </div>` ;
1858
- throw new Error ( "iPhone not supported" ) ;
1859
- }
1860
- } ) ( ) ;
1848
+ ( function ( ) {
1849
+ var ua = navigator . userAgent || "" ;
1850
+ var isIPhone = / i P h o n e | i P o d / i. test ( ua ) ;
1851
+
1852
+ if ( ! isIPhone ) return ;
1853
+
1854
+ document . documentElement . innerHTML = `
1855
+ <head>
1856
+ <meta charset="utf-8">
1857
+ <meta name="viewport" content="width=device-width, initial-scale=1">
1858
+ <title>Not Supported on iPhone</title>
1859
+ <style>
1860
+ :root {
1861
+ --bg1: #ffffff;
1862
+ --bg2: #e9eef9;
1863
+ --fg: #000;
1864
+ --border: #000;
1865
+ }
1866
+ html, body { height: 100%; margin: 0; }
1867
+ body {
1868
+ display: flex; align-items: center; justify-content: center;
1869
+ background: radial-gradient(140% 100% at 50% 0%, var(--bg2), var(--bg1) 60%);
1870
+ color: var(--fg);
1871
+ font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Courier New", monospace;
1872
+ }
1873
+ .splash {
1874
+ box-sizing: border-box;
1875
+ max-width: 640px; width: calc(100% - 40px);
1876
+ background: #f3f4f6;
1877
+ border: 2px solid var(--border);
1878
+ box-shadow: 8px 8px 0 #000;
1879
+ border-radius: 10px;
1880
+ padding: 22px;
1881
+ text-align: center;
1882
+ }
1883
+ .badge {
1884
+ display:inline-block;
1885
+ padding: 6px 10px;
1886
+ border:2px solid var(--border);
1887
+ border-radius:8px;
1888
+ background:#fff;
1889
+ box-shadow: 3px 3px 0 #000;
1890
+ font-weight: 700;
1891
+ margin-bottom: 14px;
1892
+ }
1893
+ h1 {
1894
+ margin: 8px 0 6px;
1895
+ font-size: 26px;
1896
+ letter-spacing: 0.3px;
1897
+ }
1898
+ p { margin: 8px 0; }
1899
+ .hint {
1900
+ margin-top: 14px;
1901
+ font-size: 14px;
1902
+ opacity: 0.9;
1903
+ }
1904
+ .btn {
1905
+ margin-top: 16px;
1906
+ display: inline-block;
1907
+ padding: 10px 14px;
1908
+ background: #2563eb;
1909
+ color: #fff;
1910
+ text-decoration: none;
1911
+ border: 2px solid var(--border);
1912
+ border-radius: 8px;
1913
+ box-shadow: 3px 3px 0 #000;
1914
+ font-weight: 700;
1915
+ }
1916
+ </style>
1917
+ </head>
1918
+ <body>
1919
+ <div class="splash" role="alert" aria-live="polite">
1920
+ <div class="badge">BlobSketch</div>
1921
+ <h1>Not supported on iPhone</h1>
1922
+ <p>This experience is designed for larger screens.</p>
1923
+ <p>Please use an <strong>iPad</strong> or <strong>desktop</strong> browser.</p>
1924
+ </div>
1925
+ </body>
1926
+ ` ;
1927
+ throw new Error ( "Blocked on iPhone" ) ;
1928
+ } ) ( ) ;
1861
1929
1862
1930
if ( / A n d r o i d | w e b O S | i P h o n e | i P o d | B l a c k B e r r y | I E M o b i l e | O p e r a M i n i / i. test ( navigator . userAgent ) ) {
1863
1931
document . addEventListener ( "DOMContentLoaded" , function ( ) {
0 commit comments