bhouse.js 1.8 KB

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