Difference between revisions of "Template:2015Bottom"

Line 94: Line 94:
  
 
</div>
 
</div>
 +
 +
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
 +
 +
// Places first heading on top part of the page, inside a h1(#placeHeading) in #pageTitle
 +
$('.firstHeading').prependTo('#placeHeading');
 +
 +
// Attaches a hover script to every item with the class 'pop_why'
 +
$('.pop_why').hover(
 +
        function() {
 +
                      // Does the pop_why need to be installed?
 +
                if ( ! $(this).children('.pop_why_div').length ) {
 +
                        $(this).append("<DIV class='pop_why_div' style='display:block'>Loading...</div>");
 +
                              $(this).find('.pop_why_div').load( $(this).attr("data-poptitle") + '?action=raw' );
 +
                }
 +
                var foo = $(this).find('.pop_why_div').show();
 +
        } ,
 +
        function() {
 +
                $(this).find('.pop_why_div').clearQueue();
 +
        $(this).find('.pop_why_div').hide();
 +
                $(this).find('.pop_why_div').clearQueue();
 +
                $(this).find('.pop_why_div').hide();
 +
}
 +
        );
 +
 +
});
 +
</script>
 +
 +
  
 
<!-- Click binding for "click to expand" boxes (see Code Documentation for details) -->
 
<!-- Click binding for "click to expand" boxes (see Code Documentation for details) -->
Line 112: Line 143:
 
});
 
});
 
</script>
 
</script>
 +
 +
  
  
 
</html>
 
</html>

Revision as of 19:57, 24 April 2015