global.js 1.7 KB

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