123456789101112131415161718192021222324252627282930313233 |
- // * @date 2017
- // * @author caiaolin
- // * @version
- //自动高度
- function autoFlashHeight(){
- $(".auto-height-1").height($(window).height()-115);
- $(".auto-height-2").height($(window).height()-154);
- };
- $(window).resize(autoFlashHeight);
- $(document).ready(function() {
- // menu
- $("#menu > li > a").click(function() {
- var self = $(this);
- var subMenu = $(this).siblings('ul.sub-menu');
- if(subMenu.length > 0) {
- if(subMenu.is(":visible")) {
- self.find('.menu-arrow').removeClass('glyphicon-menu-down').addClass('glyphicon-menu-right');
- subMenu.slideUp('fast');
- self.parent().removeClass('active');
- }else{
- self.parent().addClass('active');
- self.find('.menu-arrow').removeClass('glyphicon-menu-right').addClass('glyphicon-menu-down');
- subMenu.slideDown('fast');
- }
- }
- });
- /*工具提示*/
- $(function () {
- $('[data-toggle="tooltip"]').tooltip()
- });
- });
|