global.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. $(".autoHeightL1").height($(window).height()-80-16);
  15. $(".autoHeightL2").height($(window).height()-80-198);
  16. $(".autoHeightL3").height($(window).height()-80-112);
  17. $(".autoHeightL4").height($(window).height()-80-119);
  18. // console.log($(window).height());
  19. console.log($(document).height());
  20. };
  21. $(window).resize(autoFlashHeight);
  22. $(document).ready(function(){
  23. $('.open-left').click(function(){//点击a标签
  24. if($('.left-media-body').is(':hidden')){//如果当前隐藏
  25. $(".software-left").animate({width:"27%"},500);
  26. $(".local-install").animate({left:"27%",width:"73%"},500);
  27. $(".left-media-body").fadeIn(1000);
  28. $(".software-left-bottomV1").show();
  29. $(".software-left-bottomV2").hide();
  30. }else{//否则
  31. $(".software-left").animate({width:"7%"},500);
  32. $(".local-install").animate({left:"7%",width:"93%"},500);
  33. $(".left-media-body").fadeOut(100);
  34. $(".software-left-bottomV1").hide();
  35. $(".software-left-bottomV2").show();
  36. }
  37. })
  38. });