summaryrefslogtreecommitdiff
authornatronics <natronics@web>2014-08-11 00:12:40 (GMT)
committer wiki <iki-wiki@psas.svcs.cs.pdx.edu>2014-08-11 00:12:40 (GMT)
commit50a0116418e8e47a94aa90069d517a0f2f7b77ad (patch) (side-by-side diff)
treef020d6d35dfd06d002a871d6843364c3bc04dd1f
parent3d5e7b6b1476bdc8f3033e48d63d6e4d794a1c88 (diff)
downloadwiki-50a0116418e8e47a94aa90069d517a0f2f7b77ad.zip
wiki-50a0116418e8e47a94aa90069d517a0f2f7b77ad.tar.gz
latest post javascript magic
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--index.mdwn21
1 files changed, 21 insertions, 0 deletions
diff --git a/index.mdwn b/index.mdwn
index 94e3499..64ef2d7 100644
--- a/index.mdwn
+++ b/index.mdwn
@@ -74,6 +74,27 @@ A huge thank you to our [[Sponsors]]:
# News
+Recent news [posted on our blog](http://blog.psas.pdx.edu).
+
+<div id="latest-blog">
+<a href="http://blog.psas.pdx.edu">Read news on blog.psas.pdx.edu</a>
+</div>
+<script>
+ var url = "http://blog.psas.pdx.edu/feed.xml"
+ $.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) {
+ var post = data.responseData.feed.entries[0]
+ var postdate = new Date(post.publishedDate);
+ $("#latest-blog").html("<h3>" + (postdate.getMonth()+1) + "/" + (postdate.getDate()+1) + "/" + postdate.getFullYear() + ": " + post.title + "</h3>" + post.content);
+ }
+ });
+</script>
+
+
+You can also [follow us on twitter](https://twitter.com/pdxaerospace).
+
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/pdxaerospace" data-widget-id="495311403868123137">Tweets by @pdxaerospace</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>