Allen850413 (Talk | contribs) |
|||
Line 43: | Line 43: | ||
}); | }); | ||
}); | }); | ||
− | + | // 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); | ||
+ | |||
</script> | </script> |
Revision as of 20:05, 14 October 2018
Result
In our project, we have built a production system for two enzymes: peroxidase and laccase. With the high expression of P. pastoris, we have successfully produced these enzymes.
In engineering, we have completed the production line. For the needs, our choice of instruments and the overall process are in line with corporate standards.