1jQuery(document).ready(function(){ 2 3 // the same height for all blocks / blog module, grid style 4 var maxHeightBlock = 0; 5 jQuery('.et_pb_blog_grid .et_pb_post').each(function() {maxHeightBlock = Math.max(maxHeightBlock, jQuery(this).height()); }).height(maxHeightBlock); 6 7}); 8 9 10/* ========================================================================== 11 setup_collapsible_submenus 12 ========================================================================== */ 13 14 15 16jQuery(window).load(function () { 17 setTimeout(function () { 18 setup_collapsible_submenus(); 19 }, 1199); 20}); 21 22 23function setup_collapsible_submenus() { 24 var FirstLevel = jQuery('.et_mobile_menu .first-level > a'); 25 var secondLevel = jQuery('.et_mobile_menu .second-level > a'); 26 FirstLevel.off('click').click(function () { 27 jQuery(this).attr('href', '#') 28 29 if (jQuery(this).attr('class') == 'icon-switch') { 30 jQuery(this).parent().children().children().removeClass('reveal-items') 31 jQuery(this).removeClass('icon-switch') 32 } else { 33 if (FirstLevel.parent().children().children().hasClass('reveal-items')) { 34 FirstLevel.parent().children().children().removeClass('reveal-items') 35 FirstLevel.removeClass('icon-switch') 36 } 37 38 if (jQuery(this).parent().children().children().hasClass('reveal-items')) { 39 jQuery(this).parent().children().children().removeClass('reveal-items') 40 jQuery(this).removeClass('icon-switch') 41 } else { 42 jQuery(this).parent().children().children().addClass('reveal-items') 43 jQuery(this).addClass('icon-switch') 44 } 45 } 46 return false 47 }) 48 49 50 secondLevel.off('click').click(function () { 51 52 if(jQuery(this).next('ul').attr('class') != undefined){ 53 jQuery(this).attr('href', '#'); 54 if (jQuery(this).attr('class') == 'icon-switch') { 55 jQuery(this).parent().children().children().removeClass('reveal-items') 56 jQuery(this).removeClass('icon-switch') 57 } else { 58 if (secondLevel.parent().children().children().hasClass('reveal-items')) { 59 secondLevel.parent().children().children().removeClass('reveal-items') 60 secondLevel.removeClass('icon-switch') 61 } 62 63 if (jQuery(this).parent().children().children().hasClass('reveal-items')) { 64 jQuery(this).parent().children().children().removeClass('reveal-items') 65 jQuery(this).removeClass('icon-switch') 66 } else { 67 jQuery(this).parent().children().children().addClass('reveal-items') 68 jQuery(this).addClass('icon-switch') 69 } 70 } 71 return false 72 } 73 }) 74} 75 76/* ========================================================================== 77 slick 78 ========================================================================== */ 79jQuery('.post_slider_wraper').slick({ 80 slidesToShow: 1, 81 slidesToScroll: 1, 82 centerMode: true, 83 centerPadding: '0px', 84 autoplay: true, 85 autoplaySpeed: 2000, 86 speed: 2000, 87 arrows: true, 88 dots: false, 89 pauseOnHover: true, 90 responsive: [ 91 { 92 breakpoint: 767, 93 settings: { 94 arrows:false, 95 dots: true 96 } 97 } 98 99 ] 100 101 }); 102 103 104jQuery('.project_slider_wraper').slick({ 105 slidesToShow: 2, 106 slidesToScroll: 1, 107 centerMode: true, 108 centerPadding: '0px', 109 autoplay: false, 110 autoplaySpeed: 700, 111 arrows: true, 112 dots: false, 113 pauseOnHover: true, 114 responsive: [ 115 { 116 breakpoint: 575, 117 settings: { 118 slidesToShow: 1, 119 } 120 } 121 122 ] 123 }); 124 125jQuery('.post_slider_wraper').on('beforeChange', function(event, slick, currentSlide, nextSlide){ 126 var current = jQuery(slick.$slides[currentSlide]); 127 current.html(current.html()); 128}); 129 130jQuery(document).ready(function(){ 131 jQuery('.et_pb_posts article').wrapInner(jQuery('<div class="et_pb_post_text_container">')); 132 jQuery('div.et_pb_post_text_container').each(function(){ 133 jQuery(this).children().first().prependTo(jQuery(this).closest(".et_pb_posts article")); 134 }); 135 jQuery('.et_pb_posts article a.entry-featured-image-url').wrap("<div class='et_pb_post_image_container'><div class='et_pb_post_image_child'></div></div>"); 136 137 138 jQuery('banner_video_section').find(".hover_video").find('video').hide(); 139 140 141 142 143 jQuery('.post_slider_slider .et_pb_slides .et_pb_slider_container_inner .et_pb_slide_description h2 a').each(function(e){ 144 jQuery(this).contents().unwrap(); 145 }); 146 147 148 149 150 151 152}); 153 154jQuery(window).load(function () { 155 156 if (jQuery('body').find('.hover_video').length == 1) { 157 158 159 160 161 setTimeout(function () { 162 var bannerVideo = jQuery('.banner_video_section').find('video').get(0); 163 console.log(bannerVideo); 164 165 bannerVideo.addEventListener('ended', function () { 166 jQuery('.banner_video_section').find('video').hide(); 167 jQuery(".hover_video").show(); 168 jQuery(".hover_video").get(0).play(); 169 }, false); 170 171 }, 500); 172 173 jQuery('.banner_video_section .video_play_text_btn').on('click', function (e) { 174 if (jQuery(this).parents('.banner_video_section').find("video").get(0).paused) { 175 jQuery(this).parents('.banner_video_section').find("video").get(0).play(); 176 jQuery(this).parents('.banner_video_section').removeClass('video_active'); 177 jQuery(this).parents('.banner_video_section').find("video").attr('controls', ''); 178 jQuery(this).parents('.banner_video_section').find("video").show(); 179 jQuery(this).parents('.banner_video_section').find(".hover_video").find('video').hide(); 180 jQuery(this).parents('.banner_video_section').find(".hover_video").find('video').get(0).pause(); 181 } else { 182 jQuery(this).parents('.banner_video_section').find("video").get(0).pause(); 183 jQuery(this).parents('.banner_video_section').addClass('video_active'); 184 //jQuery(".mouse_icon").fadeIn(); 185 //jQuery(this).parents('.banner_video_section').find("video").removeAttr('controls'); 186 jQuery(this).parents('.banner_video_section').find(".hover_video").find('video').get(0).play(); 187 jQuery(this).parents('.banner_video_section').find(".hover_video").find('video').show(); 188 } 189 190 191 }); 192 193 } 194 195}); 196 197 198 199jQuery('.testimonial-slider-column').slick({ 200 slidesToShow: 1, 201 slidesToScroll: 1, 202 centerMode: true, 203 centerPadding: '0px', 204 autoplay: true, 205 autoplaySpeed: 2000,
206 arrows: false, 207 dots: true, 208 pauseOnHover: true, 209 210 }); 211 212 213 214 215 216 217 218 219
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.