Team:Goettingen/NoteBook/timeline
From 2013.igem.org
(Difference between revisions)
(Created page with "{{:Team:Goettingen/templates/headerGray}} <html> <style> p{font-size:11pt;line-height:1.2em} .timeline-cont {display:none} .monat{ font-size: 20pt; background: #8f0000;...") |
|||
(9 intermediate revisions not shown) | |||
Line 5: | Line 5: | ||
p{font-size:11pt;line-height:1.2em} | p{font-size:11pt;line-height:1.2em} | ||
- | .timeline-cont {display:none} | + | .timeline-cont {display:none;padding-bottom:40px} |
.monat{ font-size: 20pt; | .monat{ font-size: 20pt; | ||
Line 97: | Line 97: | ||
fbutton = []; | fbutton = []; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
//网页最下加载更多按钮 | //网页最下加载更多按钮 | ||
Line 118: | Line 112: | ||
} | } | ||
- | //更新页面,主要为1、重新抓取tlt,tlc,fbutton数组,定义onclick | + | //更新页面,主要为1、重新抓取tlt,tlc,fbutton数组,定义onclick event; |
function updatePage(){ | function updatePage(){ | ||
- | if(woche == | + | if(woche == -2){document.getElementById("loadmore").style.display = 'none'} else {document.getElementById("loadmore").style.display = 'block';} |
tlob = document.getElementsByClassName("tlob"); | tlob = document.getElementsByClassName("tlob"); | ||
tlt = document.getElementsByClassName("timeline-title"); | tlt = document.getElementsByClassName("timeline-title"); | ||
Line 202: | Line 196: | ||
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">September</li> | <li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">September</li> | ||
<ul style="display:none"> | <ul style="display:none"> | ||
- | <li><a onclick="getWeeklyJournal( | + | <li><a onclick="getWeeklyJournal(19,this)">Week 19</a></li> |
- | <li><a onclick="getWeeklyJournal( | + | <li><a onclick="getWeeklyJournal(18,this)">Week 18</a></li> |
- | <li><a onclick="getWeeklyJournal( | + | <li><a onclick="getWeeklyJournal(17,this)">Week 17</a></li> |
</ul> | </ul> | ||
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">August</li> | <li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">August</li> | ||
- | <ul style="display:none"> | + | <ul style="display:none"> |
+ | <li><a onclick="getWeeklyJournal(16,this)">Week 16</a></li> | ||
+ | <li><a onclick="getWeeklyJournal(15,this)">Week 15</a></li> | ||
+ | <li><a onclick="getWeeklyJournal(14,this)">Week 14</a></li> | ||
<li><a onclick="getWeeklyJournal(13,this)">Week 13</a></li> | <li><a onclick="getWeeklyJournal(13,this)">Week 13</a></li> | ||
- | + | ||
- | + | ||
- | + | ||
</ul> | </ul> | ||
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">July</li> | <li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">July</li> | ||
<ul style="display:none"> | <ul style="display:none"> | ||
+ | <li><a onclick="getWeeklyJournal(12,this)">Week 12</a></li> | ||
+ | <li><a onclick="getWeeklyJournal(11,this)">Week 11</a></li> | ||
+ | <li><a onclick="getWeeklyJournal(10,this)">Week 10</a></li> | ||
<li><a onclick="getWeeklyJournal(9,this)">Week 9</a></li> | <li><a onclick="getWeeklyJournal(9,this)">Week 9</a></li> | ||
<li><a onclick="getWeeklyJournal(8,this)">Week 8</a></li> | <li><a onclick="getWeeklyJournal(8,this)">Week 8</a></li> | ||
- | + | ||
- | + | ||
- | + | ||
</ul> | </ul> | ||
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">June</li> | <li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">June</li> | ||
<ul style="display:none"> | <ul style="display:none"> | ||
+ | <li><a onclick="getWeeklyJournal(7,this)">Week 7</a></li> | ||
+ | <li><a onclick="getWeeklyJournal(6,this)">Week 6</a></li> | ||
+ | <li><a onclick="getWeeklyJournal(5,this)">Week 5</a></li> | ||
<li><a onclick="getWeeklyJournal(4,this)">Week 4</a></li> | <li><a onclick="getWeeklyJournal(4,this)">Week 4</a></li> | ||
+ | |||
+ | </ul> | ||
+ | <li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">May</li> | ||
+ | <ul style="display:none"> | ||
<li><a onclick="getWeeklyJournal(3,this)">Week 3</a></li> | <li><a onclick="getWeeklyJournal(3,this)">Week 3</a></li> | ||
<li><a onclick="getWeeklyJournal(2,this)">Week 2</a></li> | <li><a onclick="getWeeklyJournal(2,this)">Week 2</a></li> | ||
<li><a onclick="getWeeklyJournal(1,this)">Week 1</a></li> | <li><a onclick="getWeeklyJournal(1,this)">Week 1</a></li> | ||
- | + | </ul> | |
- | + | ||
</ul> | </ul> | ||
Line 234: | Line 236: | ||
function getWeeklyJournal(n,obj){ | function getWeeklyJournal(n,obj){ | ||
//obj.style.marginLeft = '10px'; | //obj.style.marginLeft = '10px'; | ||
+ | n = n - 3; | ||
woche = n; | woche = n; | ||
addw = "https://2013.igem.org/Team:Goettingen/NoteBook_w" + n + "?action=raw&ctype=text"; | addw = "https://2013.igem.org/Team:Goettingen/NoteBook_w" + n + "?action=raw&ctype=text"; | ||
Line 273: | Line 276: | ||
<div id="loadmore" class="bt" onclick="loadmore()">Load More ▼</div> | <div id="loadmore" class="bt" onclick="loadmore()">Load More ▼</div> | ||
</div><!--close col-right> | </div><!--close col-right> | ||
- | + | </div><!--close f-box--> | |
+ | </div><!--close body--> | ||
</html> | </html> |
Latest revision as of 12:52, 17 October 2013