-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvideos.html
More file actions
101 lines (95 loc) · 4.74 KB
/
Copy pathvideos.html
File metadata and controls
101 lines (95 loc) · 4.74 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Videos - Orthodontics Instruction</title>
<link rel="stylesheet" href="modules.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
<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=Darker+Grotesque:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<script src="theme.js"></script>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='75' font-size='75' fill='%235bd6ff'>▶</text></svg>">
</head>
<body>
<header class="topbar">
<div class="brand" onclick="window.location.href='videos.html'" style="cursor: pointer;">
<div class="brand-title">Proffit Instruction<span class="title-dot">.</span></div>
<div class="brand-subtitle"></div>
</div>
<nav class="nav-tabs">
<a href="modules.html" class="nav-tab">Modules</a>
<a href="videos.html" class="nav-tab active">Videos</a>
<button id="themeToggleBtn" class="theme-toggle-btn" aria-label="Toggle theme" title="Toggle light/dark theme">
<i class="fas fa-sun theme-icon"></i>
</button>
</nav>
<div class="actions">
<input id="searchVideosDesktop" type="search" placeholder="Search videos" />
<button id="logoutBtn" class="logout-btn" onclick="logout()">Log out</button>
</div>
</header>
<!-- Mobile Categories Menu -->
<div class="videos-categories-menu" id="videosCategoriesMenu">
<button class="categories-menu-toggle" id="categoriesMenuToggle">
<span class="toggle-text">Video Categories</span>
<span class="toggle-icon"></span>
</button>
<nav class="categories-menu-content">
<div class="category-item active" data-category="all">All Videos</div>
<div class="category-item" data-category="psychosocial-aspects">Psychologic and Psychosocial Aspects</div>
<div class="category-item" data-category="oral-pharyngeal-function">Oral-Pharyngeal Function</div>
<div class="category-item" data-category="biomechanics">Biomechanics</div>
<div class="category-item" data-category="diagnosis-treatment-planning">Diagnosis / Treatment Planning</div>
<div class="category-item" data-category="growth-development">Growth and Development</div>
<div class="category-item" data-category="surgical-ortho">UNC Surg-Ortho Course for Residents</div>
<div class="category-item" data-category="third-molar-management">Third Molar Management</div>
<div class="category-item" data-category="other">Other</div>
</nav>
<div class="categories-menu-search">
<input id="searchVideos" type="search" placeholder="Search videos" />
</div>
</div>
<main class="layout">
<aside class="sidebar">
<div class="sidebar-header">
<div class="sidebar-title">Video Categories</div>
</div>
<nav class="toc" aria-label="Categories">
<div class="toc-item active" data-category="all">All Videos</div>
<div class="toc-item" data-category="psychosocial-aspects">Psychologic and Psychosocial Aspects</div>
<div class="toc-item" data-category="oral-pharyngeal-function">Oral-Pharyngeal Function</div>
<div class="toc-item" data-category="biomechanics">Biomechanics</div>
<div class="toc-item" data-category="diagnosis-treatment-planning">Diagnosis / Treatment Planning</div>
<div class="toc-item" data-category="growth-development">Growth and Development</div>
<div class="toc-item" data-category="surgical-ortho">UNC Surg-Ortho Course for Residents</div>
<div class="toc-item" data-category="third-molar-management">Third Molar Management</div>
<div class="toc-item" data-category="other">Other</div>
</nav>
</aside>
<section class="content">
<div class="page">
<div class="page-title" id="pageTitle">All Videos</div>
<div class="video-grid" id="videoGrid">
<!-- Videos generated dynamically from data/videos.json -->
</div>
</div>
</section>
</main>
<script src="videos.js"></script>
<script>
// Check that user has a token (is logged in)
const token = localStorage.getItem("token");
if (!token) {
// No token = not logged in, redirect
window.location.href = "index.html";
}
// Logout functionality
function logout() {
localStorage.removeItem("token");
window.location.href = "index.html";
}
</script>
</body>
</html>