-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimer.html
More file actions
executable file
·62 lines (52 loc) · 2.15 KB
/
timer.html
File metadata and controls
executable file
·62 lines (52 loc) · 2.15 KB
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
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>HTML Timer 1.0.2</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="template/images/favicon/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="template/images/favicon/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png">
<link href="template/images/favicon/favicon-64x64.png" rel="icon" sizes="64x64" type="image/png">
<link href="template/css/main.css" rel="stylesheet">
<link href="template/css/fonts.css" rel="stylesheet">
<link href="template/css/font-awesome.min.css" rel="stylesheet">
<script src="template/js/jquery.min.js"></script>
<script>
$(function() {
let openoffer = $('.open-modal-btn');
openoffer.on('click',function(){
$('.offer-background').fadeIn(200);
$('.offer-wrapper').slideDown(200);
});
let closeoffer = $('.offer-close_button, .offer-background');
closeoffer.on('click',function(){
$('.offer-background').fadeOut(200);
$('.offer-wrapper').slideUp(200);
});
});
</script>
<script>
$(function() {
//таймер
setTimeout(function(){$('.offer-wrapper').slideDown(200);}, 5000);
setTimeout(function(){$('.offer-background').fadeIn(200);}, 5000);
//Интервал
//setInterval(function(){$('.offer-wrapper').slideDown(200);}, 5000);
//setInterval(function(){$('.offer-background').fadeIn(200);}, 5000);
});
</script>
</head>
<body>
<!-- Кнопка открытия таймера -->
<button class="open-modal-btn">Открыть</button>
<!-- Модальное окно таймера -->
<div class="offer-wrapper">
<div class="offer-window">
<div class="offer-close_button"></div>
<h3>Title modal timer</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu</p>
</div>
<div class="offer-background"></div>
</div>
</body>
</html>