Team:Warsaw/JSTest2

From 2008.igem.org

(Difference between revisions)
Line 2: Line 2:
<html>
<html>
-
<h3>Attribution analyzer</h3>
+
<h3>Browse by topics</h3>
<form name="params" action="JavaScript:analyze()">
<form name="params" action="JavaScript:analyze()">
<table class="month" width="100%">
<table class="month" width="100%">
Line 48: Line 48:
<a id="anch">Jump</a>
<a id="anch">Jump</a>
<div id="progress"></div>
<div id="progress"></div>
-
 
+
<div id="result"></div>
<script type="text/javascript">
<script type="text/javascript">
Line 141: Line 141:
                 if (day==end_day) {   
                 if (day==end_day) {   
                 document.getElementById("progress").innerHTML="Done";
                 document.getElementById("progress").innerHTML="Done";
-
                 alert(topics);
+
                 for (i in topics) document.getElementById("result").innerHTML=document.getElementById("result").innerHTML+"<br>"+i+" : "+topics[i];
                 return true;
                 return true;
                 }
                 }
Line 205: Line 205:
  var currtitle=removeHTMLTags(notags[3]);
  var currtitle=removeHTMLTags(notags[3]);
  currtitle=trimStr(currtitle.replace('+',' '));
  currtitle=trimStr(currtitle.replace('+',' '));
-
  ans_topics.push(currtitle);
+
  if(currtitle!="") ans_topics.push(currtitle);
  }
  }
}
}

Revision as of 09:13, 26 October 2008

Gallery Bricks Notebook Team Project Home

Browse by topics

Start dateEnd date
Jump