Team:Warsaw/JSTest
From 2009.igem.org
(Difference between revisions)
(New page: {{WarHead}} <html> <h1 id="title"></h1> <div id="merg"></div> <script type="text/javascript"> - →<![CDATA[: /* Client-side access to querystring name=value pairs Version 1.3 28...) |
|||
(5 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | {{ | + | {{WarHead1}} |
<html> | <html> | ||
Line 86: | Line 86: | ||
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 adresbase='https:// | + | var adresbase='https://2009.igem.org/Team:Warsaw/Calendar-Main/'; |
function merge(days) | function merge(days) | ||
Line 97: | Line 97: | ||
var div=document.createElement("div"); | var div=document.createElement("div"); | ||
var h=document.createElement("h3"); | var h=document.createElement("h3"); | ||
- | h.innerHTML='<a href="'+adresbase+days[i]+'">'+days[i]+'</a> <div align="right"><a href="https:// | + | h.innerHTML='<a href="'+adresbase+days[i]+'">'+days[i]+'</a> <div align="right"><a href="https://2009.igem.org/wiki/index.php?title=Team:Warsaw/Calendar-Main/'+days[i]+String.fromCharCode(38)+'action=edit">'+"[Edit]"+'</a></div>'; |
div.setAttribute("id",days[i]); | div.setAttribute("id",days[i]); | ||
document.getElementById("merg").appendChild(h); | document.getElementById("merg").appendChild(h); | ||
Line 150: | Line 150: | ||
if (notags[3]==undefined) var currtitle=removeHTMLTags(notags[0]); //dirty IE hack | if (notags[3]==undefined) var currtitle=removeHTMLTags(notags[0]); //dirty IE hack | ||
else var currtitle=removeHTMLTags(notags[3]); | else var currtitle=removeHTMLTags(notags[3]); | ||
+ | currtitle=trimStr(currtitle.replace('[edit]','')); | ||
currtitle=trimStr(currtitle.replace(/\+/g,' ')); | currtitle=trimStr(currtitle.replace(/\+/g,' ')); | ||
//alert ("C: "+currtitle+"\nT: "+title); | //alert ("C: "+currtitle+"\nT: "+title); |
Latest revision as of 09:49, 16 August 2009
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|