-
Notifications
You must be signed in to change notification settings - Fork 9
/
random.html
66 lines (58 loc) · 1.67 KB
/
random.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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="description" content="random">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
background: #fafafa;
color: #333;
font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'helvetica neue', helvetica, ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
}
h1, h2{
text-align: center;
}
h2{
color: #777;
}
h2:nth-of-type(2){
color: #357edd;
}
</style>
<title>Mais qu'est-ce que c'est donc dtc ?</title>
</head>
<body>
<header>
<h1>dtc innovation</h1>
<h2>le dtc du jour</h2>
<h2>Coucou, on se cause ?</h2>
</header>
<script>
// Choisir aléatoirement une signification de dtc
var randomdtc = [
'Disco Tarte et Cotillons',
'David Thomas et Clémentine',
'Designing Technologies for the Commons',
'Dream Team de Choc',
'Déconstruis Tes Certitudes',
'Demi-Tour Camarade',
'Design Test et Coopération',
'Dentelles Tricot et Corset',
'Diplodocus T-Rex et Crétacé',
'Delta Théta et Chaipa',
'Dinette Tetris et Collage',
'Danse Tantrique des Cerveaux',
'Déployer Transmettre et Contribuer',
'Data Transparence Collective',
'Demain Tous Copains',
'Doudou, Tartines et Chocolat',
'Dessin Technique Coloré',
'Défends Ta Citoyenneté',
]
var titre = Math.floor(randomdtc.length*Math.random())
var affichée = randomdtc[titre];
document.querySelector('h2').textContent=affichée
</script>
</body>
</html>