-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
112 lines (100 loc) · 3.82 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
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="TSHN Top Stories of Hacker News from last 24 hours">
<meta name="author" content="Sushant Hiray">
<title>TSHN</title>
<!-- Bootstrap core CSS -->
<link href="./css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="./css/sticky-footer.css"rel="stylesheet">
<style>
a:visited{color:#AE3910;}
img.center {
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="js/jquery.timeago.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".timeago").timeago();
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40046157-5', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Wrap all page content here -->
<div id="wrap">
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">TSHN</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="https://sushant-hiray.me/posts">Blog</a></li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/container -->
</div><!--/navbar -->
<div class="container" >
<div class="page-header">
<h1><small>Top Stories of Hacker News in last 24 hours</small></h1>
</div>
<br/>
<h2 class="imgloader text-center"><small>Loading...</small></h2><br/>
<img class="imgloader center" src="img/ajax-loader.gif"/>
<table class="table table-striped" id="data-table">
<thead>
<th>#</th>
<th>Title</th>
<th>User</th>
<th>Comments</th>
<th>Points</th>
<th><p class="text-center">Time Posted</p></th>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div id="footer">
<div class="container">
<p class="text-muted credit">Built with love by <a href="https://sushant-hiray.me">@Sushant</a>.</p>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/mustache.js"></script>
<script type="text/javascript" src="./js/update.js"></script>
<script language="javascript">
function refresh()
{
location.reload(true)
}
var minutes = 15;
window.setInterval("refresh()",60000*minutes);
</script>
</body>
</html>