global.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. var softwareDetailTop = $(".software-detail-top").height();
  16. $(".autoHeightL1").height($(window).height()-80);
  17. $(".autoHeightL2").height($(window).height()-80-198);
  18. $(".autoHeightL3").height($(window).height()-80-softwareDetailTop);
  19. $(".autoHeightL4").height($(window).height()-80-119);
  20. $(".autoHeightL5").height($(window).height()-80-softwareDetailTop-30);
  21. $(".autoHeightL6").height($(window).height()-80-softwareDetailTop-125);
  22. // console.log($(window).height());
  23. console.log($(document).height());
  24. console.log($(".autoHeightL1").height());
  25. };
  26. $(window).resize(autoFlashHeight);
  27. $(document).ready(function(){
  28. $('.open-left').click(function(){//点击a标签
  29. if($('.left-media-body').is(':hidden')){//如果当前隐藏
  30. $(".software-left").animate({width:"27%"},500);
  31. $(".local-install").animate({left:"27%",width:"73%"},500);
  32. $(".left-media-body").fadeIn(1000);
  33. $(".software-left-bottomV1").show();
  34. $(".software-left-bottomV2").hide();
  35. }else{//否则
  36. $(".software-left").animate({width:"7%"},500);
  37. $(".local-install").animate({left:"7%",width:"93%"},500);
  38. $(".left-media-body").fadeOut(100);
  39. $(".software-left-bottomV1").hide();
  40. $(".software-left-bottomV2").show();
  41. }
  42. });
  43. $(".open-new").click(function(){
  44. $(this).next().slideToggle("slow");
  45. });
  46. });
  47. $("body").on('click','[data-stopPropagation]',function (e) {
  48. e.stopPropagation();
  49. });