aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: 90add3ae7e95ce645a59782333ed66a78d935729 (plain) (blame)
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!-- Set title below -->
		<title>Your Homepage Title</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
		<link rel="stylesheet" type="text/css" href="common/css/fontawesome-all.min.css" />
		<link rel="stylesheet" type="text/css" href="common/css/main.css" />
		<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
	</head>
	<body id="homepage">
		<div id="wrapper">
			<div id="itemlist">
				<!-- First item: Homepage -->
				<a href="https://ortlepp.eu/" title="Homepage"><i class="fa fa-home fa-fw"></i></a>
				<!-- Second item: Git -->
				<a href="https://git.ortlepp.eu/" title="Git"><i class="fab fa-git-alt"></i></a>
				<!-- Third item: Google -->
				<a href="https://www.google.com/" title="Google"><i class="fab fa-google"></i></a>
				<!-- Add more items here ... -->
			</div>
		</div>
		<script src="common/js/trianglify.min.js"></script>
		<script>
			function addTriangleTo(target) {
				var dimensions = target.getClientRects()[0];
				var pattern = Trianglify({
					width: dimensions.width,
					height: dimensions.height
				});
				target.style['background-image'] = 'url(' + pattern.png() + ')';
				target.style['background-size'] = 'cover';
				target.style['-webkit-background-size'] = 'cover';
				target.style['-moz-background-size'] = 'cover';
				target.style['-o-background-size'] = 'cover';
			}
			var resizeTimer;
			window.addEventListener("resize", function () {
				clearTimeout(resizeTimer);
				resizeTimer = setTimeout(function() {
					addTriangleTo(homepage);
				}, 400);
			})
			addTriangleTo(homepage);
		</script>
	</body>
</html>