Line 63: | Line 63: | ||
}); | }); | ||
− | + | // The function actually applying the offset | |
− | + | function offsetAnchor() { | |
+ | if (location.hash.length !== 0) { | ||
+ | window.scrollTo(window.scrollX, window.scrollY - 90); | ||
+ | } | ||
+ | } | ||
− | + | // Captures click events of all <a> elements with href starting with # | |
− | + | $(document).on('click', 'a[href^="#"]', function(event) { | |
+ | // Click events are captured before hashchanges. Timeout | ||
+ | // causes offsetAnchor to be called after the page jump. | ||
+ | window.setTimeout(function() { | ||
+ | offsetAnchor(); | ||
+ | }, 0); | ||
+ | }); | ||
− | + | // Set the offset when entering page with hash present in the url | |
− | + | window.setTimeout(offsetAnchor, 0); | |
− | + | $(document).scroll(function () { // remove "$" | |
− | + | var y = $(this).scrollTop(); | |
− | + | if (y > 300) { | |
− | + | $('.indicator').fadeIn(); | |
− | + | } | |
− | }) | + | else { |
+ | $('.indicator').fadeOut(); | ||
+ | } | ||
+ | }); | ||
</script> | </script> |
Revision as of 21:10, 14 October 2018
HP Overview
The actions we took are making our project go well. In order to achieve the goal, we should try for more opportunities as we can.
Followings are actions and events we took:
Education
We prepared a lesson about synthetic biology and taught senior high school students. By the feedback from these students, we’re sure that they began to understand synthetic biology. In addition, we also promote our competition to these high school students. We hope that they can be more aware of synthetic biology through the lesson.
Fundraising
We held a fundraising explanation session on July 6th and invited companies related to our project to attend. By this explanation session, we had more sources of funds and technical consulting. We will use these resources to make our project and model be more complete.
Public
Through the questionnaire we recovered, we found something interest is that most of people did not know the distinction amount paper container recycling, paper recycling and general resource recycling. As the result, we were more confident to do our project, which would make our lives better. Here you can see some investigation of our project.