// JavaScript Document $('.catelist:nth-child(1) .listtxtNormal').prependTo('#side_menu>ul>li:nth-child(1)>a'); $('.catelist:nth-child(2) .listtxtNormal').prependTo('#side_menu>ul>li:nth-child(2)>a'); $('.catelist:nth-child(3) .listtxtNormal').prependTo('#side_menu>ul>li:nth-child(3)>a'); $("#content .breadcrumb").prependTo( "#content" ); $( "#content table" ).wrap( "
" ); $( "#content table" ).addClass( "table" ); $('#cm2').after($('#custnav2>ul').html()); $(document).ready(function() { $('#left_menu .sb-submenu .dropdown-submenu >a').removeAttr("href").removeAttr("onclick"); }); $('.multiple-items').slick({ infinite: true, dots: true, arrows : true, slidesToShow: 3, slidesToScroll: 3, autoplay:true, responsive: [ { breakpoint: 768, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { dots: false, slidesToShow: 1, slidesToScroll: 1 } } ] }); $('a[href^="#top"]').on('click', function(event) { event.preventDefault(); $('html, body').animate({ scrollTop: 0 }, 1000); }); // Setup thumbnails example // Instantiate EasyZoom instances var $easyzoom = $('.easyzoom').easyZoom(); // Setup thumbnails example var api1 = $easyzoom.filter('.easyzoom--with-thumbnails').data('easyZoom'); // $('.thumbnails').on('click', 'a', function(e) { //if for onclcik $('.thumbnails a').hover( function (e) { //if for onmouseover var $this = $(this); e.preventDefault(); // Use EasyZoom's `swap` method api1.swap($this.data('standard'), $this.attr('href')); }); // Setup toggles example var api2 = $easyzoom.filter('.easyzoom--with-toggle').data('easyZoom'); $('.toggle').on('click', function() { var $this = $(this); if ($this.data("active") === true) { $this.text("Switch on").data("active", false); api2.teardown(); } else { $this.text("Switch off").data("active", true); api2._init(); } }); // 表單 recaptchaResponse 搬到 Footer if($('#recaptchaResponse').length > 0) { $('.footer-reCAPTCHA').append($('.contact-recaptchDesc')); }