1 2$(document).ready(function() { 3 //Search 4 if($(window).width() < 992) { 5 $('.lm-search-section').click(function(e) { 6 e.stopPropagation(); 7 $(this).toggleClass('active'); 8 $('.lm-cta-phone').removeClass('active'); 9 }) 10 $('.lm-search-inner, .lm-cta-phone-inner').click(function(e){ 11 e.stopPropagation(); 12 }) 13 $('body').click(function(){ 14 $('.lm-search-section').removeClass('active'); 15 $('.lm-cta-phone').removeClass('active'); 16 }) 17 18 $('.lm-cta-phone').click(function(e) { 19 e.stopPropagation(); 20 $(this).toggleClass('active'); 21 $('.lm-search-section').removeClass('active'); 22 }) 23 } 24 // Header sticky class 25 if($(window).width() > 767) { 26 var target = $('header'), 27 header_height = target.outerHeight(), 28 offset_top = header_height - 30; 29 $(window).scroll(function(){ 30 let scroll = $(window).scrollTop(); 31 if(scroll > offset_top) { 32 target.addClass('fixed'); 33 } else { 34 target.removeClass('fixed'); 35 } 36 }); 37 } 38 39 // add class to subcategory to differentiate sub-menu classes 40 $('#menu-nextup-header-menu >li').children('.sub-menu').addClass('first-level'); 41 42 43 //Add arrow for menu and submenu category 44 $('.has-dropdown').prepend('<span class="sub-menu-activator"><svg width="8px" height="13px" fill="var(--lm-color-gray)"><use xlink:href="#chevron"></use></svg></span>'); 45 46 if($(window).width() < 768) { 47 $('.submenu-has-drop').prepend('<span class="submenu-has-activator"><svg width="8px" height="13px" fill="var(--lm-color-gray)"><use xlink:href="#chevron"></use></svg></span>'); 48 } 49 50 //only arrow can activate menu 51 if($(window).width() < 992) { 52 $('.sub-menu-activator').click(function(e){ 53 e.stopPropagation(); 54 $(this).siblings('.sub-menu').slideToggle(); 55 $(this).toggleClass('rotate'); 56 $('.sub-menu.first-level').not($(this).siblings('ul')).slideUp(); 57 $('.sub-menu-activator').not($(this)).removeClass('rotate'); 58 }) 59 } 60 61 //activator of menu 62 $('.lm-hamburger-btn').click(function(){ 63 $(this).toggleClass('active'); 64 $('.lm-menu').toggleClass('active'); 65 $('header').toggleClass('has-z-index'); 66 }) 67 68 //click everywhere close header menu.. exception for arrow 69 if($(window).width() > 768 && $(window).width() < 992) { 70 $('body').click(function(){ 71 $('#menu-nextup-header-menu .first-level').slideUp(); 72 }) 73 } 74 75 // sub sub menu activator
76 $('.submenu-has-activator').click(function(){ 77 $(this).siblings('ul').slideToggle(); 78 $(this).toggleClass('rotate'); 79 $('.submenu-has-drop ul').not($(this).siblings('ul')).slideUp(); 80 $('.submenu-has-activator').not($(this)).removeClass('rotate'); 81 }) 82 //Swiper slide horizontal 83 const swiper_horizontal = new Swiper('.lm-swiper', { 84 loop: true, 85 autoHeight: true, 86 autoplay: { 87 delay: 6500, 88 disableOnInteraction: false, 89 }, 90 // Navigation arrows 91 navigation: { 92 nextEl: '.swiper-button-next', 93 prevEl: '.swiper-button-prev', 94 }, 95 }); 96 97 //Swiper slide vertical 98 const swiper_vertical = new Swiper('.lm-swiper-vertical', { 99 direction: 'vertical', 100 loop: true, 101 102 // Navigation arrows 103 navigation: { 104 nextEl: '.swiper-button-next', 105 prevEl: '.swiper-button-prev', 106 }, 107 }); 108 109 //Swiper slide effect card 110 var swiper_effect_card = new Swiper(".lm-swiper-effect-card", { 111 effect: "cards", 112 grabCursor: true, 113 114 navigation: { 115 nextEl: '.swiper-button-next', 116 prevEl: '.swiper-button-prev', 117 }, 118 }); 119 120 //Swiper slide effect creative 121 var swiper_effect_creative = new Swiper(".lm-swiper-effect-creative", { 122 grabCursor: true, 123 effect: "creative", 124 loop: true, 125 navigation: { 126 nextEl: '.swiper-button-next', 127 prevEl: '.swiper-button-prev', 128 }, 129 creativeEffect: { 130 prev: { 131 shadow: true, 132 translate: [0, 0, -400], 133 }, 134 next: { 135 translate: ["100%", 0, 0], 136 }, 137 }, 138 }); 139 140 //Modal 141 $('.launch-modal').click(function(){ 142 var tab_id = $(this).attr('lm-data-id'); 143 var lm_modal_content = $(this).siblings('.lm-more-less-inner').html(); 144 $("#"+tab_id).find('.lm-modal-content').html(lm_modal_content); 145 $("#"+tab_id).addClass('active'); 146 }); 147 148 // //Modal 149 // $('.launch-modal').click(function(){ 150 // var tab_id = $(this).attr('lm-data-id'); 151 // var lm_modal_content = $(this).siblings('.lm-more-less-inner').html(); 152 // //console.log(lm_modal_content); 153 // $(".lm-modal .lm-modal-content").html(lm_modal_content); 154 // $(".lm-modal").addClass('active'); 155 // }) 156 $('.lm-close-modal').click(function(){ 157 $('.lm-modal').removeClass('active'); 158 }); 159 160 //Nextup personalised video modal 161 $('.benefit-wrapper').each(function(){ 162 let get_current_video = $(this).find('.lm-video-wrap'); 163 let get_current_title = $(this).find('.lm-benefit-title').text(); 164 $(this).find('.launch-modal').click(function(){ 165 $('.lm-modal').addClass('active'); 166 $('.lm-modal-content ').append($(get_current_video)); 167 $('.lm-modal-title h2').text(get_current_title); 168 }); 169 }); 170 171 $('.lm-close-modal').click(function(){ 172 $('.lm-modal').removeClass('active'); 173 setTimeout(function(){ 174 $('.lm-modal-content .lm-video-wrap').remove(); 175 }, 500); 176 }); 177 178 //Next up modal personalized 179 $('.lm-badges-new .badges-list .lm-item').each(function() { 180 $(this).click(function(e){ 181 if($(this).children().children('.lm-more-text').is(":empty")) { 182 return; 183 } else { 184 let lm_item = $('.lm-badges-new .lm-item'); 185 let lm_button_a = '.lm-buttons a' 186 187 if($(window).width() > 767) { 188 e.stopPropagation(); 189 $(this).toggleClass('active'); 190 if($(this).hasClass('active')) { 191 let get_all_html = $(this).html(); 192 var html = ""; 193 html += `<div class='lm-item-absolute'>${get_all_html}</div>`; 194 $(this).append(html); 195 lm_item.not($(this)).removeClass('active'); 196 lm_item.not($(this)).find('.lm-item-absolute').remove(); 197 $(this).find(lm_button_a).text('mai putin'); 198 } else { 199 $(this).find('.lm-item-absolute').remove(); 200 $(this).find(lm_button_a).text('mai mult'); 201 } 202 203 $('body').click(function(){ 204 $('.lm-item-absolute').remove(); 205 lm_item.removeClass('active'); 206 $(this).find(lm_button_a).text('mai mult'); 207 }) 208 } else { 209 $(this).toggleClass('active'); 210 $(this).find('.lm-more-text').slideToggle(); 211 lm_item.not($(this)).removeClass('active'); 212 $('.lm-badges-new .lm-more-text').not($(this).find('.lm-more-text')).slideUp(); 213 if($(this).hasClass('active')) { 214 $(this).find(lm_button_a).text('mai putin'); 215 $('.lm-badges-new .lm-buttons a').not($(this).children().children(lm_button_a)).text('mai mult'); 216 } else { 217 $(this).find(lm_button_a).text('mai mult'); 218 } 219 } 220 } 221 }) 222 }); 223 224 //Accordion for fancy list 225 $('.fancy-repeater-title').click(function() {
226 var accordion_item = $(this).parent(); 227 accordion_item.toggleClass('active'); 228 $(this).siblings().slideToggle(); 229 }); 230 231 //Accordion 232 $('.lvd-accordion .title').click(function () { 233 $(this).siblings().slideToggle(); 234 $(this).children('i').toggleClass('active') 235 }); 236 237 238 239 /*Acces resurse 240 if (localStorage.getItem('wasVisited') === "true") { 241 $("#lvd-acces-resurse").hide(); 242 } 243 244 $('.gform_button').click(function(e) { 245 localStorage.setItem("wasVisited", "true"); 246 alert("Valoarea a fost setatÄ Ã®n LocalStorage!"); 247 248 });*/ 249 250 251 252 253 254 255 //Hamburger button 256 $('.lvd-menu-button').on('click', function() { 257 $(this).toggleClass('active'); 258 $('.lvd-menu').toggleClass('active'); 259 }); 260 261 //arrows animation 262 setTimeout(function() { $('.big-arrows .first').addClass('active'); }, 1000); 263 setTimeout(function() { $('.big-arrows .second').addClass('active'); }, 1000); 264 265 //Blog menu button 266 $('.lvd-blog-sidebar-widget-title').prepend('<span class="lvd-blog-arrow"></span>'); 267 $('.lvd-blog-sidebar-widget-title').on('click', function() { 268 $(this).toggleClass('active'); 269 $('.menu-menu-blog-container').toggleClass('active'); 270 }); 271 272 //Sumbenu activator
273 $('.lvd-menu .menu >li.lvd-submenu-activator').prepend('<span class="lvd-submenu-arrow"></span>'); 274 $('.lvd-menu .menu .lvd-submenu-activator span').click(function(){ 275 $(this).toggleClass('active'); 276 $(this).siblings('.sub-menu').slideToggle(); 277 $('.lvd-menu .menu >li .sub-menu').not($(this).siblings('.sub-menu')).slideUp(); 278 $('.lvd-menu .menu >li.lvd-submenu-activator').not($(this)).removeClass('active'); 279 $('.lvd-menu .menu .lvd-submenu-activator .lvd-submenu-arrow').not($(this)).removeClass('active'); 280 }) 281 282 //Tabs 283 $('ul.tabs li').click(function(){ 284 var tab_id = $(this).attr('data-tab'); 285 286 $('ul.tabs li').removeClass('current'); 287 $('.tab-content').removeClass('current'); 288 289 $(this).addClass('current'); 290 $("#"+tab_id).addClass('current'); 291 }) 292 293 // Plyr videos 294 $('.lm-video-wrap').each(function(){ 295 let video_poster_player = $(this).children('.videoPosterWings'); 296 let get_video_id = $(this).children('.videoPosterWings').attr('id'); 297 let currentVideo = new Plyr(`.${get_video_id}`, {controls : ['play', 'progress', 'current-time', 'volume', 'fullscreen']}); 298 299 video_poster_player.click(function(){ 300 video_poster_player.hide(); 301 currentVideo.play(); 302 }) 303 }); 304 305 $('.videos-and-images .lm-item').each(function() { 306 let play_video = $(this).children().children('.play_video'); 307 play_video.click(function(){ 308 $(this).parent().siblings().children().children('.videoPosterWings').trigger('click'); 309 }); 310 }) 311 312 313 314 //Tooltip 315 $('.lm-has-tooltip').click(function(e){ 316 e.stopPropagation(); 317 $(this).children('.lm-tooltip').toggleClass('active'); 318 }) 319 $('body').click(function(){ 320 $('.lm-has-tooltip .lm-tooltip').removeClass('active'); 321 }) 322 if($(window).width() > 768) { 323 $('.lm-has-tooltip').removeAttr('href'); 324 } 325 326 //DEMO MODAL 327 $('.lm-demo-modal-launcher').click(function(){ 328 $('.lm-demo-form-modal-container').addClass('active'); 329 }); 330 331 //Offer MODAL 332 $('.lm-offer-modal-launcher').click(function(){ 333 $('.lm-offer-form-modal-container').addClass('active'); 334 }); 335 336 //Info MODAL 337 $('.lm-info-modal-launcher').click(function(){ 338 $('.lm-info-form-modal-container').addClass('active'); 339 }); 340 341 //Home MODAL 342 $('.lm-offer-home-modal-launcher').click(function(){ 343 $('.lm-offer-home-form-modal-container').addClass('active'); 344 }); 345 346 $('.lm-edu-modal-launcher').click(function(){ 347 $('.lm-info-form-modal-container').addClass('active'); 348 }); 349 350 $('.lm-career-modal-launcher').click(function(){ 351 $('.lm-career-form-modal-container').addClass('active'); 352 }); 353 354 //CLOSE FORM MODAL 355 $('.lm-close-form-modal').click(function(){ 356 $('.lm-form-modal-container').removeClass('active'); 357 }); 358 359 //$('.gform_wrapper .gform_title').remove(); 360}); 361 362 363 364//Smooth scroll 365 $(document).ready(function() { 366 $('a[href*="#"]:not([href="#"])').click(function () { 367 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 368 var target = $(this.hash); 369 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 370 if (target.length) { 371 $('html, body').animate({ 372 scrollTop: target.offset().top - 130 373 }, 1000); 374 return false; 375 } 376 } 377 }); 378 379 if(window.location.hash) { 380 let hash = window.location.hash; 381 $('html, body').animate({ 382 scrollTop: $(hash).offset().top - 180 383 }, 1000); 384 } 385 386 //$('.scrollspy-menu-inner ul li:first-child').addClass('active'); 387 388 $(window).on('scroll',function() { 389 var scrolltop = $(this).scrollTop(); 390 var header_h = $('header').outerHeight(); 391 var top_scrollspy_nav = $('#scrollspy-nav').position().top; 392 var scrollspy_end = $('.scrollspy-end').position().top - header_h - 1; 393 var default_mobile_text = $('.spy-mobile-activator .text').data('text'); 394 395 if(scrolltop >= top_scrollspy_nav - header_h) { 396 $('.scrollspy-menu-inner').addClass('fixed'); 397 $('.spy-mobile-activator .icon').addClass('active'); 398 $('.scrollspy-menu-inner').css({top: header_h + 'px'}); 399 if(scrolltop >= scrollspy_end) { 400 $('.scrollspy-menu-inner').removeClass('fixed'); 401 $('.spy-mobile-activator .icon').removeClass('active'); 402 $('.spy-mobile-activator .text').text(default_mobile_text); 403 } else { 404 $('.scrollspy-menu-inner').addClass('fixed'); 405 $('.spy-mobile-activator .icon').addClass('active'); 406 } 407 } else { 408 $('.scrollspy-menu-inner').removeClass('fixed'); 409 $('.spy-mobile-activator .icon').removeClass('active'); 410 $('.spy-mobile-activator .text').text(default_mobile_text); 411 } 412 }); 413 414 $(function() { 415 416 var link = $('.scrollspy-menu-inner a.dot'); 417 418 // upper label id 419 var id = $(this).attr('id'); 420 421 // Move to specific section when click on menu link 422 link.on('click', function(e) { 423 get_the_text = $(this).text(); 424 425 $('.spy-mobile-activator .text').text(get_the_text); 426 $(this).parent().addClass('active'); 427 $('.scrollspy-menu-inner ul li').not($(this).parent()).removeClass('active'); 428 429 // label add 430 $('.'+id).addClass('active'); 431 e.preventDefault(); 432 }); 433 434 // Run the scrNav when scroll 435 $(window).on('scroll', function(){ 436 scrNav(); 437 }); 438 439 // scrNav function 440 // Change active dot according to the active section in the window 441 function scrNav() { 442 var sTop = $(window).scrollTop(); 443 $('.spy-section').each(function() { 444 var id = $(this).attr('id'), 445 offset = $(this).offset().top - 250, 446 this_height = $(this).outerHeight(), 447 first_section_height = $(this).next('.lm-badges-container').outerHeight(), 448 second_section_height = first_section_height + $('.lm-wings').outerHeight(), 449 height = this_height + first_section_height + second_section_height; 450 if(sTop >= offset && sTop < offset + height) { 451 link.parent().removeClass('active'); 452 var get_text = $('.scrollspy-menu-inner').find('[data-scroll="' + id + '"]').text(); 453 454 $('.scrollspy-menu-inner').find('[data-scroll="' + id + '"]').parent().addClass('active'); 455 $('.spy-mobile-activator .text').text(get_text); 456 } 457 }); 458 } 459 scrNav(); 460 }); 461 462 if($(window).width() < 768) { 463 $('.scrollspy-menu-inner').click(function() { 464 $(this).children('ul').slideToggle(); 465 //$('.scrollspy-menu-inner .icon').toggleClass('active'); 466 }) 467 $('#scrollspy-nav .dot').click(function(){ 468 $('#scrollspy-nav ul').slideUp(); 469 //$('.scrollspy-menu-inner .icon').removeClass('active'); 470 }) 471 } 472 473 $('.career-more-text-btn').each(function(){ 474 $(this).click(function() { 475 $(this).toggleClass('active'); 476 $(this).siblings('.more-text').slideToggle(0, ''); 477 if($(this).hasClass('active')) { 478 $(this).text('vezi MAI PUTIN'); 479 } else { 480 $(this).text('vezi MAI MULT'); 481 } 482 }) 483 }); 484 485 $('.lm-career-modal-launcher').click(function(){ 486 let bussines_analyst_choice_id0 = $('.gchoice_5_13_0 input').attr('id'); 487 let bussines_analyst_choice_id1 = $('.gchoice_5_13_1 input').attr('id'); 488 let bussines_analyst_choice_id3 = $('.gchoice_5_13_3 input').attr('id'); 489 let get_data = $(this).attr('data-id'); 490 if(bussines_analyst_choice_id0 == get_data) { 491 $('.gchoice_5_13_0 input').trigger('click'); 492 } else if(bussines_analyst_choice_id1 == get_data) { 493 $('.gchoice_5_13_1 input').trigger('click'); 494 } else if(bussines_analyst_choice_id3 == get_data) { 495 $('.gchoice_5_13_3 input').trigger('click'); 496 } else { 497 $('.gchoice_5_13_2 input').trigger('click'); 498 } 499 }) 500 501 if(localStorage.getItem('popState') != 'shown'){ 502 $("#lm-blog-popup").delay(2000).fadeIn(); 503 } 504 505 $('.lm-blog-popup-close').click(function(e) 506 { 507 localStorage.setItem('popState','shown') 508 $('#lm-blog-popup').fadeOut(); 509 }); 510 511 512 // $('#gform_submit_button_14').click(function(){ 513 // let get_input_id = $('#input_14_3'); 514 // get_the_title = $('.my-own-class h2').text(); 515 // console.log(get_the_title); 516 // get_input_id.val(get_the_title); 517 // }); 518}); 519 520
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.