forked from jeroenpardon/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·98 lines (90 loc) · 4.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Smeets</title>
<meta charset="utf-8">
<meta name="description" content="a startpage for your server">
<meta http-equiv="Default-Style" content="">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link type="text/css" rel="stylesheet" href="./assets/css/styles.css" media="screen,projection"/>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,900" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.7/handlebars.min.js"></script>
<script src="https://code.iconify.design/1/1.0.7/iconify.min.js"></script>
<style>
body {
background-image: url('assets/img/background.jpeg');
background-repeat: no-repeat;
background-size: cover;
}
:root {
--color-text-pri: #FFFDEA;
--color-text-acc: #5c5c5c;
}
#links_item {
--color-text-pri: #DBF502;
}
</style>
</head>
<body onload="loadFunctions()">
<script>
// Based on https://stackoverflow.com/q/42245693
Handlebars.registerHelper('replace', function( find, replace, options) {
var string = options.fn(this);
return string.replace( find, replace );
});
</script>
<main id="container" class="fade">
<section id="search">
<input name="keywords" type="text" id="keywords" size="50" spellcheck="false" autofocus="true" onkeydown="handleKeyPress(event)">
</section>
<section id="header">
<h2 id="header_date"></h2>
<h1 id="header_greet"></h1>
</section>
<section id="apps">
<script type="text/handlebars-template" id="apps-template">
<h3>Applications</h3>
<div id="apps_loop">
{{#apps}}
<a href="{{url}}" {{#if target}}target="{{target}}"{{/if}} style="text-decoration: none;">
<div class="apps_item">
<div class="apps_icon">
{{#if icon}}<span class="iconify icon" data-icon="mdi-{{icon}}"></span>{{/if}}
{{#if img}}<img src="{{img}}" class="icon" style="width: 32px; height: 32px;"></img>{{/if}}
</div>
<div class="apps_text">
{{name}}
{{#if url_pretty}}<span id="app-address">{{url_pretty}}</span>{{else}}<span id="app-address">{{#replace "https://" ""}}{{#replace "http://" ""}}{{url}}{{/replace}}{{/replace}}</span>{{/if}}
</div>
</div>
</a>
{{/apps}}
</div>
</script>
</section>
<section id="links">
<script type="text/handlebars-template" id="links-template">
<h3>Bookmarks</h3>
<div id="links_loop">
{{#bookmarks}}
<div id="links_item">
<h4 style="color: #8BF059">{{category}}</h4>
{{#links}}
<div style="display: flex; align-items: center;">
{{#if icon}}
<span class="links_icon iconify BookmarkIconSvg" style="margin-right: 5px" data-icon="mdi-{{icon}}"></span>
{{/if}}
<a href="{{url}}" target="{{target}}" class="theme_color-border theme_text-select">{{name}}</a>
</div>
{{/links}}
</div>
{{/bookmarks}}
</div>
</script>
</section>
</main>
<script src="./assets/js/data.js" type="text/javascript"></script>
<script src="./assets/js/script.js" type="text/javascript"></script>
<script src="./assets/js/search.js" type="text/javascript"></script>
</body>
</html>