forked from IlanOu/book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dessin.html
306 lines (247 loc) · 12.3 KB
/
Dessin.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<!DOCTYPE html>
<html lang="fr">
<title>Ilan Outhier - Dessins </title>
<meta charset="UTF-8">
<head>
<meta content='width=device-width, initial-scale=1' name='viewport'/>
<link rel="stylesheet" type="text/css" href="Book_Style.css" />
<link rel="icon" href="imgs/irregular_quadrilateral_48px.png" type="image/png">
<script>
function initComparisons() {
var x, i;
/*find all elements with an "overlay" class:*/
x = document.getElementsByClassName("img-comp-overlay");
for (i = 0; i < x.length; i++) {
/*once for each "overlay" element:
pass the "overlay" element as a parameter when executing the compareImages function:*/
compareImages(x[i]);
}
function compareImages(img) {
var slider, img, clicked = 0, w, h;
/*get the width and height of the img element*/
w = img.offsetWidth;
h = img.offsetHeight;
/*set the width of the img element to 50%:*/
img.style.width = (w / 2) + "px";
/*create slider:*/
slider = document.createElement("DIV");
slider.setAttribute("class", "img-comp-slider");
/*insert slider*/
img.parentElement.insertBefore(slider, img);
/*position the slider in the middle:*/
slider.style.top = (h / 2) - (slider.offsetHeight / 2) + "px";
slider.style.left = (w / 2) - (slider.offsetWidth / 2) + "px";
/*execute a function when the mouse button is pressed:*/
slider.addEventListener("mousedown", slideReady);
/*and another function when the mouse button is released:*/
window.addEventListener("mouseup", slideFinish);
/*or touched (for touch screens:*/
slider.addEventListener("touchstart", slideReady);
/*and released (for touch screens:*/
window.addEventListener("touchend", slideFinish);
function slideReady(e) {
/*prevent any other actions that may occur when moving over the image:*/
e.preventDefault();
/*the slider is now clicked and ready to move:*/
clicked = 1;
/*execute a function when the slider is moved:*/
window.addEventListener("mousemove", slideMove);
window.addEventListener("touchmove", slideMove);
}
function slideFinish() {
/*the slider is no longer clicked:*/
clicked = 0;
}
function slideMove(e) {
var pos;
/*if the slider is no longer clicked, exit this function:*/
if (clicked == 0) return false;
/*get the cursor's x position:*/
pos = getCursorPos(e)
/*prevent the slider from being positioned outside the image:*/
if (pos < 0) pos = 0;
if (pos > w) pos = w;
/*execute a function that will resize the overlay image according to the cursor:*/
slide(pos);
}
function getCursorPos(e) {
var a, x = 0;
e = (e.changedTouches) ? e.changedTouches[0] : e;
/*get the x positions of the image:*/
a = img.getBoundingClientRect();
/*calculate the cursor's x coordinate, relative to the image:*/
x = e.pageX - a.left;
/*consider any page scrolling:*/
x = x - window.pageXOffset;
return x;
}
function slide(x) {
/*resize the image:*/
img.style.width = x + "px";
/*position the slider:*/
slider.style.left = img.offsetWidth - (slider.offsetWidth / 2) + "px";
}
}
}
</script>
</head>
<body>
<div class="FondSimpleDessin">
<form class="presentation-3D">
<p style="color:white; text-align:center; vertical-align: middle;">
Ma galerie de dessins :
</p>
</form>
<div class="row_2">
<div class="column_2">
<div class="content">
<img src="Book_dessins/Mon premier dessin avc la tablette graphique.png" alt="25/12/2019" style="width:400px">
<h3>25/12/2019</h3>
<p>Cette image est mon premier dessin fait sur tablette graphique.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Le Père Noël.png" alt="25/12/2019" style="width:100%">
<h3>25/12/2019</h3>
<p>Ce père Noël est mon deuxième dessin.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/le croquis de Mathieu 4.png" alt="27/12/2019" style="width:100%">
<h3>27/12/2019</h3>
<p>Ce dessin devait être une image pour le fond de chargement d'un jeu codé avec Unity mais je l'ai redéssiné.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/IZUKU MIDORIA 10 01 20.png" alt="07/01/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Control le feu.png" alt="07/02/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/sasuke wallpaper.png" alt="28/04/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<div class="Compareur">
<div class="img-comp-container">
<div class="img-comp-img">
<img src="Book_dessins/Tour avant.png" width="500">
</div>
<div class="img-comp-img img-comp-overlay">
<img src="Book_dessins/Tour apres.png" width="500">
</div>
</div>
</div>
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/FIFOU !.png" alt="07/02/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Mathieu ciel étoilé.png" alt="07/02/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Mirio Togata.png" alt="06/06/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Banière Hugo OnemanLawSon.png" alt="29/06/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Naruto Uzumaki.png" alt="29/08/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/brain use it.png" alt="06/09/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/mage stylax.png" alt="20/10/2020" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Wallpaper hexagon basique.png" alt="10/01/2021" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/futuristic.png" alt="03/02/2021" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Matt logo papa 7.png" alt="11/02/2021" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<div class="column_2">
<div class="content">
<img src="Book_dessins/Adrian.png" alt="11/02/2021" style="width:100%">
<h3>My Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
</div>
<!-- END GRID -->
</div>
<div class="content">
<img src="Book_dessins/" alt="Bear" style="width:100%">
<h3>Some Other Work</h3>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
<p>Lorem ipsum dolor sit amet, tempor prodesset eos no. Temporibus necessitatibus sea ei, at tantas oporteat nam. Lorem ipsum dolor sit amet, tempor prodesset eos no.</p>
</div>
<!-- END MAIN -->
</div>
<script>
/*Execute a function that will execute an image compare function for each element with the img-comp-overlay class:*/
initComparisons();
</script>
</div>
</body>
</html>