Team:Warsaw/JSTest2

From 2008.igem.org

(Difference between revisions)
Line 1: Line 1:
{{WarHead}}
{{WarHead}}
<html>
<html>
 +
<style>
 +
.hidden { display:none; }
 +
.visible {display:block; }
 +
 +
</style>
<h3>Browse by topics</h3>
<h3>Browse by topics</h3>
Line 49: Line 54:
<div id="progress"></div>
<div id="progress"></div>
<div id="result">&nbsp;</div>
<div id="result">&nbsp;</div>
 +
<br>
 +
<div align="right"><a href="javascript:toggle_dump()">Toggle source</a></div>
 +
<textarea id="dump" readonly="true" class="hidden">core dump</textarea>
 +
<script type="text/javascript">
<script type="text/javascript">
Line 142: Line 151:
                 document.getElementById("progress").innerHTML="Done";
                 document.getElementById("progress").innerHTML="Done";
                 create_links(topics);
                 create_links(topics);
 +
                document.getElementById("dump").value=document.getElementById("result").innerHTML;
                 return true;
                 return true;
                 }
                 }
Line 234: Line 244:
}
}
 +
var dump_visible=false;
 +
function toggle_dump()
 +
{
 +
if (dump_visible)
 +
{
 +
document.getElementById("dump").className="hidden";
 +
dump_visible=false;
 +
}
 +
else
 +
{
 +
document.getElementById("dump").className="visible";
 +
dump_visible=true;
 +
}
 +
}

Revision as of 11:49, 26 October 2008

Gallery Bricks Notebook Team Project Home

Browse by topics

Start dateEnd date