-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
467 lines (411 loc) · 17.7 KB
/
index.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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
<!doctype html>
<html lang="ua">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div id="preloader">
<img src="img/preloader.svg">
</div>
<div class="mobile d-block d-md-none">
<div class="container">
<div class="row align-items-center">
<div class="message mx-auto col-12">
<img class="d-inline" src="img/device.png" alt="">
<p>
Приносим свои извинения, на данный момент страница не доступна на мобильных устройствах :(
</p>
</div>
</div>
</div>
</div>
<header class="d-none d-md-block">
<div class="container-fluid">
<div class="container">
<div class="row align-items-center">
<div class="col-xl-5 col-lg-4 col-md-3">
<img src="img/logo.png" alt="" class="logo">
</div>
<div class="col-1"></div>
<div class="col-xl-6 col-lg-7 col-md-8">
<div class="row menu">
<div class="col link active" id="link1" data-num="1">• Главная</div>
<div class="col link" id="link2" data-num="2">• О нас</div>
<div class="col link" id="link3" data-num="3">• Команда</div>
<div class="col link" id="link4" data-num="4">• Клиенты</div>
<div class="col link" id="link5" data-num="5">• Контакты</div>
</div>
</div>
</div>
</div>
</div>
</header>
<main class="d-none d-md-block">
<div class="container-fluid" id="slider">
<div class="first_slide slide">
<img src="img/1.png" class="back-img" alt="" id="image">
<div class="back back1">
<span>Маркетинг – это действие</span>
<p>Мы делаем для клиента все и немного больше,<br/>
чем он ожидает и чем прописано в договоре</p>
<img src="img/button.png" id="next-slide">
</div>
<div class="shadow"></div>
</div>
<div class="second_slide slide">
<img src="img/back.png" class="back-img" alt="">
<div class="back back2">
<p>Построение системы эффективных прямых<br/>
коммуникаций с клиентом и, как результат,<br/>
повышение прибыли — вот главная<br/>
цель любого бизнеса </p>
<img src="img/slide2_logos.png" alt="OSDirectGroup">
</div>
<div class="shadow"></div>
</div>
<div class="third_slide slide">
<img src="img/back.png" class="back-img" alt="">
<div class="back back3">
<span class="title">Наша команда</span>
<div class="head head1">
<img src="img/slide3/kalashnik.png" alt="">
<span class="name">Валентин Калашник</span>
<span class="position">СЕО & Founder OSDGroup</span>
</div>
<div class="head head2">
<img src="img/slide3/metlashevskaya.png" alt="">
<span class="name">Алена Метлашевская</span>
<span class="position">Head of Med</span>
</div>
<div class="head head3">
<img src="img/slide3/sitnik.png" alt="">
<span class="name">Анастасия Ситник</span>
<span class="position">Head of Mix</span>
</div>
<div class="head head4">
<img src="img/slide3/dokienko.png" alt="">
<span class="name">Павел Докиенко</span>
<span class="position">Art Director</span>
</div>
<div class="head head5">
<img src="img/slide3/sosnovskaya.png" alt="">
<span class="name">Дафна Сосновська</span>
<span class="position">Team Head</span>
</div>
<div class="head head6">
<img src="img/slide3/zinchyk.png" alt="">
<span class="name">Анна Зинчук</span>
<span class="position">Head of Direct Call</span>
</div>
<div class="head head7">
<img src="img/slide3/novikov.png" alt="">
<span class="name">Артем Новиков</span>
<span class="position">Head of BTL</span>
</div>
<div class="head head8">
<img src="img/slide3/aznauryan.png" alt="">
<span class="name">Александра Азнаурян</span>
<span class="position">Head of Loyal&CRM</span>
</div>
<div class="head head9">
<img src="img/slide3/zyrov.png" alt="">
<span class="name">Виталий Зуров</span>
<span class="position">Head of Distance Salles</span>
</div>
<div class="head head10">
<img src="img/slide3/kyzema.png" alt="">
<span class="name">Роман Кузема</span>
<span class="position">Head of Digital</span>
</div>
<div class="head head11">
<img src="img/slide3/chistyakova.png" alt="">
<span class="name">Марина Чистякова</span>
<span class="position">Head of Direct Technology</span>
</div>
<div class="head head12">
<img src="img/slide3/byilyk.png" alt="">
<span class="name">Буйлук Инна</span>
<span class="position">Head of PR</span>
</div>
</div>
<div class="shadow"></div>
</div>
<div class="forth_slide slide">
<img src="img/4.png" class="back-img" alt="">
<div class="shadow"></div>
</div>
<div class="fifth_slide slide">
<img src="img/5.png" class="back-img" alt="" id="image5">
<div class="back back5">
<img src="img/big-logo.png">
<p class="address">
ул. Старонаводницкая, 2-20,<br/>
Киев, Украина, 01015
</p>
<p class="phone">
<a href="tel:0444909088">+38 044 490 90 88</a>
<a href="tel:0444909087">+38 044 490 90 87</a>
</p>
<p class="email">
<a href="mailto:[email protected]">[email protected]</a>
</p>
</div>
</div>
</div>
</main>
<footer class="d-none d-md-block">
<div class="container-fluid">
<div class="container">
<div class="row align-items-center">
<div class="col-7 col-md-6">
<span>© 2018 OSDirect. Все права защищены</span>
</div>
<div class="col-5 col-md-6">
<div class="row align-items-center">
<div class="col">
<div class="row align-items-center">
<img class="d-inline-flex" src="img/telephone.png" alt="">
<span class="d-inline-flex">
+38 044 490 90 88<br/>
+38 044 490 90 87
</span>
</div>
</div>
<div class="col">
<div class="row align-items-center">
<img class="d-inline-flex" src="img/email.png" alt="">
<span class="d-inline-flex"><a href="mailto:[email protected]">[email protected]</a></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<script src="js/jquery.min.js"></script>
<script>
$(document).ready(function () {
var first_slide = $('.first_slide'),
second_slide = $('.second_slide'),
third_slide = $('.third_slide'),
forth_slide = $('.forth_slide'),
fifth_slide = $('.fifth_slide'),
halfWindowWidth = $(window).width() / 2,
lock = false,
active = 1;
var imageWidth;
$(window).on('load', function () {
imageWidth = $('#image').width();
$('.shadow').css('width', imageWidth);
$('.back').css('width', imageWidth);
$('#preloader').fadeOut('slow');
});
$(window).on('resize', function () {
imageWidth = $('#image').width();
$('.shadow').css('width', imageWidth);
$('.back').css('width', imageWidth);
});
$('#next-slide').on('click', function () {
$('#link1').removeClass('active');
$('#link2').addClass('active');
Slide(2);
});
$('#slider').bind('mousewheel DOMMouseScroll', function (e) {
if (!lock) {
lock = true;
setTimeout(function () {
lock = false;
}, 2000);
var scroll = 0,
x1 = first_slide.position().left,
x2 = second_slide.position().left,
x3 = third_slide.position().left,
x4 = forth_slide.position().left,
x5 = fifth_slide.position().left;
e.preventDefault();
if (e.type == 'mousewheel') {
scroll = e.originalEvent.wheelDeltaY * -1;
}
else if (e.type == 'DOMMouseScroll') {
scroll = 40 * e.originalEvent.detail;
}
if (scroll > 0) {
if (active != 5) {
var next = active + 1;
$('#link' + active).removeClass('active');
$('#link' + next).addClass('active');
}
if (active == 1) {
active = 2;
x1 -= imageWidth;
x2 -= halfWindowWidth;
x3 -= halfWindowWidth;
x4 -= halfWindowWidth;
x5 -= halfWindowWidth;
} else if (active == 2) {
active = 3;
x1 -= halfWindowWidth;
x2 -= imageWidth;
x3 -= halfWindowWidth;
x4 -= halfWindowWidth;
x5 -= halfWindowWidth;
} else if (active == 3) {
active = 4;
x1 -= halfWindowWidth;
x2 -= halfWindowWidth;
x3 -= imageWidth;
x4 -= halfWindowWidth;
x5 -= halfWindowWidth;
} else if (active == 4) {
active = 5;
x1 -= halfWindowWidth;
x2 -= halfWindowWidth;
x3 -= halfWindowWidth;
x4 -= imageWidth;
x5 -= halfWindowWidth;
} else {
return;
}
} else {
if (active != 1) {
var prev = active - 1;
$('#link' + active).removeClass('active');
$('#link' + prev).addClass('active');
}
if (active == 5) {
active = 4;
x1 += halfWindowWidth;
x2 += halfWindowWidth;
x3 += halfWindowWidth;
x4 += imageWidth;
x5 += halfWindowWidth;
} else if (active == 4) {
active = 3;
x1 += halfWindowWidth;
x2 += halfWindowWidth;
x3 += imageWidth;
x4 += halfWindowWidth;
x5 += halfWindowWidth;
} else if (active == 3) {
active = 2;
x1 += halfWindowWidth;
x2 += imageWidth;
x3 += halfWindowWidth;
x4 += halfWindowWidth;
x5 += halfWindowWidth;
} else if (active == 2) {
active = 1;
x1 += imageWidth;
x2 += halfWindowWidth;
x3 += halfWindowWidth;
x4 += halfWindowWidth;
x5 += halfWindowWidth;
} else {
return;
}
}
first_slide.animate({left: x1}, 2000);
second_slide.animate({left: x2}, 2000);
third_slide.animate({left: x3}, 2000);
forth_slide.animate({left: x4}, 2000);
fifth_slide.animate({left: x5}, 2000);
}
});
$('.link').on('click', function () {
if(!lock){
lock = true;
setTimeout(function () {
lock = false;
}, 2000);
var to = $(this).data('num');
$('#link' + active).removeClass('active');
$('#link' + to).addClass('active');
Slide(to);
}
});
function Slide(to) {
var multiplier, i;
multiplier = active - to;
var x1 = first_slide.position().left,
x2 = second_slide.position().left,
x3 = third_slide.position().left,
x4 = forth_slide.position().left,
x5 = fifth_slide.position().left;
if (multiplier < 0) {
for (i = active; i < to; i++) {
if (i == 1) {
x1 -= imageWidth;
x2 -= halfWindowWidth;
x3 -= halfWindowWidth;
x4 -= halfWindowWidth;
x5 -= halfWindowWidth;
} else if (i == 2) {
x1 -= halfWindowWidth;
x2 -= imageWidth;
x3 -= halfWindowWidth;
x4 -= halfWindowWidth;
x5 -= halfWindowWidth;
} else if (i == 3) {
x1 -= halfWindowWidth;
x2 -= halfWindowWidth;
x3 -= imageWidth;
x4 -= halfWindowWidth;
x5 -= halfWindowWidth;
} else if (i == 4) {
x1 -= halfWindowWidth;
x2 -= halfWindowWidth;
x3 -= halfWindowWidth;
x4 -= imageWidth;
x5 -= halfWindowWidth;
} else {
return;
}
}
} else {
for (i = active; i > to; i--) {
if (i == 5) {
x1 += halfWindowWidth;
x2 += halfWindowWidth;
x3 += halfWindowWidth;
x4 += imageWidth;
x5 += halfWindowWidth;
} else if (i == 4) {
x1 += halfWindowWidth;
x2 += halfWindowWidth;
x3 += imageWidth;
x4 += halfWindowWidth;
x5 += halfWindowWidth;
} else if (i == 3) {
x1 += halfWindowWidth;
x2 += imageWidth;
x3 += halfWindowWidth;
x4 += halfWindowWidth;
x5 += halfWindowWidth;
} else if (i == 2) {
x1 += imageWidth;
x2 += halfWindowWidth;
x3 += halfWindowWidth;
x4 += halfWindowWidth;
x5 += halfWindowWidth;
} else {
return;
}
}
}
first_slide.animate({left: x1}, 2000);
second_slide.animate({left: x2}, 2000);
third_slide.animate({left: x3}, 2000);
forth_slide.animate({left: x4}, 2000);
fifth_slide.animate({left: x5}, 2000);
active = to;
}
});
</script>
</body>
</html>