Team:Warsaw/Calendar-Main/NoAtribution
From 2008.igem.org
(Difference between revisions)
(7 intermediate revisions not shown) | |||
Line 37: | Line 37: | ||
right: 5px; | right: 5px; | ||
background-color: transparent; | background-color: transparent; | ||
- | width: | + | width: 300%; |
} | } | ||
Line 98: | Line 98: | ||
<td>Paweł</td> | <td>Paweł</td> | ||
<td>Emilia</td> | <td>Emilia</td> | ||
+ | <td>Weronika</td> | ||
<td>Errors</td> | <td>Errors</td> | ||
</tr> | </tr> | ||
Line 108: | Line 109: | ||
<td id="Paweł" valign="top"></td> | <td id="Paweł" valign="top"></td> | ||
<td id="Emilia" valign="top"></td> | <td id="Emilia" valign="top"></td> | ||
+ | <td id="Weronika" valign="top"></td> | ||
<td id="no_author" valign="top"></td> | <td id="no_author" valign="top"></td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
</div> | </div> | ||
- | + | <div align="right"><a href="javascript:toggle_dump()">Toggle source</a></div> | |
+ | <textarea id="dump" readonly="true" class="hidden" style="width:100%;height:400px">core dump</textarea> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 126: | Line 129: | ||
var months=['January','February','March','April','May','June','July','August','September','October','November','December']; | var months=['January','February','March','April','May','June','July','August','September','October','November','December']; | ||
- | var authors=['Michał K.','Piotr','Antoni','Michał L.','Paweł', 'Emilia']; | + | var authors=['Michał K.','Piotr','Antoni','Michał L.','Paweł', 'Emilia', 'Weronika']; |
var adresbase='https://2008.igem.org/Team:Warsaw/Calendar-Main/'; | var adresbase='https://2008.igem.org/Team:Warsaw/Calendar-Main/'; | ||
Line 215: | Line 218: | ||
else if (and(count_authors(ans)==count_titles(ans),count_authors(ans)>0)) | else if (and(count_authors(ans)==count_titles(ans),count_authors(ans)>0)) | ||
{ | { | ||
- | for (i | + | |
+ | for (var i=0;i<authors.length;i++) // IE doesn't support for ... in - learn standards M$ lamers | ||
{ | { | ||
- | |||
if(ans.search(authors[i])>0) { | if(ans.search(authors[i])>0) { | ||
+ | |||
document.getElementById(authors[i]).innerHTML=document.getElementById(authors[i]).innerHTML+"<br/><a href="+'"'+adresbase+nday+'"'+">"+nday+": "+removeHTMLTags(get_title_by_author(ans,authors[i]))+"</a>"; | document.getElementById(authors[i]).innerHTML=document.getElementById(authors[i]).innerHTML+"<br/><a href="+'"'+adresbase+nday+'"'+">"+nday+": "+removeHTMLTags(get_title_by_author(ans,authors[i]))+"</a>"; | ||
Line 227: | Line 231: | ||
if (day==end_day) { | if (day==end_day) { | ||
document.getElementById("progress").innerHTML="Done"; | document.getElementById("progress").innerHTML="Done"; | ||
+ | document.getElementById("dump").value=document.getElementById("result").innerHTML; | ||
return true; | return true; | ||
} | } | ||
Line 329: | Line 334: | ||
} | } | ||
- | return | + | return ""; |
} | } | ||
Line 363: | Line 368: | ||
} | } | ||
+ | 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; | ||
+ | } | ||
+ | } | ||
/* ]]> */</script> | /* ]]> */</script> |
Latest revision as of 11:57, 26 October 2008
Attribution analyzer
|