1(function ($) { 2 3 var jsblockObject = { 4 5 slider_1: function testimonial_1() { 6 7 var $matches = $(".rt-testimonial"); 8 $matches.each(function () { 9 var slider = $(this).find('.swiper-container'); 10 var settings = $(this).data('histudy'); 11 var prev = $(this).find('.arrow-indicator-left'); 12 var next = $(this).find('.arrow-indicator-right'); 13 14 var options = { 15 16 slidesPerView: settings['desktop_items'], 17 spaceBetween: 10, 18 loop: true, 19 loopFillGroupWithBlank: true, 20 centeredSlides: true, 21 autoplay: { 22 delay: settings['speed'], 23 disableOnInteraction: false, 24 }, 25 navigation: { 26 nextEl: next, 27 prevEl: prev, 28 }, 29 breakpoints: { 30 '0': { 31 slidesPerView: 1, 32 spaceBetween: 10, 33 centeredSlides: false, 34 }, 35 '576': { 36 slidesPerView: settings['tablet_items'], 37 spaceBetween: 10, 38 centeredSlides: false, 39 }, 40 '993': { 41 slidesPerView: settings['desktop_items'], 42 spaceBetween: 30, 43 centeredSlides: false, 44 }, 45 }, 46 }; 47 48 if ('undefined' === typeof Swiper) { 49 const asyncSwiper = elementorFrontend.utils.swiper; 50 new asyncSwiper(slider, options).then((newSwiperInstance) => { 51 var swiper = newSwiperInstance; 52 }); 53 54 } else { 55 var swiper = new Swiper(slider, options); 56 } 57 58 }); 59 60 }, 61 62 testimonial_slider: function xyz() { 63 $('.swiper_testimonial_common').each(function () { 64 65 var settings = $(this).data('histudy'); 66 var prev_next = $(this).find('.arrow-icons'); 67 var prev = $(this).find('.arrow-indicator-left'); 68 var next = $(this).find('.arrow-indicator-right'); 69 var options = { 70 slidesPerView: settings['desktop_items'], 71 spaceBetween: 30, 72 loop: true, 73 pagination: { 74 el: ".swiper-pagination", 75 clickable: true, 76 }, 77 autoplay: { 78 delay: 3000, 79 }, 80 breakpoints: { 81 '0': { 82 slidesPerView: 1, 83 spaceBetween: 10, 84 centeredSlides: false, 85 }, 86 '576': { 87 slidesPerView: settings['tablet_items'], 88 }, 89 '993': { 90 slidesPerView: settings['desktop_items'], 91 }, 92 }, 93 94 }; 95 96 if (prev_next) { 97 98 options['navigation'] = { 99 nextEl: next, 100 prevEl: prev, 101 } 102 } 103 104 if ('undefined' === typeof Swiper) { 105 const asyncSwiper = elementorFrontend.utils.swiper; 106 new asyncSwiper($(this), options).then((newSwiperInstance) => { 107 var swiper = newSwiperInstance; 108 }); 109 110 } else { 111 var swiper = new Swiper($(this), options); 112 } 113 114 }); 115 }, 116 117 slider_2: function course_slider_2() { 118 119 $('.style_2_sliderSwiper').each(function () { 120 121 var prev_next = $(this).parent().find('.arrow-icons'); 122 var prev = $(this).parent().find('.arrow-indicator-left'); 123 var next = $(this).parent().find('.arrow-indicator-right'); 124 125 var settings = $(this).data('histudy'); 126 var options = { 127 slidesPerView: 3, 128 spaceBetween: 30, 129 loop: true, 130 pagination: { 131 el: ".swiper-pagination", 132 clickable: true, 133 }, 134 135 breakpoints: { 136 '0': { 137 slidesPerView: 1, 138 }, 139 '576': { 140 slidesPerView: settings['tablet_items'], 141 }, 142 '993': { 143 slidesPerView: settings['desktop_items'], 144 }, 145 } 146 }; 147 148 if (settings['auto']) { 149 options['autoplay'] = { 150 delay: settings['speed'], 151 } 152 } 153 154 if (prev_next) { 155 156 options['navigation'] = { 157 nextEl: next, 158 prevEl: prev, 159 } 160 } 161 162 if ('undefined' === typeof Swiper) { 163 const asyncSwiper = elementorFrontend.utils.swiper; 164 new asyncSwiper($(this), options).then((newSwiperInstance) => { 165 var swiper = newSwiperInstance; 166 }); 167 168 } else { 169 var swiper = new Swiper($(this), options); 170 } 171 172 }); 173 }, 174 175 slider_3: function testimonial_carousels() { 176 177 $('.testimonial-carousel').each(function () { 178 var _$target = $(this); 179 var options = { 180 effect: "coverflow", 181 centeredSlides: true, 182 slidesPerView: "1", 183 loop: true, 184 speed: 1000, 185 breakpoints: { 186 768: { 187 slidesPerView: 1.5, 188 }, 189 992: { 190 slidesPerView: 2, 191 }, 192 }, 193 autoplay: { 194 delay: 2000, 195 }, 196 coverflowEffect: { 197 rotate: 0, 198 stretch: 90, 199 depth: 200, 200 modifier: 1.5, 201 slideShadows: false, 202 }, 203 pagination: { 204 el: ".swiper-pagination", 205 clickable: true, 206 }, 207 }; 208 209 if ('undefined' === typeof Swiper) { 210 const asyncSwiper = elementorFrontend.utils.swiper; 211 new asyncSwiper(_$target, options).then((newSwiperInstance) => { 212 var swiper = newSwiperInstance; 213 }); 214 215 } else { 216 var swiper = new Swiper(_$target, options); 217 } 218 219 }); 220 }, 221 222 slider_5: function banner_slider_1() { 223 224 $('.sliderSwiper').each(function () { 225 226 var options = { 227 slidesPerView: 1, 228 spaceBetween: 10, 229 loop: true, 230 loopFillGroupWithBlank: true, 231 centeredSlides: true, 232 autoplay: { 233 delay: 2000000, 234 disableOnInteraction: false, 235 }, 236 237 navigation: { 238 nextEl: ".slider_arrow-indicator-right", 239 prevEl: ".slider_arrow-indicator-left", 240 }, 241 }; 242 243 if ('undefined' === typeof Swiper) { 244 const asyncSwiper = elementorFrontend.utils.swiper; 245 new asyncSwiper($(this), options).then((newSwiperInstance) => { 246 var swiper = newSwiperInstance; 247 }); 248 249 } else { 250 var swiper = new Swiper($(this), options); 251 } 252 253 }); 254 }, 255 256 slider_6: function banner_slider_2() { 257 $('.main-banner-wrap-style-4').each(function () { 258 var slider = $(this).find('.swiper-container'); 259 var options = { 260 loop: true, 261 autoplay: { 262 delay: 5000, 263 }, 264 pagination: { 265 el: '.swiper-pagination', 266 clickable: true 267 }, 268 spaceBetween: 0, 269 effect: 'fade', 270 }; 271 if ('undefined' === typeof Swiper) { 272 const asyncSwiper = elementorFrontend.utils.swiper; 273 new asyncSwiper(slider, options).then((newSwiperInstance) => { 274 var swiper = newSwiperInstance; 275 }); 276 277 } else { 278 var swiper = new Swiper(slider, options); 279 } 280 }); 281 }, 282 283 isotope_1: function course_isotope_1() { 284 285 $('.full_course_block_isotope_style_1').each(function () { 286 var col_grid = $(this).find('.course_grid'); 287 col_grid.imagesLoaded(function () { 288 col_grid.isotope(); 289 }); 290 $(this).find('.course_category .category_name').on('click', function () { 291 var filterValue = $(this).attr('data-filter'); 292 col_grid.isotope({ filter: filterValue });
293 $(this).addClass('active').siblings().removeClass('active'); 294 }); 295 }); 296 }, 297 298 isotope_2: function course_isotope_2() { 299 $('.full_course_block_isotope_style_2').each(function () { 300 var _block = $(this); 301 var col_grid_2 = _block.find('.isotope_style_2').imagesLoaded(function () { 302 303 col_grid_2.isotope({}); 304 _block.find('.isotop-btn-layout2 a.nav-item').on('click', function () { 305 var filterValue_2 = $(this).attr('data-filter'); 306 col_grid_2.isotope({ filter: filterValue_2 }); 307 $(this).addClass('current').siblings().removeClass('current'); 308 }); 309 }); 310 }); 311 }, 312 313 common_js: function common_js_code() { 314 315 $('iframe#elementor-preview-iframe').contents().find('.course_grid').css({ 316 height: 'auto', 317 }); 318 /*------------------------------------- 319 TweenMax Mouse Effect 320 -------------------------------------*/ 321 $(".motion-effects-wrap").mousemove(function (e) { 322 323 parallaxIt(e, ".motion-effects1", -100); 324 parallaxIt(e, ".motion-effects2", -200); 325 parallaxIt(e, ".motion-effects3", 100); 326 parallaxIt(e, ".motion-effects4", 200); 327 parallaxIt(e, ".motion-effects5", -50); 328 parallaxIt(e, ".motion-effects6", 50); 329 330 }); 331 332 function parallaxIt(e, target_class, movement) { 333 var $wrap = $(e.target).parents(".motion-effects-wrap"); 334 if (!$wrap.length) return; 335 var $target = $wrap.find(target_class); 336 var relX = e.pageX - $wrap.offset().left; 337 var relY = e.pageY - $wrap.offset().top; 338 339 TweenMax.to($target, 1, { 340 x: ((relX - $wrap.width() / 2) / $wrap.width()) * movement, 341 y: ((relY - $wrap.height() / 2) / $wrap.height()) * movement, 342 }); 343 } 344 345 }, 346 347 video_modal: function video_modal_js() { 348 jQuery('.video_wrapper .video_play_button').on('click', function () { 349 var source_vid = jQuery(this).data('src'); 350 351 var modal_id = jQuery(this).data('bs-target'); 352 353 jQuery(this).parent().find(modal_id).on('shown.bs.modal', function (e) { 354 jQuery(this).parent().find(modal_id).find("#modal_video").attr('src', source_vid + "?autoplay=1&modestbranding=1&showinfo=0"); 355 }) 356 357 jQuery(this).parent().find(modal_id).on('hide.bs.modal', function (e) { 358 jQuery(this).parent().find(modal_id).find("#modal_video").attr('src', source_vid); 359 }) 360 }); 361 } 362 } 363 364 365 function content_load_script() { 366 jsblockObject.slider_1(); 367 jsblockObject.slider_2(); 368 jsblockObject.slider_3(); 369 jsblockObject.slider_5(); 370 jsblockObject.slider_6(); 371 jsblockObject.isotope_1(); 372 jsblockObject.isotope_2(); 373 jsblockObject.common_js(); 374 jsblockObject.video_modal(); 375 376 jsblockObject.testimonial_slider(); 377 } 378 379 $(window).on('elementor/frontend/init', function () { 380 381 if (elementorFrontend.isEditMode()) { 382 383 elementorFrontend.hooks.addAction('frontend/element_ready/global', function () { 384 content_load_script(); 385 }); 386 387 } 388 389 }); 390 391 // For Normal Call 392 $(window).on('load', function () { 393 content_load_script(); 394 }); 395 396 397})(jQuery);
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.