bhouse.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. $(".responsive").slick({
  2. dots: true,
  3. slidesToShow: 1,
  4. slidesToScroll: 1,
  5. autoplay: true,
  6. autoplaySpeed: 3000,
  7. });
  8. // $(".style_house_sec02_slide_list").slick({
  9. // dots: false,
  10. // slidesToShow: 5,
  11. // slidesToScroll: 3,
  12. // infinite: true,
  13. // // centerMode: true,
  14. // arrows: false,
  15. // prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left" style="font-size: 32px;color: #CC7DB7;transform: translateY(-10px);"></i></button>',
  16. // nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right" style="font-size: 32px;color: #CC7DB7;transform: translateY(-10px);"></i></button>'
  17. // });
  18. // function img_size() {
  19. // $('.slide_img').each(function () { //jquery.each()循環讀取所有圖片
  20. // var height = $(this).height();
  21. // var width = $(this).width();
  22. // console.log(height)
  23. // if (height > 200) {
  24. // $(this).css({
  25. // 'width': 100 + 'px',
  26. // "margin": 'auto',
  27. // });
  28. // }
  29. // else {
  30. // $(this).css({
  31. // "margin-top": '30px',
  32. // });
  33. // }
  34. // });
  35. // }
  36. // img_size();
  37. $(document).on("click", ".article__readMore", function (event) {
  38. $('.bhouseweb_loc_sec02').css('height', 'auto');
  39. $('.article__readMore').hide();
  40. });
  41. $(document).on("click", ".bhouseweb_loc_type>a", function (event) {
  42. $(this).siblings().removeClass('select');
  43. $(this).toggleClass("select");
  44. });
  45. $(".bt_slogan_portfolio").click(function () {
  46. $(".bt_slogan_portfolio").fadeOut();
  47. });
  48. $(".bt_slogan").click(function () {
  49. $(".bt_slogan_portfolio").fadeIn();
  50. });
  51. // Navbar Icon
  52. function changeIcon(e) {
  53. const item = document.querySelector('[data-toggle-class]');
  54. item.className === "close-btn" ? item.className = "navbar-toggler-icon" : item.className = "close-btn";
  55. }