1jQuery(document).ready(function($){ 2 var at_window = $(window); 3 function at_ticker() { 4 var ticker = $('.news-notice-content'), 5 ticker_first = ticker.children(':first'); 6 7 if( ticker_first.length ){ 8 setInterval(function() { 9 if ( !ticker_first.is(":hover") ){ 10 ticker_first.fadeOut(function() { 11 ticker_first.appendTo(ticker); 12 ticker_first = ticker.children(':first'); 13 ticker_first.fadeIn(); 14 }); 15 } 16 },3000); 17 } 18 } 19 20 at_ticker(); 21 22 function homeFullScreen() { 23 24 var homeSection = $('#at-banner-slider'); 25 var windowHeight = at_window.outerHeight(); 26 27 if (homeSection.hasClass('home-fullscreen')) { 28 29 $('.home-fullscreen').css('height', windowHeight); 30 } 31 } 32 //make slider full width 33 homeFullScreen(); 34 35 //window resize 36 at_window.resize(function () { 37 homeFullScreen(); 38 }); 39 40 at_window.on("load", function() { 41 // function goes here 42 }); 43 $('.acme-slick-carausel').show().slick({ 44 autoplay: true, 45 adaptiveHeight: true, 46 autoplaySpeed: 3000, 47 speed: 700, 48 cssEase: 'linear', 49 fade: true, 50 prevArrow: '<i class="prev fa fa-angle-left"></i>', 51 nextArrow: '<i class="next fa fa-angle-right"></i>' 52 }); 53 /*parallax scolling*/ 54 $('a[href*="\\#"]').click(function(event){ 55 var at_offset= $.attr(this, 'href'); 56 var id = at_offset.substring(1, at_offset.length); 57 if ( ! document.getElementById( id ) ) { 58 return; 59 } 60 if( $( at_offset ).offset() ){ 61 $('html, body').animate({ 62 scrollTop: $( at_offset ).offset().top-$('.at-navbar').height() 63 }, 1000); 64 event.preventDefault(); 65 } 66 67 }); 68 /*bootstrap sroolpy*/ 69 $("body").scrollspy({target: ".at-sticky", offset: $('.at-navbar').height()+50 } ); 70 71 /*featured slider*/ 72 $('.acme-gallery').each(function(){ 73 var $masonry_boxes = $(this); 74 var $container = $masonry_boxes.find('.fullwidth-row'); 75 $container.imagesLoaded( function(){ 76 $masonry_boxes.fadeIn( 'slow' ); 77 $container.masonry({ 78 itemSelector : '.at-gallery-item' 79 }); 80 }); 81 /*widget*/ 82 $masonry_boxes.find('.image-gallery-widget').magnificPopup({ 83 type: 'image', 84 gallery: { 85 enabled: true 86 } 87 88 }); 89 $masonry_boxes.find('.single-image-widget').magnificPopup({ 90 type: 'image' 91 }); 92 }); 93 94 /*widget slider*/ 95 $('.acme-widget-carausel').show().slick({ 96 autoplay: true, 97 autoplaySpeed: 3000, 98 speed: 700, 99 cssEase: 'linear', 100 fade: true, 101 prevArrow: '<i class="prev fa fa-angle-left"></i>', 102 nextArrow: '<i class="next fa fa-angle-right"></i>' 103 }); 104 105 function stickyMenu() { 106 107 var scrollTop = at_window.scrollTop(); 108 if ( scrollTop > 250 ) { 109 $('.medical-circle-sticky').addClass('at-sticky'); 110 $('.sm-up-container').show(); 111 } 112 else { 113 $('.medical-circle-sticky').removeClass('at-sticky'); 114 $('.sm-up-container').hide(); 115 } 116 } 117 //What happen on window scroll 118 stickyMenu(); 119 at_window.on("scroll", function (e) { 120 setTimeout(function () { 121 stickyMenu(); 122 }, 300) 123 }); 124 125 /*department tab*/ 126 function department_tab() { 127 // Runs when the image button is clicked. 128 jQuery('body').on('click','.department-title a', function(e){ 129 var $this = $(this), 130 department_wrap = $this.closest('.at-department'), 131 department_tab_id = $this.data('id'), 132 department_title = department_wrap.find('.department-title'), 133 department_content_wrap = department_wrap.find('.department-item-content'); 134 135 department_title.removeClass('active'); 136 $this.parent().addClass('active'); 137 department_content_wrap.removeClass('active'); 138 139 department_content_wrap.each(function () { 140 if( $(this).data('id') === department_tab_id ){ 141 $(this).addClass('active') 142 } 143 }); 144 145 e.preventDefault(); 146 }); 147 } 148 function accordion() { 149 // Runs when the image button is clicked. 150 jQuery('body').on('click','.accordion-title', function(e){
151 var $this = $(this), 152 accordion_content = $this.closest('.accordion-content'), 153 accordion_item = $this.closest('.accordion-item'), 154 accordion_details = accordion_item.find('.accordion-details'), 155 accordion_all_items = accordion_content.find('.accordion-item'), 156 accordion_icon = accordion_content.find('.accordion-icon'); 157 158 accordion_icon.each(function () { 159 $(this).addClass('fa-angle-down'); 160 $(this).removeClass('fa-angle-up'); 161 }); 162 accordion_all_items.each(function () { 163 $(this).find('.accordion-details').slideUp(); 164 }); 165 166 if( accordion_details.is(":visible")){ 167 accordion_details.slideUp(); 168 $this.find('.accordion-icon').addClass('fa-angle-down'); 169 $this.find('.accordion-icon').removeClass('fa-angle-up'); 170 } 171 else{ 172 accordion_details.slideDown(); 173 $this.find('.accordion-icon').addClass('fa-angle-up'); 174 $this.find('.accordion-icon').removeClass('fa-angle-down'); 175 } 176 e.preventDefault(); 177 }); 178 } 179 function at_site_origin_grid() { 180 $('.panel-grid').each(function(){ 181 var count = $(this).children('.panel-grid-cell').length; 182 if( count < 1 ){ 183 count = $(this).children('.panel-grid').length; 184 } 185 if( count > 1 ){ 186 $(this).addClass('at-grid-full-width'); 187 } 188 }); 189 } 190 accordion(); 191 department_tab(); 192 at_site_origin_grid(); 193}); 194 195/*animation with wow*/ 196if(typeof WOW !== 'undefined'){ 197 eb_wow = new WOW({ 198 boxClass: 'init-animate' 199 } 200 ); 201 eb_wow.init(); 202}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.