forked from Netcentric/web-performance-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
215 lines (196 loc) · 9.59 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="http://slowfil.es/file?type=css&delay=1000&sync-in-head" />
<link rel="stylesheet" href="styles/index.css" />
<link rel="preload" href="background.jpg" as="image">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<link rel="preload" href="fonts/alegreya-v29-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="fonts/alegreya-v29-latin-900.woff2" as="font" type="font/woff2" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap" rel="stylesheet">
<script src="https://slowfil.es/file?type=js&delay=2000"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vuex"></script>
<script>
// Adobe Target pre-hiding code snippet
;(function(win, doc, style, timeout) {
var STYLE_ID = 'at-body-style';
function getParent() {
return doc.getElementsByTagName('head')[0];
}
function addStyle(parent, id, def) {
if (!parent) {
return;
}
var style = doc.createElement('style');
style.id = id;
style.innerHTML = def;
parent.appendChild(style);
}
function removeStyle(parent, id) {
if (!parent) {
return;
}
var style = doc.getElementById(id);
if (!style) {
return;
}
parent.removeChild(style);
}
addStyle(getParent(), STYLE_ID, style);
setTimeout(function() {
removeStyle(getParent(), STYLE_ID);
}, timeout);
}(window, document, "body {opacity: 0 !important}", 3000));
</script>
<script>
// advertisment mock
const initAd = () => {
const adSpace = document.querySelector('.main__advertising');
const gif = '<div style="width:400px;max-width:100%;"><div style="height:0;padding-bottom:52.4%;position:relative;"><iframe width="500" height="262" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameBorder="0" src="https://imgflip.com/embed/6wy03z"></iframe></div></div>';
setTimeout(() => adSpace.innerHTML = gif, 3000);
};
// Slow JS
function wait(ms) {
var start = Date.now(),
now = start;
while (now - start < ms) {
now = Date.now();
}
};
// async CSS
function loadMobileCSS() {
$('head').append(`<link rel="stylesheet" type="text/css" href="styles/mobile.css">`);
};
wait(2000);
window.addEventListener('load', () => {
initAd();
loadMobileCSS();
});
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"/>
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<script src='http://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.6.0.js'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/lazyload.min.js"></script>
<title>The Rum Diary</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0" />
</head>
<body>
<div id="cookie-vue">
<cookie-layer class="cookieLayer__base" v-show="displayCookieBox" v-on:accept="acceptCookies()"/>
</div>
<header class="header__base">
<div class="header__content">
<a class="header__logo" href="#">
<img class="header__image" src="./logo.png">
</a>
<div class="header__navigation">
<ul class="navigation__list">
<li class="navigation__item">
<a class="navigation__link" href="#">
Articles
</a>
</li>
<li class="navigation__item">
<a class="navigation__link" href="#">
About
</a>
</li>
<li class="navigation__item">
<a class="navigation__link" href="#">
Contact
</a>
</li>
</ul>
</div>
</div>
</header>
<main class="main__base">
<div class="main__advertising"></div>
<div class="main__content">
<div class="main__news main__section">
<marquee width="100%" direction="left" style="line-height: 30px;background-color: darkred;color: red;"></marquee>
</div>
<div class="main__hero main__section">
<div class="hero__carousel div1 swiper">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<div class="swiper-slide lazy"><img src="https://images.unsplash.com/flagged/photo-1579632993381-847f6a71a3cd?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&fm=png&fit=crop&w=1170&q=100"></div>
<div class="swiper-slide"></div>
<div class="swiper-slide"></div>
</div>
<div class="swiper-text">Local restaurants finally optimising time to first bite</div>
</div>
<script src="script/carousel.js"></script>
<div class="hero__teaser div2">
<img src="https://media2.giphy.com/media/3oEjI6SIIHBdRxXI40/200.gif" data-src="https://images.unsplash.com/photo-1432405972618-c60b0225b8f9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&fm=png&fit=crop&h=400&q=100" class="hero__img lazy">
<div class="hero__teaserText">Top 10 waterfalls to analyse this week</div>
</div>
<div class="hero__teaser div3">
<img src="https://media2.giphy.com/media/3oEjI6SIIHBdRxXI40/200.gif" data-src="https://images.unsplash.com/photo-1646271912756-44f11896cfea?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&fm=png&fit=crop&w=1180&q=80" class="hero__img lazy">
<div class="hero__teaserText">Bouncing rates increased signifincantly last week</div>
</div>
</div>
<div class="main__teasers main__section">
<article class="teaser__base">
<img class="teaser__image" src="https://images.unsplash.com/photo-1631857455684-a54a2f03665f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&fm=png&fit=crop&w=1170&q=100" class="card__img"><hr>
<h1 class="teaser__title">First Party</h1>
<div class="teaser__text"></div>
<button class="teaser__link">Read more</button>
</article>
<article class="teaser__base">
<img class="teaser__image" src="https://images.unsplash.com/photo-1519671482749-fd09be7ccebf?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&fm=pngfit=crop&w=1170&q=100" class="card__img"><hr>
<h1 class="teaser__title">Second Party</h1>
<div class="teaser__text"></div>
<button class="teaser__link">Read more</button>
</article>
<article class="teaser__base">
<img class="teaser__image" src="https://images.unsplash.com/photo-1496024840928-4c417adf211d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&fm=png&fit=crop&w=1170&q=100" class="card__img"><hr>
<h1 class="teaser__title">Third Party</h1>
<div class="teaser__text"></div>
<button class="teaser__link">Read more</button>
</article>
</div>
<div class="main__weather main__section">
<a class="weatherwidget-io" href="https://forecast7.com/en/48d1411d58/munich/" data-label_1="MUNICH" data-label_2="WEATHER" data-theme="original" >MUNICH WEATHER</a>
<script>
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://blackhole.webpagetest.org/';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');
</script>
</div>
<div class="main__video main__section">
<iframe src="https://player.vimeo.com/video/44265326?h=1e8b36c00b&autoplay=1&loop=1&byline=0&muted=1&controls=0 " width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>
<div class="form__base">
<div class="form__intro">Something about lighthouses, describing point of the video we are putting here to prove how awesome they really are, no.</div>
<div class="from__control">
<label class="form__label">Name</label>
<input type="text" />
</div>
<div class="from__control">
<label class="form__label">Please share with us why do you think lighthouses are awesome: </label>
<textarea></textarea>
</div>
<a class="form__button" id="button" onclick="alert('Submitting using way too much JavaScript...')">Submit</a>
</div>
</div>
</main>
<div class="disclaimer__base">
<p class="disclaimer__text">
This site is made for the purpose of web performance and accessibility testing challeng and it is full of bad practices on purpose.
</p>
</div>
<div class="footer__base">
<div class="footer__content">
<div class="footer__menu">
<a href="#" class="footer__link">About Us</a>
<a href="https://www.netcentric.biz/legal/imprint.html" class="footer__link">Imprint</a>
<a href="https://www.netcentric.biz/legal/privacy.html" class="footer__link">Privacy</a>
</div>
<div class="footer__sponsor">Powered by <a href="https://www.netcentric.biz/">Cognizant Netcentric</a></div>
</div>
</div>
<script src="script/app.js"></script>
</body>