global.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. function waveloop1(){
  2. $("#banner_bolang_bg_1").css({"left":"-236px"}).animate({"left":"-1233px"},25000,'linear',waveloop1);
  3. }
  4. function waveloop2(){
  5. $("#banner_bolang_bg_2").css({"left":"-25px"}).animate({"left":"-1009px"},60000,'linear',waveloop2);
  6. }
  7. waveloop1();
  8. waveloop2();
  9. $(function () {
  10. $('[data-toggle="popover"]').popover();
  11. $('[data-toggle="tooltip"]').tooltip();
  12. });
  13. function autoFlashHeight(){
  14. var header = $(".header").height();
  15. $(".autoHeightL1").height($(window).height()-header-25);
  16. $(".autoHeightL2").height($(window).height()-header-231);
  17. $(".autoHeightL3").height($(window).height()-header-125);
  18. $(".autoHeightL4").height($(window).height()-header-114);
  19. // console.log($(window).height());
  20. console.log($(document).height());
  21. };
  22. $(window).resize(autoFlashHeight);
  23. $(document).ready(function(){
  24. $('.open-left').click(function(){//点击a标签
  25. if($('.left-media-body').is(':hidden')){//如果当前隐藏
  26. $(".software-left").animate({width:"27%"},500);
  27. $(".local-install").animate({left:"27%",width:"73%"},500);
  28. $(".left-media-body").fadeIn(1000);
  29. $(".software-left-bottomV1").show();
  30. $(".software-left-bottomV2").hide();
  31. }else{//否则
  32. $(".software-left").animate({width:"7%"},500);
  33. $(".local-install").animate({left:"7%",width:"93%"},500);
  34. $(".left-media-body").fadeOut(100);
  35. $(".software-left-bottomV1").hide();
  36. $(".software-left-bottomV2").show();
  37. }
  38. })
  39. });