-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
executable file
·138 lines (116 loc) · 3.91 KB
/
Copy pathexample.html
File metadata and controls
executable file
·138 lines (116 loc) · 3.91 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
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
<!DOCTYPE html>
<html lang="ru" dir="ltr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<title>blank-layout</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="copyright" content="">
<style>
#preloader {
background: #FFF;
height: 100%;
left: 0;
opacity: 1;
position: fixed;
top: 0;
transition: opacity .3s;
width: 100%;
z-index: 10000
}
@keyframes spin {
0% {
opacity: 0;
transform: rotate(0deg);
}
50% {
opacity: 1;
transform: rotate(180deg);
}
100% {
opacity: 0;
transform: rotate(360deg);
}
}
#spinner {
animation: spin 2s linear infinite;
border: 8px solid #f3f3f3;
border-top: 8px solid #6592ad;
border-radius: 50%;
bottom: 0;
height: 60px;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
width: 60px;
}
</style>
</head>
<body>
<div id="preloader">
<div id="spinner"></div>
</div>
<header class="_header mb-4">
<div class="container">blank-layout</div>
</header>
<main class="_content">
<div class="container">
<h2>Slider example:</h2>
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">Slide 1</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<div class="swiper-scrollbar"></div>
</div>
<h2 class="mt-4">Modal window example</h2>
<a data-fancybox data-src="#hidden-content" href="javascript:;">
Show modal window
</a>
<h2 class="mt-4">Fontawesome example</h2>
<a href="https://github.com/polar-nik/blank-layout"><i class="fab fa-fw fa-github"></i>blank-layout</a>
</div>
</main>
<footer class="_footer mt-5">
<div class="container">Attached footer</div>
</footer>
<div style="display: none;" id="hidden-content">
<h2>Title</h2>
<p>Simple modal window</p>
</div>
<link rel="stylesheet" href="styles.css">
<script src="vendor/js/jquery.min.js"></script>
<script src="vendor/js/bootstrap.bundle.min.js"></script>
<script src="vendor/js/fancybox.umd.js"></script>
<script src="vendor/js/swiper.min.js"></script>
<!--
<script src="vendor/js/axios.min.js"></script>
-->
<script src="scripts.js"></script>
<script>
const FADE_TIME = 300;
document.addEventListener('DOMContentLoaded', function () {
let preloader = document.getElementById('preloader'),
opacity = 1,
step = opacity / (FADE_TIME / 100),
interval = setInterval(function () {
opacity = (opacity - Math.round(step * 100) / 100).toFixed(2);
preloader.style.opacity = opacity;
if (opacity < 0) clearInterval(interval);
}, FADE_TIME / 100);
setTimeout(() => preloader.parentNode.removeChild(preloader), FADE_TIME + 10);
});
</script>
</body>
</html>