Line 321: | Line 321: | ||
function isElementVisible(el) { | function isElementVisible(el) { | ||
− | + | //special bonus for those using jQuery | |
− | + | if (typeof jQuery === "function" && el instanceof jQuery) { | |
− | + | el = el[0]; | |
− | + | } | |
− | + | var rect = el.getBoundingClientRect(); | |
− | + | ||
− | + | ||
− | + | ||
− | + | return ( | |
− | + | rect.top >= 0 && | |
− | + | rect.left >= 0 && | |
− | + | rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */ | |
− | + | rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 21:04, 13 June 2019
![](https://static.igem.org/mediawiki/2019/d/de/T--Humboldt_Berlin--logo_white.png)
iGEM HU Berlin:
The worldwide plastic pollution of our environment poses a growing threat to humankind. We, as a team of young aspiring scientists, want to combat this issue. By modifying the freshwater algae Chlamydomonas reinhardtii we are trying to develop a new, evironment-friendly way of recycling the most common plastic, polyethylene therephtalate (PET). Brace yourself, plastic pollution! We are coming for you!![Team image](https://static.igem.org/mediawiki/2019/5/54/T--Humboldt_Berlin--Landing-Team.jpg)
![plastic bottle](https://static.igem.org/mediawiki/2019/4/45/T--Humboldt_Berlin--Landing-Project.jpg)
![methods](https://static.igem.org/mediawiki/2019/4/40/T--Humboldt_Berlin--Landing-Methods.jpg)
![safety](https://static.igem.org/mediawiki/2019/3/3b/T--Humboldt_Berlin--Landing-Safety.jpg)
![human practice](https://static.igem.org/mediawiki/2019/7/79/T--Humboldt_Berlin--Landing-Human_Practice.jpg)
Our Project is sponsored by
![Qiagen logo](https://static.igem.org/mediawiki/2019/c/c0/T--Humboldt_Berlin--Sponsor-Qiagen.jpg)
![Nord Finanz logo](https://static.igem.org/mediawiki/2019/5/5c/T--Humboldt_Berlin--Sponsor-Nordfinanz.jpg)
![Roth logo](https://static.igem.org/mediawiki/2019/5/5b/T--Humboldt_Berlin--Sponsor-Roth.jpg)
![Eurofins genomics logo](https://static.igem.org/mediawiki/2019/e/e6/T--Humboldt_Berlin--Sponsor-Eurofins.jpg)