-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
executable file
·158 lines (143 loc) · 5.35 KB
/
404.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>404 - Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<meta property="twitter:card" content="summary_large_image" />
<style data-tag="reset-style-sheet">
html { line-height: 1.15;}body { margin: 0;}* { box-sizing: border-box; border-width: 0; border-style: solid;}p,li,ul,pre,div,h1,h2,h3,h4,h5,h6,figure,blockquote,figcaption { margin: 0; padding: 0;}button { background-color: transparent;}button,input,optgroup,select,textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0;}button,select { text-transform: none;}button,[type="button"],[type="reset"],[type="submit"] { -webkit-appearance: button;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner { border-style: none; padding: 0;}button:-moz-focus,[type="button"]:-moz-focus,[type="reset"]:-moz-focus,[type="submit"]:-moz-focus { outline: 1px dotted ButtonText;}a { color: inherit; text-decoration: inherit;}input { padding: 2px 4px;}img { display: block;}html { scroll-behavior: smooth }
</style>
<style data-tag="default-style-sheet">
html {
font-family: Merriweather;
font-size: 16px;
}
body {
font-weight: 700;
font-style:normal;
text-decoration: none;
text-transform: uppercase;
letter-spacing: normal;
line-height: 1.3;
color: var(--dl-color-scheme-darkblue);
background-color: var(--dl-color-scheme-white);
}
</style>
<link
rel="shortcut icon"
href="public/ft_favicon.png"
type="icon/png"
sizes="32x32"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital,wght@0,400;1,400&display=swap"
data-tag="font"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap"
data-tag="font"
/>
<style>
.services-card:hover > div{
background-color: #fff
}
</style>
</head>
<body>
<link rel="stylesheet" href="./style.css" />
<div>
<link href="./404.css" rel="stylesheet" />
<div class="not-found-container">
<h3>OOPS! PAGE NOT FOUND</h3>
<div class="not-found-container1">
<h1 class="not-found-text1">404</h1>
</div>
<div class="not-found-container2">
<h2 class="not-found-text2">
WE ARE SORRY, BUT THE PAGE YOU REQUESTED WAS NOT FOUND
</h2>
</div>
</div>
</div>
<script src="https://unpkg.com/@teleporthq/teleport-custom-scripts"></script>
<script>
window.onload = () => {
const runAllScripts = () => {
initializeAllSliders();
};
const listenForUrlChanges = () => {
let url = location.href;
document.body.addEventListener(
"click",
() => {
requestAnimationFrame(() => {
if (url !== location.href) {
runAllScripts();
url = location.href;
}
});
},
true
);
};
const initializeAllSliders = () => {
const allSliders = document.querySelectorAll('[data-type="slider"]');
allSliders.forEach((slider) => {
initializeSlider(slider);
});
};
const initializeSlider = (slider) => {
const slides = slider.querySelectorAll('[data-type="slide"]');
const middle = Math.ceil(slides.length / 2);
let currentSlide = middle;
const nextSlideBtns = document.querySelectorAll(
'[data-action="nextSlide"]'
);
const previousSlideBtns = document.querySelectorAll(
'[data-action="previousSlide"]'
);
const changeSlide = (slideIndex, action) => {
currentSlide = slideIndex;
switch (action) {
case "next":
slideIndex === slides.length
? (currentSlide = 1)
: currentSlide++;
break;
case "previous":
slideIndex === 1
? (currentSlide = slides.length)
: currentSlide--;
}
const slide = slides[0];
if (!slide) {
console.error("No slides present");
return;
}
const style = window.getComputedStyle(slide);
slideWidth =
parseInt(style.width) +
parseInt(style.marginLeft) +
parseInt(style.marginRight);
const transformValue = -slideWidth * (currentSlide - middle);
slider.style.transform = `translateX(${transformValue}px)`;
};
previousSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "previous")
);
});
nextSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "next")
);
});
};
runAllScripts();
};
</script>
</body>
</html>