m |
m |
||
Line 516: | Line 516: | ||
function plusSlides(n) { | function plusSlides(n) { | ||
− | + | showSlides(slideIndex += n); | |
} | } | ||
function currentSlide(n) { | function currentSlide(n) { | ||
− | + | showSlides(slideIndex = n); | |
} | } | ||
function showSlides(n) { | function showSlides(n) { | ||
− | + | var i; | |
− | + | var slides = document.getElementsByClassName("mySlides"); | |
− | + | var dots = document.getElementsByClassName("dot"); | |
− | + | if (n > slides.length) { | |
− | + | slideIndex = 1; | |
− | + | } | |
− | + | if (n < 1) { | |
− | + | slideIndex = slides.length; | |
+ | } | ||
+ | for (i = 0; i < slides.length; ++i) { | ||
+ | slides[i].style.display = "none"; | ||
+ | } | ||
− | + | for (i = 0; i < dots.length; ++i) { | |
− | + | dots[i].className = dots[i].className.replace(" active", ""); | |
− | + | } | |
− | + | slides[slideIndex - 1].style.display = "block"; | |
− | + | dots[slideIndex - 1].className += " active"; | |
} | } | ||
− | |||
− | |||
− | |||
var acc = document.getElementsByClassName("date"); | var acc = document.getElementsByClassName("date"); | ||
var i; | var i; | ||
var j; | var j; | ||
− | for (i = 0; i < acc.length; | + | for (i = 0; i < acc.length; ++i) { |
− | acc[i].onclick = function(){ | + | acc[i].onclick = function () { |
this.classList.add("selected-date"); | this.classList.add("selected-date"); | ||
− | for (j = 0; j < acc.length; | + | for (j = 0; j < acc.length; ++j) { |
− | console.log(j) | + | console.log(j); |
− | if ( this!=acc[j] ) { | + | if (this != acc[j]) { |
acc[j].classList.remove("selected-date"); | acc[j].classList.remove("selected-date"); | ||
− | } | + | } else { |
− | + | console.log(j + 2); | |
− | console.log(j+2); | + | showSlides(j + 2); |
− | showSlides(j+2); | + | |
} | } | ||
} | } | ||
− | + | } | |
} | } | ||
+ | |||
</script> | </script> | ||
Revision as of 23:48, 21 June 2016
Document the dates you worked on your project.
What should this page have?
- Chronological notes of what your team is doing.
- Brief descriptions of daily important events.
- Pictures of your progress.
- Mention who participated in what task.
Inspiration
You can see what others teams have done to organize their notes:
June | ||||||
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | ||
July | ||||||
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
August | ||||||
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 | |||
September | ||||||
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | |
October | ||||||
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |