This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
/
index.html
executable file
·175 lines (154 loc) · 7.75 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!doctype html>
<html lang="en" ng-app="wReader">
<head>
<meta charset="utf-8">
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>wReader</title>
<meta name="description" content="">
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
<!-- All JavaScript at the bottom, except this Modernizr build.
Modernizr enables HTML5 elements & feature detects for optimal performance.
Create your own custom Modernizr build: www.modernizr.com/download/ -->
<script src="js/libs/modernizr-2.5.3.min.js"></script>
<script src="js/libs/angular-1.0.0rc8/angular-1.0.0rc8.min.js"></script>
<base target="_blank"> <!-- This amazingness opens all links in a new tab. -->
</head>
<body ng-controller="DataController" class="ng-cloak" w-down="items.next()" w-up="items.prev()"
w-read="toggleRead()" w-star="toggleStar()" w-space="handleSpace()">
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
<header>
<div class="navbar navbar-fixed-top no-select" ng-controller="NavBarController">
<div class="navbar-inner">
<div class="container">
<a class="brand" data-toggle="modal" href="#modalAbout">
wReader
</a>
<ul class="nav">
<li class="divider-vertical"></li>
<li class="itemCount"><a ng-click="showAll()">{{itemCount()}} Items</a></li>
<li class="divider-vertical"></li>
<li class="itemCount"><a ng-click="showUnread()">{{unreadCount()}} Unread</a></li>
<li class="divider-vertical"></li>
<li class="itemCount"><a ng-click="showStarred()">{{starredCount()}} Starred</a></li>
<li class="divider-vertical"></li>
<li class="itemCount"><a ng-click="showRead()">{{readCount()}} Read</a></li>
<li class="divider-vertical"></li>
</ul>
<form class="navbar-search pull-left" id="navSearch">
<input type="search" ng-model="$parent.search" class="search-query" placeholder="Search">
</form>
<ul class="nav pull-right">
<!--<li><a ng-click="showSettings()"><i class="icon-cog icon-white"></i></a></li>-->
<!--
<li><a {{action "showUserConfig" on="click"}}><i class="icon-user icon-white"></i></a></li>
-->
<li><a ng-click="refresh()" title="Refresh all feeds" alt="Refresh all feeds"><i class="icon-refresh icon-white"></i></a></li>
</ul>
</div>
</div>
</div>
</header>
<section class="mainContent">
<section class="controls no-select">
<div class="tControls">
<div class="top">
<button ng-click="items.markAllRead()" class="btn" title="Mark all as read" alt="Mark all as read"><i class="icon-ok"></i></button>
</div>
<div class="middle">
<button ng-click="items.prev()" class="btn" ng-disabled="!items.hasPrev()"><i class="icon-arrow-up"></i></button>
<button ng-click="items.toggleStar()" ng-disabled="!items.selected" class="btn">
<i ng-class="{'icon-star': items.selected.starred, 'icon-star-empty': !items.selected.starred}"></i>
</button>
<button ng-click="items.toggleRead()" ng-disabled="!items.selected" class="btn">
<i ng-class="{'icon-ok-sign': items.selected.read, 'icon-ok-circle': !items.selected.read}"></i>
</button>
<button ng-click="items.next()" class="btn" ng-disabled="!items.hasNext()"><i class="icon-arrow-down"></i></button>
</div>
<div class="bottom">
<button ng-click="items.refresh()" class="btn" title="Refresh feeds" alt="Refresh feeds">
<i class="icon-refresh"></i>
</button>
</div>
</div>
</section>
<section class="summaries">
<article ng-repeat="item in items.filtered | filter: search | orderBy: '-pub_date'" id="{{item.item_id}}" ng-class="{read: item.read, active: item.selected}" class="well summary" ng-click="items.selectItem($index)">
<div class="row-fluid" >
<div class="span6 pub-name">
{{item.pub_name}}
</div>
<div class="span6 pub-date">
{{item.pub_date | formattedDate}}
</div>
</div>
<h3 class="pub-title">{{item.title}}</h3>
</article>
</section>
<section class="entries">
<article class="well entry" ng-class="{read: items.selected.read, active: items.selected.selected}" ng-hide="!items.selected">
<div class="row-fluid">
<div class="span8">{{items.selected.pub_date | formattedDate}}</div>
<div class="span4 actions">
<input type="checkbox" class="read" ng-model="items.selected.read">
<input type="checkbox" class="star" ng-model="items.selected.starred">
<a href="{{items.selected.item_link}}"><i class="icon-share"></i></a>
</div>
</div>
<h2>{{items.selected.title}}</h2>
<span class="author">{{items.selected.pub_author}}</span> - <span class="pub-name">{{items.selected.pub_name}}</span>
<hr />
<p class="post-content" ng-bind-html-unsafe="items.selected.content"></p>
</div>
</article>
<div class="nothingSelected" ng-show="!items.length || !items.selected">
<img src="img/sadpanda.png" alt="Sad Panda" title="Sad Panda">
<p>Nothing selected.</p>
</div>
</section>
</section>
<div class="modal fade" id="modalAbout">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>About wReader</h3>
</div>
<div class="modal-body">
<p>Original WReader by <a href="http://petelepage.com">Pete LePage</a>.
Angular port by <a href="http://ericbidelman.com">Eric Bidelman</a>.</p>
</div>
<div class="modal-footer">
<a data-dismiss="modal" class="btn btn-primary">Close</a>
</div>
</div>
<footer>
</footer>
</script>
<script src="js/libs/jquery-1.7.1.min.js"></script>
<script src="js/libs/bootstrap.min.js"></script>
<!--<script src="js/plugins.js"></script>-->
<script src="js/libs/lawnchair-0.6.1.min.js"></script>
<script src="js/libs/lawnchair-adapter-indexed-db-0.6.1.js"></script>
<script src="js/libs/lawnchair-pagination-0.6.1.js"></script>
<script src="js/libs/moment-1.4.0.min.js"></script>
<script src="js/app.js"></script>
<script src="js/filters.js"></script>
<script src="js/services.js"></script>
<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
mathiasbynens.be/notes/async-analytics-snippet -->
<!--<script>
var _gaq=[['_setAccount','UA-29459980-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>-->
</body>
</html>