blob: a9b84aee7a58b9e7c90318df502682557905aeee (
plain)
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
|
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<script src="vue.js"></script>
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>Dicofr</title>
<style>
body {
padding: 5%;
}
web {
margin: 5%;
}
.defs {
margin-top: 40px;
}
.def {
list-style-type: upper-roman;
}
input {
box-shadow: 0 0 3px #000;
}
.good {
box-shadow: 0 0 3px #00FF00;
border-color: #00FF00;
}
.bad {
box-shadow: 0 0 3px #FF0000;
border-color: #F00;
}
.def > li {
margin: 2em 0;
}
ol > li {
margin: .5em 0;
line-height: 1.15;
}
.main_word {
font-weight: bold;
}
</style>
</head>
<body>
<noscript>
<strong>
Désolé mais le client Web nécessite JavaScript
</strong>
</noscript>
<div id="web">
<input v-model="word" v-on:keyup.enter="searchWord"
autocapitalize="none"
:placeholder="randomplaceholder()"
:class="{good: is_word, bad: is_word === false}">
<div v-if="!!definitions" class="defs">
<div v-for="def in definitions">
<span class="main_word">{{def.mot }}</span>,
<span class="cat_gram">{{def['cat-gram']}}</span><span v-if="def.genre" class="genre">
{{ def.genre }}</span>,
<span class="API">/{{ def.API }}/</span>
<br>
<ol class="def">
<template v-for='d in def.def'>
<li>{{ d.def }}
<ol v-if="d.ex">
<li v-for='x in d.ex'>{{ x }}</li>
</ol>
</li>
</template>
</ol>
</div>
</div>
</div>
<script src="msgpack.min.js"></script>
<script src="web.js"></script>
</body>
</html>
|