~ubuntu-branches/ubuntu/natty/python-cogent/natty

« back to all changes in this revision

Viewing changes to doc/_static/google_feed.js

  • Committer: Bazaar Package Importer
  • Author(s): Steffen Moeller
  • Date: 2010-12-04 22:30:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101204223035-j11kinhcrrdgg2p2
Tags: 1.5-1
* Bumped standard to 3.9.1, no changes required.
* New upstream version.
  - major additions to Cookbook
  - added AlleleFreqs attribute to ensembl Variation objects.
  - added getGeneByStableId method to genome objects.
  - added Introns attribute to Transcript objects and an Intron class.
  - added Mann-Whitney test and a Monte-Carlo version
  - exploratory and confirmatory period estimation techniques (suitable for
    symbolic and continuous data)
  - Information theoretic measures (AIC and BIC) added
  - drawing of trees with collapsed nodes
  - progress display indicator support for terminal and GUI apps
  - added parser for illumina HiSeq2000 and GAiix sequence files as 
    cogent.parse.illumina_sequence.MinimalIlluminaSequenceParser.
  - added parser to FASTQ files, one of the output options for illumina's
    workflow, also added cookbook demo.
  - added functionality for parsing of SFF files without the Roche tools in
    cogent.parse.binary_sff
  - thousand fold performance improvement to nmds
  - >10-fold performance improvements to some Table operations

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
google.load("feeds", "1");
 
2
 
 
3
function initialize() {
 
4
  var feed = new google.feeds.Feed("http://pycogent.wordpress.com/feed/");
 
5
  feed.load(function(result) {
 
6
    if (!result.error) {
 
7
      var container = document.getElementById("feed");
 
8
      for (var i = 0; i < 3; i++) {
 
9
        var entry = result.feed.entries[i];
 
10
        var tr =document.createElement('tr');
 
11
        var td =document.createElement('td');
 
12
        var link = document.createElement('a');
 
13
        link.setAttribute('href', entry.link);
 
14
        var str = entry.publishedDate;
 
15
        var patt1 = /[0-9]{2} \w+ [0-9]{4}/i;
 
16
        var pubdate=str.match(patt1).toString();
 
17
        var splitdate=pubdate.split(" ");
 
18
        var title=document.createTextNode(entry.title);
 
19
        var subtitle = document.createElement('b');
 
20
        subtitletxt=document.createTextNode(' ('+splitdate[1]+' '+splitdate[0]+', '+splitdate[2]+')');
 
21
        subtitle.setAttribute('style','color:white;font-size:9px;') 
 
22
        subtitle.appendChild(subtitletxt);
 
23
        link.appendChild(title);
 
24
        link.appendChild(subtitle)
 
25
        td.appendChild(link);
 
26
        tr.appendChild(td);
 
27
        container.appendChild(tr);
 
28
      }
 
29
    }
 
30
  });
 
31
}
 
32
google.setOnLoadCallback(initialize);
 
 
b'\\ No newline at end of file'