|
|
(38 intermediate revisions not shown) |
Line 1: |
Line 1: |
- | <html>
| |
| | | |
- |
| |
- |
| |
- |
| |
- | <!-- 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) -->
| |
- | <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
| |
- | <script>
| |
- | $(function() {
| |
- | // initialize scrollable
| |
- | $(".scrollable").scrollable().navigator();
| |
- | });
| |
- | </script>
| |
- |
| |
- | <!-- Navigation scroll follow -->
| |
- | <script type="text/javascript">
| |
- | var prevScrollPos = -1000;
| |
- | $(window).scroll(function () {
| |
- |
| |
- | <!-- here is added table of content fixing to screen : was all 35 with Title OutsideWhitebox-->
| |
- | var scrollPos = Math.floor($(window).scrollTop());
| |
- |
| |
- | if(Math.abs(prevScrollPos - scrollPos) <= 1){
| |
- | return "nuthin";
| |
- | }
| |
- |
| |
- |
| |
- | var toc_margin_from_top = $(".navigation").height() + 35;
| |
- | var scroll_pos_above_start_of_article = scrollPos < $(".whitebox.article").offset().top - 68;
| |
- | var toc_end_reached_bottom_of_article = scrollPos + toc_margin_from_top + $(".toc").height() > $(".whitebox.article").offset().top + $(".whitebox.article").height() - 35;
| |
- | var toc_margin_from_title = scrollPos < ($(".whitebox.article").offset().top );
| |
- |
| |
- |
| |
- |
| |
- | if(scroll_pos_above_start_of_article){
| |
- | $(".toc").offset({top: $(".whitebox.article").offset().top + 68});
| |
- | } else if(toc_end_reached_bottom_of_article){
| |
- | $(".toc").offset({top: $(".whitebox.article").offset().top + $(".whitebox.article").height() - $(".toc").height() - 35});
| |
- | } else if(toc_margin_from_title){
| |
- | $(".toc").offset({top: $(".whitebox.article").offset().top + 68});
| |
- | } else {
| |
- | $(".toc").offset({top: scrollPos + toc_margin_from_top});
| |
- | }
| |
- | <!-- new attempt to fix menubar (jakob) -->
| |
- |
| |
- | var scroll_pos_above_menubar = scrollPos < 250;
| |
- |
| |
- | if(scroll_pos_above_menubar){
| |
- | $(".navigation").offset({top: 250 });
| |
- | } else {
| |
- | $(".navigation").offset({top: scrollPos});
| |
- | }
| |
- |
| |
- | //if (scroll_pos_below_start_of_article){ //&& (scrollPos < $(document).height() - $(".navigation")[0].height() - 70)) {
| |
- | // $(".toc").addClass("stickBelowNavigation");
| |
- | //} else {
| |
- | // $(".toc").removeClass("stickBelowNavigation");
| |
- | //}
| |
- | });
| |
- | </script>
| |
- |
| |
- | <!-- MathJax (LaTeX for the web) -->
| |
- | <script type="text/x-mathjax-config">
| |
- | MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
| |
- | MathJax.Hub.Config({
| |
- | TeX: {
| |
- | equationNumbers: { autoNumber: "AMS" }
| |
- | }
| |
- | });
| |
- | </script>
| |
- | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
| |
- |
| |
- |
| |
- |
| |
- | </hmtl>
| |