Skip to content

Commit ebee62b

Browse files
committed
add 404
1 parent 43ebd63 commit ebee62b

5 files changed

Lines changed: 77 additions & 2 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# macOS system files
2+
.DS_Store
3+
.DS_Store?
4+
._*
5+
.Spotlight-V100
6+
.Trashes
7+
ehthumbs.db
8+
Thumbs.db

.nojekyll

Whitespace-only changes.

404.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>Page Not Found · InDesign ExtendScript API</title>
7+
<link rel="stylesheet" href="styles/main.css" />
8+
<style>
9+
body {
10+
overflow: auto;
11+
display: flex;
12+
align-items: center;
13+
justify-content: center;
14+
min-height: 100vh;
15+
background-color: #f5f7fb;
16+
}
17+
.main {
18+
max-width: 560px;
19+
padding: 32px;
20+
background: #ffffff;
21+
border: 1px solid #dfe4ef;
22+
border-radius: 8px;
23+
text-align: center;
24+
box-shadow: 0 12px 30px rgba(45, 75, 120, 0.1);
25+
}
26+
.main h1 {
27+
font-size: 32px;
28+
margin-bottom: 12px;
29+
color: #295193;
30+
}
31+
.main p {
32+
margin: 10px 0 18px;
33+
font-size: 17px;
34+
color: #333333;
35+
}
36+
.main a {
37+
color: #295193;
38+
font-weight: bold;
39+
text-decoration: none;
40+
}
41+
.main a:hover {
42+
text-decoration: underline;
43+
}
44+
</style>
45+
</head>
46+
<body>
47+
<div class="main">
48+
<h1>Page not found</h1>
49+
<p>The page you were looking for does not exist in the Adobe InDesign ExtendScript API documentation set.</p>
50+
<p><a href="index.html">Return to the documentation home page</a></p>
51+
</div>
52+
</body>
53+
</html>

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# AdobeInDesignScriptingAPIReferenceDoc21.0
2-
Adobe InDesign Scripting API Reference Doc 21.0
1+
# Adobe InDesign Scripting API Reference 21.0

scripts/main.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
// Initialize navigation when DOM is ready
4646
function initNavigation() {
47+
ensureViewportMeta();
4748
// Extract navigation data from existing page structure
4849
extractNavigationData();
4950

@@ -65,6 +66,20 @@
6566
// Set current page
6667
setCurrentPage();
6768
}
69+
70+
function ensureViewportMeta() {
71+
var head = document.head || document.getElementsByTagName('head')[0];
72+
if (!head) {
73+
return;
74+
}
75+
var existing = head.querySelector('meta[name="viewport"]');
76+
if (!existing) {
77+
var meta = document.createElement('meta');
78+
meta.name = 'viewport';
79+
meta.content = 'width=device-width, initial-scale=1';
80+
head.appendChild(meta);
81+
}
82+
}
6883

6984
function extractNavigationData() {
7085
var mapEl = document.querySelector('ul.map');

0 commit comments

Comments
 (0)