Difference between revisions of "Team:CCU Taiwan/Human Practices"

Line 63: Line 63:
 
});
 
});
  
$(window).scroll(function() {
+
// The function actually applying the offset
    var wintop = $(window).scrollTop(), docheight =
+
function offsetAnchor() {
 +
  if (location.hash.length !== 0) {
 +
    window.scrollTo(window.scrollX, window.scrollY - 90);
 +
  }
 +
}
  
    $(document).height(), winheight = $(window).height();
+
// Captures click events of all <a> elements with href starting with #
    var scrolled = (wintop/(docheight-winheight))*100;
+
$(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);
 +
});
  
    $('.scroll-line').css('height', (scrolled*0.5 + '%'));
+
// Set the offset when entering page with hash present in the url
});
+
window.setTimeout(offsetAnchor, 0);
 
 
var s = skrollr.init({
+
$(document).scroll(function () { // remove "$"
render: function(data) {
+
    var y = $(this).scrollTop();       
  //Log the current scroll position.
+
    if (y > 300) {
  $('#info').text(data.curTop);
+
        $('.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.