Team:DTU-Denmark/Templates/Standard page begin

From 2011.igem.org

(Difference between revisions)
 
(99 intermediate revisions not shown)
Line 5: Line 5:
     <link rel="stylesheet" href="https://2011.igem.org/Team:DTU-Denmark/stylesheet?action=raw&ctype=text/css" type="text/css" />
     <link rel="stylesheet" href="https://2011.igem.org/Team:DTU-Denmark/stylesheet?action=raw&ctype=text/css" type="text/css" />
-
    <link rel="stylesheet" href="https://2011.igem.org/Team:DTU-Denmark/stylesheet-graybg?action=raw&ctype=text/css" type="text/css" />
 
<!-- JAVASCRIPTS -->
<!-- JAVASCRIPTS -->
<!-- *********** -->
<!-- *********** -->
 +
 +
    <!-- ie9.js (fixes all Internet Explorer browsers older than ie9) -->
 +
    <!--[if lt IE 9]>
 +
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
 +
    <![endif]-->
     <!-- jQuery Tools (slider) -->
     <!-- jQuery Tools (slider) -->
-
     <script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script>
+
     <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
 +
    <script>
 +
        $(function() {
 +
    // initialize scrollable
 +
    $(".scrollable").scrollable().navigator();
 +
        });
 +
    </script>
-
     <!-- jQuery scroll follow (scroll navigation) -->
+
     <!-- Navigation scroll follow -->
-
     <script type="text/javascript" src="https://2011.igem.org/Team:DTU-Denmark/jquery.scrollfollow.js?action=raw&ctype=text/javascript"></script>
+
     <script type="text/javascript">
 +
        $(window).scroll(function () {
 +
            var scrollPos = $(window).scrollTop();
 +
            if (scrollPos > 110) {
 +
                $(".navigation").addClass("stickToTop");
 +
            } else {
 +
                $(".navigation").removeClass("stickToTop");
 +
            }
 +
            if (scrollPos > 180) {
 +
                $(".toc").addClass("stickBelowNavigation");
 +
            } else {
 +
                $(".toc").removeClass("stickBelowNavigation");
 +
            }
 +
        });
 +
    </script>
-
     <!-- MathJax (LaTeX kode for the web) -->
+
     <!-- MathJax (LaTeX for the web) -->
     <script type="text/x-mathjax-config">
     <script type="text/x-mathjax-config">
         MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
         MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
 +
        MathJax.Hub.Config({
 +
            TeX: {
 +
                equationNumbers: {  autoNumber: "AMS"  }
 +
            }
 +
        });
     </script>
     </script>
     <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
     <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
Line 24: Line 53:
     <!-- Sexy Drop Down (drop down navigation) -->
     <!-- Sexy Drop Down (drop down navigation) -->
     <script type="text/javascript">
     <script type="text/javascript">
-
         $(document).ready(function(){
+
         $(document).ready(
-
            $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)
+
            function(){
-
            $("ul.topnav li span").click(function() { //When trigger is clicked...
+
                $("ul.subnav").parent().find("> a").append("<span> </span>");
-
                //Following events are applied to the subnav itself (moving subnav up and down)
+
                $("ul.topnav li").hover(
-
                $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
+
                    function() {
-
                $(this).parent().hover(function() {
+
                        // Hover over
-
                }, function(){
+
                        $(this).parent().find("ul.subnav").hide();
-
                    $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
+
                        $(this).find("ul.subnav").show();
-
                });
+
                        // Hover out
-
                //Following events are applied to the trigger (Hover events for the trigger)
+
                        $(this).hover(
-
                }).hover(function() {
+
                            function() {
-
                    $(this).addClass("subhover"); //On hover over, add class "subhover"
+
                            },
-
                }, function(){  //On Hover Out
+
                            function(){
-
                    $(this).removeClass("subhover"); //On hover out, remove class "subhover"
+
                                $(this).find("ul.subnav").hide();
-
            });
+
                            }
-
        });
+
                        );
-
    </script>
+
                    },
-
    <script type="text/javascript">
+
                    function(){
-
        $( document ).ready( function ()
+
                        $(this).find("ul.subnav").hide();
-
            {
+
                    }
-
                 $( '#navigation' ).scrollFollow();
+
 
 +
                 );
             }
             }
         );
         );
     </script>
     </script>
 +
 +
    <!-- iGem wiki hacks -->
 +
        <!-- Remove all empty <p> tags -->
 +
        <script type="text/javascript">
 +
            $(document).ready(function() {
 +
                $("p").filter( function() {
 +
                    return $.trim($(this).html()) == '';
 +
                }).remove();
 +
            });
 +
        </script>
 +
 +
        <!-- Remove "team" from the menubar -->
 +
        <script type="text/javascript">
 +
            $(document).ready(function() {
 +
                $("menubar > ul > li:last-child").remove();
 +
            });
 +
        </script>
 +
 +
        <!-- Empty heading? - Then remove it.. -->
 +
        <script type="text/javascript">
 +
            $(document).ready(function() {
 +
                if ("" == "</html>{{{1}}}<html>") {
 +
                    $("#heading").remove();
 +
                }
 +
            });
 +
        </script>
 +
<!-- HTML CONTENT -->
<!-- HTML CONTENT -->
Line 62: Line 119:
     <!-- Page heading -->
     <!-- Page heading -->
-
    <script type="text/x-mathjax-config">
 
-
        if ("NO_HEADING" == "NOHEADING") {
 
-
            document.write("TIS TIS TIS!");
 
-
        }
 
-
    </script>
 
     <div id="heading">
     <div id="heading">
         <div class="centering">
         <div class="centering">
 +
            <h1>
</html>
</html>
-
={{{1}}}=
+
{{{1}}}
<html>
<html>
 +
            </h1>
         </div>
         </div>
     </div>
     </div>
Line 78: Line 132:
     <div id="innercontent">
     <div id="innercontent">
         <div class="centering">
         <div class="centering">
-
 
+
            <div class="whitebox article">
</html>
</html>

Latest revision as of 22:32, 21 September 2011

{{{1}}}