-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.src.html
More file actions
33 lines (33 loc) · 1.27 KB
/
index.src.html
File metadata and controls
33 lines (33 loc) · 1.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>ENSAD Nancy Portfolios en ligne</title>
</head>
<body>
<header>
<a class="header-link" href="/"><h1>ENSAD Nancy <em>Portfolios en ligne</em></h1></a>
<a class="header-link header-link-archive" href="/archive.html"><div>Archive</div></a>
</header>
<main>
### CONTENT_HERE ###
</main>
<script>
Array.from(document.querySelectorAll('article')).forEach(function(article) {
var r = function() {
var i = article.querySelector('img');
if (!i) return;
if (i.getAttribute('src')) return;
i.setAttribute('src', i.getAttribute('data-src'));
i.classList.add('loaded');
};
article.addEventListener('mouseenter', r);
article.addEventListener('touchstart', r);
});
</script>
</body>
</html>