|
|
(2 intermediate revisions by the same user not shown) |
Line 10: |
Line 10: |
| | | |
| <script type="text/javascript" src="https://2015.igem.org/Template:Heidelberg/js/primer?action=raw&ctype=text/javascript"></script> | | <script type="text/javascript" src="https://2015.igem.org/Template:Heidelberg/js/primer?action=raw&ctype=text/javascript"></script> |
− | <script type="text/javascript">
| |
− |
| |
− | $(document).ready(function () {
| |
− | var pos_menu;
| |
− | /*
| |
− | pos_menu = $('.container-fluid > .menu').offset().top;
| |
− | var pos_title = $('.container-fluid > .title').offset().top;
| |
− | $descidold = '';
| |
− | $panelid = '#1001';
| |
− | $(window).scroll(function () {
| |
− | var scroll_top = $(window).scrollTop();
| |
− |
| |
− | if (scroll_top > (pos_title - 42)) {
| |
− | $('.container-fluid > .title').css({ 'position': 'fixed', 'top': '45px', 'margin-left': 'auto' });
| |
− | } else {
| |
− | $('.container-fluid > .title').css({ 'position': 'relative', 'top': '0px' });
| |
− | }
| |
− |
| |
− | if (scroll_top > pos_menu) {
| |
− | $('.container-fluid > .menu').css({ 'position': 'fixed', 'top': '0px', 'margin-left': 'auto' });
| |
− | } else {
| |
− | $('.container-fluid > .menu').css({ 'position': 'relative', 'top': '0px' });
| |
− | }
| |
− | });
| |
− | */
| |
− | });
| |
− |
| |
− | $(function() {
| |
− | $("#notebookpanel").hover(
| |
− | function() {
| |
− | $(this).css("background", "linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7)),url(https://static.igem.org/mediawiki/2015/thumb/a/ad/Heidelberg_media_pictures_notebook_color.png/800px-Heidelberg_media_pictures_notebook_color.png)")
| |
− | },
| |
− | function() {
| |
− | $(this).css("background","linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7)),url(https://static.igem.org/mediawiki/2015/thumb/4/40/Heidelberg_media_pictures_notebook_bw.png/800px-Heidelberg_media_pictures_notebook_bw.png)");
| |
− | });
| |
− | });
| |
− |
| |
− | <!-- Replace text -->
| |
− |
| |
− | function primer(id){
| |
− | showId = id.replace(/xx/g, "").toUpperCase();
| |
− | var primername = '$' + id + '_name';
| |
− | var primerseq = '$' + id + '_seq';
| |
− | try{
| |
− | var toolcontent = '<strong>' + eval(primername) + '</strong><br/>' + eval(primerseq);
| |
− | return '<span class="tooltipster" title="' + toolcontent + '">' + showId + '</span>';
| |
− | } catch(err) {;}
| |
− | };
| |
− |
| |
− | $(function() {
| |
− | $(".dropdown").hover( function() {
| |
− | $(this).dropdown();
| |
− | });
| |
− | });
| |
− |
| |
− | $(function() {
| |
− | $("body *").replaceText( /xx.....xx/gi, primer);
| |
− | $('.tooltipster').tooltipster({
| |
− | contentAsHTML: true
| |
− | });
| |
− | });
| |
− |
| |
− | <!-- Replace text ende -->
| |
− |
| |
− | // Used to expand and collapse logbook entries
| |
− | $(function() {
| |
− | $('.notebooktext').hide();
| |
− | $('.notebookheading').on('click', function(event) {
| |
− | $(this).siblings().filter('.notebooktext').slideToggle();
| |
− | event.preventDefault();
| |
− | });
| |
− | });
| |
− |
| |
− | MathJax.Hub.Config({
| |
− | tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
| |
− | jax: ["input/TeX","output/SVG"]
| |
− | });
| |
− |
| |
− |
| |
− | </script>
| |
| <script type="text/javascript" src="https://2015.igem.org/Template:Heidelberg/js/bootstrapmin?action=raw&ctype=text/javascript"></script> | | <script type="text/javascript" src="https://2015.igem.org/Template:Heidelberg/js/bootstrapmin?action=raw&ctype=text/javascript"></script> |
| <script type="text/javascript" src="https://2015.igem.org/Template:Heidelberg/js/jasnybootstrapmin?action=raw&ctype=text/javascript"></script> | | <script type="text/javascript" src="https://2015.igem.org/Template:Heidelberg/js/jasnybootstrapmin?action=raw&ctype=text/javascript"></script> |