Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 82: Line 82:
{
{
var titlepos=ans.search(title);
var titlepos=ans.search(title);
-
if (titlepos<0) return ans;
+
if (titlepos<0) return title+" not found";
var endpos=ans.search("<h3>",titlepos);
var endpos=ans.search("<h3>",titlepos);
if (endpos<0) return ans.substr(titlepos,ans.length-titlepos);
if (endpos<0) return ans.substr(titlepos,ans.length-titlepos);

Revision as of 21:40, 25 October 2008

Gallery Bricks Notebook Team Project Home