-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.ejs
30 lines (30 loc) · 1.04 KB
/
test.ejs
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
<!DOCTYPE html>
<html lang="lb">
<head>
<meta charset="utf-8">
<title>test</title>
<link rel="stylesheet" type="text/css" href="../ddk_lod_project/lod.css" media="screen">
<script
src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI="
crossorigin="anonymous"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelector('#toggle').addEventListener('click', function() {
document.querySelector('html').classList.toggle('apple_client-panel')
}, false)
})
</script>
</head>
<body>
<main>
<button id="toggle">Toggle panel mode</button>
<% allArticles.forEach(article => { %>
<div id="<%= article.id %>" lang="lb">
<%- article.desc %>
<p class="lod_article">Definitioun op lod.lu: <a href="https://lod.lu/artikel/<%= article.id %>"><%= article.title %></a></p>
</div>
<% }) %>
</main>
</body>
</html>