Team:Warsaw/Calendar-Main/NoAtribution

From 2008.igem.org

(Difference between revisions)
 
(12 intermediate revisions not shown)
Line 2: Line 2:
<html>
<html>
 +
<!--
 +
NoAttribution script by Michał Lower.
 +
-->
 +
<style>
<style>
Line 10: Line 14:
top: 1px;
top: 1px;
bottom: 10px;
bottom: 10px;
-
width: 95%;
+
width: 99%;
overflow: auto;
overflow: auto;
background-color:white;
background-color:white;
Line 25: Line 29:
left: 5px;
left: 5px;
background-color: transparent;
background-color: transparent;
-
width: 98%;
+
width: 99%;
}
}
-
 
+
.stretched {
-
#results {
+
position: relative;
-
border: 1px solid black;
+
left: 5px;
-
border-collapse: collapse;
+
right: 5px;
-
text-align: center;
+
background-color: transparent;
-
background: transparent;
+
width: 300%;
}
}
-
#results th {
 
-
border: 1px solid black;
 
-
background: #F0F0F0;
 
-
font-weight: bold;
 
-
color: #0C1347;
 
-
font-family: Georgia, "Times New Roman", Times, serif;
 
-
}
 
-
#results td {
 
-
color: black;
 
-
border: 1px solid black;
 
-
padding: 5px;
 
-
background: transparent;
 
-
font-family: Georgia, "Times New Roman", Times, serif;
 
-
}
 
</style>
</style>
Line 77: Line 67:
</td>
</td>
<td>
<td>
-
<input type="text" value="1" size=1 name="end_day">
+
<input type="text" value="29" size=1 name="end_day">
<select name="end_month">
<select name="end_month">
<option value="January">January</option>
<option value="January">January</option>
Line 84: Line 74:
<option value="April">April</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="May">May</option>
-
<option value="June" selected="selected">June</option>
+
<option value="June">June</option>
<option value="July">July</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="August">August</option>
-
<option value="September">September</option>
+
<option value="September" selected="selected">September</option>
<option value="October">October</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="November">November</option>
Line 96: Line 86:
<input type="submit" value="Go!">
<input type="submit" value="Go!">
</form>
</form>
-
<div id="outer" onclick="JavaScript:ToggleZoom()">
+
<div id="outer">
<table width="98%" class="month">
<table width="98%" class="month">
-
<tr><td width="70%"><h4 id="progress"></h4></td><td align="right"><a>Toggle Fullscreen mode</a></td></tr>
+
<tr><td width="70%"><h4 id="progress"></h4></td><td align="right"><a href="JavaScript:ToggleZoom()" id="tf">Toggle Fullscreen mode</a></td></tr>
</table>
</table>
-
<table id="results" class="narrow">
+
<table id="result" class="narrow">
<tr>
<tr>
<td>Michał K.</td>
<td>Michał K.</td>
-
<td>Michał L.</td>
+
<td>Michał L., Ewa, Marcin</td>
<td>Piotr</td>
<td>Piotr</td>
<td>Antoni</td>
<td>Antoni</td>
<td>Paweł</td>
<td>Paweł</td>
 +
<td>Emilia</td>
 +
<td>Weronika</td>
<td>Errors</td>
<td>Errors</td>
</tr>
</tr>
Line 116: Line 108:
<td id="Antoni" valign="top"></td>
<td id="Antoni" valign="top"></td>
<td id="Paweł" valign="top"></td>
<td id="Paweł" 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 134: 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ł'];
+
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 223: 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 in authors)
+
                 
 +
                   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("<h4>"+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 235: 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 337: Line 334:
   }
   }
-
return null;
+
return "";
}
}
Line 357: Line 354:
   {
   {
   document.getElementById("outer").className = 'narrow';
   document.getElementById("outer").className = 'narrow';
 +
  document.getElementById("result").className = 'narrow';
 +
  document.getElementById("tf").className = '';
   zoomed=false;
   zoomed=false;
   }
   }
Line 362: Line 361:
   {
   {
   document.getElementById("outer").className = 'wide';
   document.getElementById("outer").className = 'wide';
 +
  document.getElementById("tf").className = 'float';
 +
  document.getElementById("result").className = 'stretched';
   zoomed=true;
   zoomed=true;
   }
   }
Line 367: 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

Gallery Bricks Notebook Team Project Home

Attribution analyzer

Start dateEnd date

Toggle Fullscreen mode
Michał K. Michał L., Ewa, Marcin Piotr Antoni Paweł Emilia Weronika Errors