forked from zserge/headline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (79 loc) · 2.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf8">
<title>Headline</title>
<meta name="description" content="A minimalistic RSS reader.">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css" />
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="manifest" href="icons/site.webmanifest">
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#212121">
<link rel="shortcut icon" href="icons/favicon.ico">
<meta name="apple-mobile-web-app-title" content="Headline">
<meta name="application-name" content="Headline">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-config" content="icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<!-- Loading indicator -->
<div id="loading"><div></div></div>
<!-- Menu bar -->
<nav>
<a id="menu" onclick="onMenuClicked()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke="var(--color-text)"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M-6,12 L0,6 L24,6 L12,18" />
<path d="M-6,12 L0,18 L24,18 L12,6" />
<path d="M3,12 L21,12" />
</svg>
</a>
<h3 id="title"></h3>
</nav>
<header id="settings">
<section>
<h3>Your feeds:</h3>
<ul id="feeds">
<template id="settings-feed-item">
<li>
<span></span> — <a>view</a> — <a>remove</a>
</li>
</template>
</ul>
</section>
<section id="newfeed">
<a onclick="onAddFeedClicked()">Add new feed…</a>
</section>
<section>
<label for="keywords"><h3>Highlight by keywords:</h3></label>
<textarea id="keywords" rows="4" style="width:100%" oninput="onKeywordsChanged(this.value)"></textarea>
</section>
<section id="keywordbtn">
<button onclick="onDoneClicked()">Done</button>
</section>
</header>
<!-- News feed -->
<article>
<ul id="news">
<template id="news-item">
<li>
<h3></h3>
<a><span></span><em></em></a>
</li>
</template>
</ul>
</article>
<footer>
<!-- Loading message (dissapears after fetching all entries) -->
<p id="loadingmessage">(Loading...)</p>
<!-- Dark mode button -->
<a onclick="toggleDarkMode()"><span style="font-weight: normal;">☽</span> Toggle dark mode</a>
</footer>
<script src="app.js"></script>
</body>
</html>