Template:Templates/head

From 2014.igem.org

(Difference between revisions)
Line 19: Line 19:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
 +
                <script type="text/javascript">
 +
                    $(document).ready(function() {
 +
                resizeBg();
 +
                        window.addEventListener('resize', resizeBg, false);
 +
                    });
 +
                   
 +
                    function resizeBg(){
 +
                        var splash = $('#splash-wrapper');
 +
                        splash.height(Math.ceil(splash.width() / 1.6));
 +
                    }
 +
                </script>

Revision as of 18:18, 17 October 2014