-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-brouillon.html
90 lines (86 loc) · 2.92 KB
/
page-brouillon.html
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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset=utf-8 />
<title>
Narval
</title>
<meta name="author" content="Ench" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://narvalblog.github.io/RSSfeed.xml" rel="alternate" type="application/rss+xml" title="News for Narval" />
<link rel="canonical" href="https://narvalblog.github.io" />
<link rel="icon" href="https://narvalblog.github.io/themes/Minival/favicon.ico" />
<link rel="stylesheet" type="text/css" href="https://narvalblog.github.io/themes/Minival/base.css" media="screen" />
<link href="https://fonts.googleapis.com/css?family=Alegreya:400,700|Raleway" rel="stylesheet">
<meta name="description" content="Brouillon test." />
</head>
<body>
<div class="container">
<header>
<h1><a href="https://narvalblog.github.io/index.html">Narval</a></h1>
<p>Générateur de blog statique.</p>
<nav>
<ul>
<a href="https://narvalblog.github.io/index.html"><li>Accueil</li></a>
<a href="#" id="bt1"><li class="menu withSubmenu">Categories</li></a>
<a href="#" id="bt2"><li class="menu withSubmenu">Pages</li></a>
<a type="application/rss+xml" href="https://narvalblog.github.io/RSSfeed.xml"><li>RSS</li></a>
</ul>
<ul class="submenu" id="categories">→
<a style="background:rgb(230, 230, 230);" class="tag" href="https://narvalblog.github.io/divers/index.html">Divers</a>
<a style="background:rgb(233, 206, 206);" class="tag" href="https://narvalblog.github.io/documentation/index.html">Documentation</a>
</ul>
<ul class="submenu" id="pages">→
<a class="tag" href="https://narvalblog.github.io/a-propos.html">À propos</a>
<a class="tag" href="https://narvalblog.github.io/archives.html">Archives</a>
</ul>
</nav>
</header>
<article>
<header><h1>Page brouillon</h1></header>
<div class=content><p>Ceci est un brouillon de page. Il n'apparait pas en lien sur le blog, mais il est consultable quand on connait son adresse URL.</p></div>
</article>
<a class="btNav" href="https://narvalblog.github.io/index.html">← Accueil</a>
<footer>
<p>
<small>
Blog de Ench, généré avec <em>Narval</em>.
<br>
Dernière modification le 01 janvier 2018.
</small>
</p>
</footer>
<script>
const
categories = document.getElementById('categories'),
pages = document.getElementById('pages'),
bt1 = document.getElementById('bt1'),
bt2 = document.getElementById('bt2')
function showCategories() {
categories.style.display = 'block'
pages.style.display = 'none'
}
function showPages() {
pages.style.display = 'block'
categories.style.display = 'none'
}
bt1.addEventListener('click', function(e) {
e.preventDefault()
showCategories()
}, false)
bt2.addEventListener('click', function(e) {
e.preventDefault()
showPages()
}, false)
bt1.addEventListener('touchstart', function(e) {
e.preventDefault()
showCategories()
}, false)
bt2.addEventListener('touchstart', function(e) {
e.preventDefault()
showPages()
}, false)
</script>
</div>
</body>
</html>