-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (72 loc) · 2.75 KB
/
index.html
File metadata and controls
80 lines (72 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="manifest" href="manifest.json">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AP-Define | Elegant Dictionary</title>
<link rel="icon" type="image/png" sizes="512x512" href="icons/favicon.png">
<meta name="google-site-verification" content="bmaRiFapt5IP1cv9FOPimjCNBUoR5tjI5QbVCUIbf1o" />
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Inline critical CSS to prevent FOUC */
body {
opacity: 0; /* Hide content initially */
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>AP-Define</h1>
<p class="tagline">Your elegant dictionary companion</p>
<div class="theme-toggle" id="theme-toggle">
<i class="fas fa-moon"></i>
<span class="theme-label">Dark Mode</span>
</div>
</header>
<div class="search-wrapper">
<div class="search-box">
<i class="fas fa-search search-icon"></i>
<input type="text" id="search-input" placeholder="Search for a word...">
<button id="search-btn">Search</button>
</div>
</div>
<div class="result-container">
<div id="loading" class="hidden">
<div class="spinner"></div>
<p>Searching...</p>
</div>
<div id="error" class="hidden">
<i class="fas fa-exclamation-circle error-icon"></i>
<p>Sorry, we couldn't find that word. Please try another search.</p>
</div>
<div id="result" class="hidden">
<div class="word-header">
<div class="word-info">
<h2 id="word"></h2>
<p id="phonetic"></p>
</div>
<div id="audio-container"></div>
</div>
<div id="meanings-container"></div>
<div class="history-section">
<h3>Recent Searches</h3>
<div id="history-container" class="history-list"></div>
</div>
</div>
</div>
<footer>
<p>© 2025 AP-Define | Powered by Dictionary API</p>
</footer>
</div>
<script src="index.js"></script>
<script>
// Reveal content after styles are loaded
window.onload = function() {
document.body.style.opacity = 1;
};
</script>
</body>
</html>