forked from tlongren/skimhn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (88 loc) · 3.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Skim HN</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Skim HN shows latest Hacker News submissions sorted by categories.">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/skimhn.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<body>
<script type="text/javascript">
var darkTheme = false;
if (!('darkTheme' in localStorage)) {
localStorage['darkTheme'] = JSON.stringify(darkTheme);
} else {
darkTheme = JSON.parse(localStorage['darkTheme']);
}
if (darkTheme) {
document.getElementsByTagName("body")[0].className += 'skimdark';
}
</script>
<div class="container">
<div id="main"></div>
<div class="row">
<div class="span2"><button type="button" data-toggle="modal" data-target="#add" class="btn btn-block">Add</button></div>
</div>
<hr>
<footer>
<h5>Settings</h5>
<p><label class="checkbox"><input type="checkbox" class="toggle-newwindow"> Open links in new window</label></p>
<p><label class="checkbox"><input type="checkbox" class="toggle-theme"> Dark theme</label></p>
<h5>About</h5>
<p>Skim HN shows latest Hacker News submissions sorted by categories.</p>
<p>Inspired by <a href="http://skimfeed.com/">SkimFeed</a>.</p>
<p>Powered by HN users, <a href="https://hn.algolia.com/api">Algolia HN Search API</a>, <a href="http://twitter.github.com/bootstrap/">Bootstrap</a>, <a href="http://jquery.com/">jQuery</a>.</p>
<p>Dark theme and styling inspired by <a href="http://news.ycombinator.com/user?id=rumberg">rumberg</a>'s <a href="http://news.ycombinator.com/item?id=5188175">redesign</a>.</p>
<p>Skim HN is not affiliated with Y Combinator in any way.</p>
</footer>
</div>
<div id="add" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="addLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="addLabel">Add</h3>
</div>
<div class="modal-body">
<form>
<fieldset>
<label>Title</label>
<input type="text" id="cattitle" class="input-xxlarge">
<label>Query</label>
<input type="text" id="catquery" class="input-xxlarge">
</fieldset>
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
<div id="edit" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="editLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="editLabel">Edit</h3>
</div>
<div class="modal-body">
<form>
<fieldset>
<label>Title</label>
<input type="text" id="cattitle" class="input-xxlarge">
<label>Query</label>
<input type="text" id="catquery" class="input-xxlarge">
<input type="hidden" id="catindex">
</fieldset>
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
<button class="btn btn-danger pull-left">Delete</button>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/hn.js"></script>
</body>
</html>