-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.desktop.html
174 lines (166 loc) · 6.42 KB
/
index.desktop.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
<!DOCTYPE html>
<!--[if lt IE 8]> <html class="disabled"> <![endif]-->
<!--[if gt IE 7]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=1024, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="css/style.css">
<link id="thefavicon"
rel="icon"
type="image/png"
href="">
<script type="text/javascript">
/**
* webfont loader to fix webkit behaviour
* (waits for the font to load to render text)
**/
WebFontConfig = {
google: { families: [ 'Ubuntu', 'Cantarell' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
<script src="js/tap.js"></script>
<script src="js/modernizr.js"></script>
<script data-joshfire-bootstrap src="http://preview-staging.joshfireapps.com/bootstrap/4fd211d3f9e98b0100001031/4ffbe439e17fa401000001d5/desktop/"></script>
</head>
<body>
<div id="root">
<div id="app">
<section id="sidebar">
<header>
<a href="#/view" class="back"></a>
<h2></h2>
<!--<div class="playlistcontrols">
<p>Playlist mode : <a href="javascript:;" class="toggleplaylist">Off</a></p>
</div>-->
</header>
<div id="sidebarlist" class="list"></div>
</section>
<section id="content"></section>
</div>
</div>
<script data-main="app" src="js/joshfire-framework/lib/adapters/browser/bootstrap.js"></script>
<!-- Templates -->
<script type="text/template" id="article-template">
<h4>
<%
var theauthor;
if(item.author) { %>
<% if(item.author.length)
theauthor = item.author[item.author.length - 1];
else
theauthor = item.author;
} %>
<% if(theauthor.thumbnail && item.author.thumbnail.length) { %>
<div class="profilepic" style="background: transparent url(<%=theauthor.thumbnail[0].contentURL%>) no-repeat top left"></div>
<% }
else if(theauthor.image && theauthor.image.contentURL) {%>
<div class="profilepic" style="background: transparent url(<%=theauthor.image.contentURL%>) no-repeat top left"></div>
<%}%>
<div class="profileinfo">
<% if(theauthor.url) { %>
<span class="author">By <a target="_blank" href="<%=theauthor.url%>"><%=theauthor.name%></a></span>
<% } else { %>
<span class="author">By <%=theauthor.name%></span>
<% } %>
<%
thedate = item.dateCreated || item.datePublished || item.dateAdded;
if(thedate) { %>
<br /><span class="date">Posted on <%=thedate.split('T')[0].split('-').join('/')%></span>
<% } %>
</div>
</h4>
<div class="articleInnerContainer innerContainer">
<div class="maincontent">
<%=item.name%>
</div>
</div>
</script>
<script type="text/template" id="media-template">
<h4><%=item.name%></h4>
<div class="mediaInnerContainer innerContainer">
<div class="maincontent">
<%=media.html%>
</div>
<div class="subcontent scroll-wrapper">
<article>
<% if(item.author) { %>
<% if(item.author.length)
theauthor = item.author.pop();
else
theauthor = item.author;
%>
<header>
<% if(theauthor.thumbnail && item.author.thumbnail.length) { %>
<img src="<%=item.author.thumbnail[0].contentURL%>" alt="Author's picture" />
<% } %>
<div class="authorinfo">
<% if(theauthor.url) { %>
<span class="author">By <a target="_blank" href="<%=item.author.url%>"><%=theauthor.name%></a></span>
<% } else { %>
<span class="author">By <%=theauthor.name%></span>
<% } %>
<%
thedate = item.dateCreated || item.datePublished || item.dateAdded;
if(thedate) { %>
<span class="date">Posted on <%=thedate.split('T')[0].split('-').join('/')%></span>
<% } %>
</div>
</header>
<% } %>
<section>
<%=item.description%>
</section>
</article>
</div>
</div>
</script>
<script type="text/template" id="image-template">
<div class="scrollwrapper">
<div class="imagepaneInnerContainer innerContainer">
<div class="maincontent">
</div>
<div class="subcontent">
<article>
<% if(item.author) { %>
<% if(item.author.length)
theauthor = item.author.pop();
%>
<header>
<% if(theauthor.thumbnail && theauthor.thumbnail.length) { %>
<img src="<%=theauthor.thumbnail[0].contentURL%>" alt="Author's picture" />
<% } %>
<% if(theauthor.url) { %>
<span class="author">By <a target="_blank" href="<%=theauthor.url%>"><%=theauthor.name%></a></span>
<% } else { %>
<span class="author">By <%=theauthor.name%></span>
<% } %>
<%
thedate = item.dateCreated || item.datePublished;
if(thedate) { %>
<br /><span class="date">Posted on <%=thedate.split('T')[0].split('-').join('/')%></span>
<% } %>
</header>
<% } %>
<% if(item.description) { %>
<section>
<%=item.description%>
</section>
<% } %>
</article>
</div>
</div>
</div>
</script>
</body>
</html>