You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
806 B

  1. $(window).load(function () {
  2. resizes()
  3. setTimeout(function () {
  4. resizes()
  5. }, 0)
  6. var inSec3Swiper = new Swiper('.inSec3Swiper', {
  7. spaceBetween: 0,
  8. paginationClickable: true,
  9. autoplayDisableOnInteraction: false,
  10. speed: 1000,
  11. slidesPerView: 1.5,
  12. slidesPerGroup: 1
  13. })
  14. $('.inSec3Swiper').on('click', '.inSec3ListTxt', function () {
  15. $(this).parents('.inSec3Swiper').find('.inSec3ListTxt').removeClass('active');
  16. $(this).addClass('active')
  17. })
  18. }).resize(function () {
  19. resizes()
  20. })
  21. function resizes() {
  22. var inSec1H = $('.index_sec1').outerHeight();
  23. var h = inSec1H - $('.inSec2Col9').height() - 22 - $('.index_sec2 .inSec1T').outerHeight();
  24. $('.inSec2Row').eq(1).find('.inSec2List').height(h)
  25. }