Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Word Lists - English Learning</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/lists.css">
</head>
<body>
<!-- Header -->
<header class="header">
<div class="container">
<div class="logo">
<h1>📚 My Word Lists</h1>
</div>
<nav class="nav">
<a href="index.html">← Back to Practice</a>
<div id="userMenu" class="user-menu"></div>
</nav>
</div>
</header>
<!-- Main Content -->
<section class="lists-page-section">
<div class="container">
<!-- Create New List Section -->
<div class="create-list-section">
<h2>Create New Word List</h2>
<form id="createListForm">
<div class="form-group">
<label for="listName">List Name *</label>
<input type="text" id="listName" required maxlength="100" placeholder="e.g., Medical Terminology">
</div>
<div class="form-group">
<label for="listDescription">Description</label>
<textarea id="listDescription" rows="3" maxlength="500" placeholder="Describe what this list is for..."></textarea>
</div>
<div class="form-group checkbox-group">
<label>
<input type="checkbox" id="isPublic">
<span>Make this list public (others can view and use it)</span>
</label>
</div>
<button type="submit" class="btn btn-primary">Create List</button>
</form>
</div>
<!-- Word Lists Display -->
<div class="lists-section">
<h2>Your Word Lists</h2>
<div id="listsContainer">
<p class="loading">Loading your word lists...</p>
</div>
</div>
<div class="lists-section">
<h2>Public Word Lists</h2>
<div id="publicListsContainer">
<p class="loading">Loading public lists...</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<p>© 2025 English Vocabulary Trainer | Built with PHP, MySQL, JavaScript & AJAX</p>
<p>Practice makes perfect! 💪</p>
</div>
</footer>
<!-- Modal for adding words to a list -->
<div id="addWordModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Add Word to <span id="modalListName"></span></h2>
<form id="addWordForm">
<input type="hidden" id="selectedListId">
<div class="form-group">
<label for="englishWord">English Word *</label>
<input type="text" id="englishWord" required maxlength="100">
</div>
<div class="form-group">
<label for="dutchTranslation">Dutch Translation *</label>
<input type="text" id="dutchTranslation" required maxlength="100">
</div>
<div class="form-group">
<label for="difficulty">Difficulty Level</label>
<select id="difficulty">
<option value="beginner">Beginner</option>
<option value="intermediate">Intermediate</option>
<option value="advanced">Advanced</option>
</select>
</div>
<div class="form-group">
<label for="notes">Notes</label>
<textarea id="notes" rows="3" maxlength="500" placeholder="Optional notes about this word..."></textarea>
</div>
<button type="submit" class="btn btn-primary">Add Word</button>
</form>
</div>
</div>
<!-- Modal for viewing list words -->
<div id="viewListModal" class="modal">
<div class="modal-content large">
<span class="close view-close">×</span>
<h2 id="viewListTitle"></h2>
<p id="viewListDescription"></p>
<div id="viewListWords">
<p class="loading">Loading words...</p>
</div>
</div>
</div>
<script src="js/auth.js"></script>
<script src="js/lists.js"></script>
</body>
</html>