-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
121 lines (93 loc) · 3.34 KB
/
blog.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenBoxes | Blog</title>
<!--#include file="head.ext" -->
<!-- Le styles -->
<!--#include file="css.ext" -->
<style type="text/css">
@media (max-width: 980px) {
body { padding-top: 0;}
}
.center { float: none; margin-left: auto; margin-right: auto; }
.icon-large:before { 1.3em }
ul.features > li { margin:0 5px 5px 0; vertical-align:top;}
.centered-content{ text-align:center !important; vertical-align: middle !important;}
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif;text-align:center;}
.raise { position: relative; z-index: 1; }
#blog-entries {
font-family: Georgia,Cambria,"Times New Roman",Times,serif;
font-size: 11pt;
}
</style>
<link href="//cdn-images.mailchimp.com/embedcode/slim-081711.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.min.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.ie.min.css" />
<![endif]-->
</head>
<body>
<div id="wrap">
<!--#include file="header.ext" -->
<div class="container-narrow">
<div class="jumbotron">
<h1>Blog</h1>
<p class="lead">Stay abreast of project news and announcements.</p>
</div>
<div class="row-fluid">
<div class="span12">
<div id="blog-entries"></div>
</div>
</div>
<hr/>
<div id="disqus_thread"></div>
</div>
<!--#include file="footer.ext" -->
<script src="./ember/js/libs/jquery-1.9.1.js"></script>
<script src="./bootstrap/js/bootstrap.js"></script>
<script src="./ember/js/libs/handlebars-1.0.0-rc.4.js"></script>
<script src="./ember/js/libs/ember-1.0.0-rc.6.1.js"></script>
<script src="./js/jquery.jsonp-2.4.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var url = "http://blog.openboxes.com/feeds/posts/default";
parseRSS(url, printRSS)
});
function printRSS(data) {
console.log(data);
for ( var i = 0, l = data.entries.length; i < l; i++ ) {
var entry = data.entries[i];
console.log(entry);
var post = $("<div></div>");
var header = $("<div></div>");
var well = $("<div></div>");
var title = $("<h2><a href='" + entry.link + "'>" + entry.title + "</a></h2>");
// <small>" + entry.publishedDate + "</small>
var author = $("<h4><small>" + " <a href='mailto:[email protected]'>" + entry.author + "</a> • " + entry.publishedDate + "</small></h4>");
var content = $("<p>" + entry.content + "</p>");
var hr = $("<hr></hr>");
header.append(title);
well.append(content);
post.append(header).append(author).append(well);
if (i<l-1) {
post.append(hr);
}
$("#blog-entries").append(post);
}
}
function parseRSS(url, callback) {
$.ajax({
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
dataType: 'json',
success: function(data) {
callback(data.responseData.feed);
}
});
}
</script>
<!--#include file="analytics.ext" -->
<!--#include file="uservoice.ext" -->
<!--#include file="chat.ext" -->
</body>
</html>