-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
203 lines (190 loc) · 11.1 KB
/
index.html
File metadata and controls
203 lines (190 loc) · 11.1 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Oefeningen Alexander</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@2.32.0/tabler-icons.min.css"
integrity="sha384-hKf8bxWbjGj0vXnqSvOgIvmikptZJXndc1JAIYppfy/F0I9Wr5D/Pz17VKfEWaCj" crossorigin="anonymous">
<link rel="stylesheet" href="./index/highlight/atom-one-light.min.css">
<script src="./index/highlight/highlight.min.js"></script>
<script
src="//cdn.jsdelivr.net/npm/highlightjs-line-numbers.js@2.9.0/dist/highlightjs-line-numbers.min.js"></script>
<script src="./index/highlight/javascript.min.js"></script>
<script src="./index/highlight/css.min.js"></script>
<script src="./index/highlight/xml.min.js"></script>
<link rel="stylesheet" href="./index/styles.css">
<link rel="stylesheet" href="./index/shared_styles.css">
<link href="./tailwind/output.css" rel="stylesheet">
</head>
<body class="bg-gray-50 text-gray-800">
<!-- Mobile -->
<div class="mobile-view w-full min-h-screen p-4">
<div class="bg-white rounded-lg shadow-md p-6 mb-6">
<div class="flex items-center justify-between px-4 py-3">
<h1 class="text-xl font-bold items-center justify-between">
<span class="flex items-center">
<i class="ti ti-book text-grey-500 mr-2"></i><span class="mr-4">Oefeningen Web Dev</span>
</span>
<span class="text-gray-500 italic font-serif font-light">Alexander Vanhee - 1TiA</span>
</h1>
</div>
<div id="mobile-exercises-list" class="space-y-4"></div>
</div>
</div>
<!-- Desktop -->
<div class="desktop-view w-full min-h-screen flex flex-col">
<div class="sticky top-0 bg-white border-b border-gray-200 z-10 shadow-sm">
<div class="flex items-center justify-between px-4 py-3">
<h1 class="text-xl font-bold flex items-center justify-between">
<span class="flex items-center">
<i class="ti ti-book text-grey-500 mr-2"></i><span class="mr-4">Oefeningen Web Dev</span>
</span>
<span class="text-gray-500 italic font-serif font-light">Alexander Vanhee - 1TiA</span>
<span id="creditTitle" class="text-gray-500 italic font-serif font-light ml-4"></span>
</h1>
<div class="flex gap-4">
<div id="settings-button"
class="ml-auto p-2 bg-gray-200 rounded-full hover:bg-gray-300 transition-colors flex items-center justify-center shadow-sm">
<i class="ti ti-adjustments"></i>
</div>
<a href="https://github.com/AlexanderVanhee/WebDevelopment" target="_blank"
class="ml-auto p-2 bg-gray-200 rounded-full hover:bg-gray-300 transition-colors flex items-center justify-center shadow-sm">
<i class="ti ti-brand-github"></i>
</a>
</div>
</div>
<!-- Chapter tabs -->
<div class="relative">
<div class="absolute left-0 top-0 bottom-0 flex items-center pl-1 z-10">
<button id="scroll-left" class="p-1 rounded-full bg-white shadow-md hover:bg-gray-100">
<i class="ti ti-chevron-left text-gray-600"></i>
</button>
</div>
<div id="chapter-tabs" class="flex overflow-x-auto scrollbar-hide py-2 px-8">
<!-- JS insert spot-->
</div>
<div class="absolute right-0 top-0 bottom-0 flex items-center pr-1 z-10">
<button id="scroll-right" class="p-1 rounded-full bg-white shadow-md hover:bg-gray-100">
<i class="ti ti-chevron-right text-gray-600"></i>
</button>
</div>
</div>
</div>
<!-- Main Content-->
<div class="flex flex-1 overflow-hidden">
<!-- Sidebar -->
<aside id="sidebar" class="w-1/4 overflow-y-auto bg-white border-r border-gray-200">
<div id="chapter-content" class="p-4">
<!-- JS insert spot-->
</div>
</aside>
<!-- Main Content -->
<main id="main-content" class="w-3/4 flex flex-col overflow-hidden">
<!-- Empty State -->
<div id="empty-state" class="flex-1 flex items-center justify-center">
<div class="text-center p-8">
<i class="ti ti-file-code text-gray-300 text-[12rem] mb-4"></i>
<h2 class="text-xl font-semibold text-gray-600 mb-2">Nog geen oefening geselecteerd.</h2>
<p class="text-gray-500">Selecteer een oefening uit de zijbalk om te beginnen.</p>
</div>
</div>
<!-- Exercise Content -->
<div id="exercise-content" class="flex-1 flex flex-col hidden overflow-hidden">
<!-- Header -->
<header class="bg-white border-b border-gray-200 p-4">
<h2 id="exercise-title" class="text-xl font-bold">Exercise</h2>
<div class="flex items-center text-sm text-gray-500 mt-1">
<span id="chapter-name"></span>
<i class="ti ti-chevron-right mx-2"></i>
<span id="exercise-name"></span>
</div>
<h3 id="exercise-note-span" class="font-bold text-blue-600 flex items-center space-x-2 hidden">
<i class="ti ti-info-hexagon text-xl "></i>
<span id="exercise-note">This is a note</span>
</h3>
</header>
<!-- tabs -->
<div class="bg-white border-b border-gray-200">
<div class="flex shadow-sm">
<button id="preview-tab"
class="px-4 py-2 border-b-2 border-blue-500 font-medium text-blue-600">
<i class="ti ti-device-desktop mr-1"></i>Preview
</button>
<button id="html-tab" class="px-4 py-2 text-gray-600 hover:text-gray-800">
<i class="ti ti-code mr-1"></i>HTML
</button>
<button id="css-tab" class="px-4 py-2 text-gray-600 hover:text-gray-800">
<i class="ti ti-brand-css3 mr-1"></i>CSS
</button>
<button id="js-tab" class="px-4 py-2 text-gray-600 hover:text-gray-800">
<i class="ti ti-brand-javascript mr-1"></i>JavaScript
</button>
<button id="console-tab" class="px-4 py-2 text-gray-600 hover:text-gray-800">
<i class="ti ti-terminal mr-1"></i>Console
</button>
<button id="validator-tab" class="px-4 py-2 text-gray-600 hover:text-gray-800">
<i class="ti ti-file-search mr-1"></i>Validator
</button>
</div>
</div>
<!-- Tab Content -->
<div class="flex-1 overflow-hidden">
<div id="preview-content" class="h-full">
<iframe id="preview-iframe" class="w-full h-full border-0" allowfullscreen></iframe>
</div>
<div id="html-content" class="h-full hidden overflow-hidden relative">
<button
class="copy-button absolute top-2 right-4 px-2 py-1 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded text-sm flex items-center z-10"
data-target="html-code">
<i class="ti ti-copy mr-1"></i>Copy
</button>
<div class="code-container">
<pre><code id="html-code" class="language-html"></code></pre>
</div>
</div>
<div id="css-content" class="h-full hidden overflow-hidden relative">
<button
class="copy-button absolute top-2 right-4 px-2 py-1 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded text-sm flex items-center z-10"
data-target="css-code">
<i class="ti ti-copy mr-1"></i>Copy
</button>
<div class="code-container">
<pre><code id="css-code" class="language-css"></code></pre>
</div>
</div>
<div id="js-content" class="h-full hidden overflow-hidden relative">
<button
class="copy-button absolute top-2 right-4 px-2 py-1 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded text-sm flex items-center z-10"
data-target="js-code">
<i class="ti ti-copy mr-1"></i>Copy
</button>
<div class="code-container">
<pre><code id="js-code" class="language-javascript"></code></pre>
</div>
</div>
<div id="console-content" class="h-full hidden overflow-hidden relative">
<button id="clear-console"
class="console-clear-button px-2 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300 text-sm">
<i class="ti ti-eraser mr-1"></i>Clear
</button>
<div class="console-container p-2">
<div id="console-logs">
<div class="console-log">
<span class="console-timestamp">[00:00:00]</span>Console ready
</div>
</div>
</div>
</div>
<div id="validator-content" class="h-full hidden overflow-hidden relative code-container">
</div>
</div>
</div>
</main>
</div>
</div>
<!-- Split.js for the resizable panels -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/split.js/1.6.5/split.min.js"></script>
<script type="module" src="./index/script.js"></script>
</body>
</html>