Difference between revisions of "Team:Vilnius-Lithuania/test/Experiments"

m
m
Line 31: Line 31:
 
         </div>
 
         </div>
 
         <script>
 
         <script>
            calendarbutton.onclick = () => {
+
function closeCalendar(){
                if (calendarbutton.classList.contains("open")) {
+
calendarbutton.innerHTML = "Calendar";
                    calendarbutton.innerHTML = "Calendar";
+
calendarbutton.classList.remove("open");
                    calendarbutton.classList.remove("open");
+
calendar.classList.remove("open");
                    calendar.classList.remove("open");
+
calendaroverlay.classList.remove("open");
    calendaroverlay.classList.remove("open");
+
}
                } else {
+
function openCalendar(){
                    calendarbutton.innerHTML = "Close";
+
calendarbutton.innerHTML = "Close";
                    calendarbutton.classList.add("open");
+
calendarbutton.classList.add("open");
                    calendar.classList.add("open");
+
calendar.classList.add("open");
    calendaroverlay.classList.add("open");
+
calendaroverlay.classList.add("open");
                }
+
}
            };
+
 
 +
calendaroverlay.onclick = closeCalendar;
 +
 
 +
calendarbutton.onclick = () => {
 +
if (calendarbutton.classList.contains("open")) {
 +
closeCalendar();
 +
} else {
 +
openCalendar();
 +
}
 +
};
 +
 
 
const introContainer = document.querySelector(".introContainer");
 
const introContainer = document.querySelector(".introContainer");
 
function checkHideCalendarButton(){
 
function checkHideCalendarButton(){
Line 49: Line 59:
 
let introContainerBottom = introContainer.getBoundingClientRect().bottom;
 
let introContainerBottom = introContainer.getBoundingClientRect().bottom;
 
let footerTop = footerWrapper.getBoundingClientRect().top;
 
let footerTop = footerWrapper.getBoundingClientRect().top;
+
 
 
if (calendarButtonTop < introContainerBottom || calendarButtonTop > footerTop){
 
if (calendarButtonTop < introContainerBottom || calendarButtonTop > footerTop){
 
calendarbutton.classList.add("notshow");
 
calendarbutton.classList.add("notshow");
Line 58: Line 68:
 
window.addEventListener("resize", checkHideCalendarButton);
 
window.addEventListener("resize", checkHideCalendarButton);
 
window.addEventListener("scroll", checkHideCalendarButton);
 
window.addEventListener("scroll", checkHideCalendarButton);
 
 
         </script>
 
         </script>
 
         <div class="contentBlock">
 
         <div class="contentBlock">

Revision as of 14:45, 14 October 2020

Calendar
Lab Weekly Calendar
Protocols and Safety
PDF
Weekly Summary
Detection
Treatment
Prevention
March 30 - April 5
Since its inception iGEM has worked to ensure that excellence in synthetic biology goes beyond what happens in the lab. Decisions in science and engineering shape, and are shaped by, the societies we create. Social, political, economic, and ethical aspects of synthetic biology cannot be an afterthought of research and development. Rather, they should be considered from project conception all the way through the innovation process.

Synthetic biology is not just science or engineering. It is a practice of building life and the societies and environments that support that life. It is a practice that is intimately human, with all our flaws and virtues. This approach is embedded in the values we espouse, including: integrity; good sportsmanship; respect; honesty; celebration; cooperation; effort; and excellence.
Previous Week
Next Week