1var $ = jQuery.noConflict(); 2var eventpage=1; 3var loadevent=true; 4jQuery(document).ready(function(){ 5 // Event page filter ajax code 6 jQuery('.events-schedule-filter-part').on('click','ul.select-items li',function(){ 7 jQuery(this).closest('.select-box').find('div.select-selected').attr('data-val', jQuery(this).attr('data-val')); 8 if(jQuery(this).closest('.select-box').hasClass('year')){ 9 //[data-val="all"] 10 jQuery('.events-schedule-filter-part').find('.select-box.month .select-selected').html(jQuery('.events-schedule-filter-part').find('.select-box.month [data-val="all"]').html()); 11 jQuery('.events-schedule-filter-part').find('.select-box.month .select-selected').attr('data-val','all'); 12 13 } 14 event_filter_ajax_fun(); 15 }); 16 17 // End Event page filter ajax code 18 //google map popup 19 jQuery('body').on('click','.googlepro',function(){ 20 if(jQuery(this).attr('data-id')){ 21 jQuery('.complexes-section').find('.complexes-part-in').addClass('complexes-hover'); 22 //jQuery('.complexes-section').find('.complexes-content').hide(); 23 24 } 25 }); 26 jQuery('.complexes-section').on('click','.complexes-hover-box .close-box',function(){ 27 jQuery('body').find('.highlight').removeClass('highlight'); 28 jQuery('.complexes-section').find('.complexes-part-in').removeClass('complexes-hover'); 29 //jQuery('.complexes-section').find('.complexes-content').show(); 30 jQuery('.complexes-section').find('.complexes-hover-box').removeClass('show'); 31 }); 32 // end google map popup 33 // open job model 34 let urlObj = new URL(window.location.href); 35 let job_id = urlObj.searchParams.get('job_id'); 36 if(job_id){ 37 setTimeout(function(){ 38 $('.jobs-list li a.box.modal-btn[data-job-id="'+job_id+'"]').click(); 39 }, 100); 40 } 41 // publications-section 42 jQuery('.publications-section .accordion-item h5.accordion-header').click(function(){ 43 jQuery(this).closest('.accordion-item').find('ul li:first-child a').trigger('click'); 44 }); 45 jQuery('.publications-section .accordion-item .accordion-content ul li a').click(function(){ 46 //console.log(jQuery(this).attr('data-id')); 47 jQuery('.publications-section .accordion-item .accordion-content ul li').removeClass('active'); 48 jQuery(this).closest('li').addClass('active'); 49 jQuery('.publications-section .left-cl .filesdata').hide(); 50 jQuery('.publications-section .left-cl '+jQuery(this).attr('data-id')).show(); 51 var dataid=jQuery(this).attr('data-id'); 52 jQuery('.project-filter-selectbox-mobile select').val(dataid.replace("#", "")); 53 }); 54 // End publications-section 55 // modal search category 56 jQuery('#modal-search #searchcategory').change(function(){ 57 jQuery('.div-load').addClass('show'); 58 jQuery.ajax({ 59 type:'POST', 60 url: gav_yam_ajax_obj.ajax_url, 61 data:{'action':'search_category_project','category':jQuery(this).val()}, 62 dataType:'json', 63 async: false, 64 success:function(data){ 65 setTimeout(function(){ 66 jQuery('.div-load').removeClass('show'); 67 },500); 68 jQuery('#modal-search #searchproject').html(data.searchproject); 69 jQuery('#modal-search #searcharea').html(data.searcharea); 70 } 71 }); 72 }); 73 // project-filter-selectbox-mobile 74 jQuery('.project-filter-selectbox-mobile select').change(function(){ 75 jQuery('.publications-section .left-cl .filesdata').hide(); 76 jQuery('.publications-section .left-cl #'+jQuery(this).val()).show(); 77 }); 78 jQuery('#modal-search #searcharea').change(function(){ 79 jQuery('.div-load').addClass('show'); 80 jQuery.ajax({ 81 type:'POST', 82 url: gav_yam_ajax_obj.ajax_url, 83 data:{'action':'search_category_project','category':jQuery('#searchcategory').val(),'area':jQuery(this).val()}, 84 dataType:'json', 85 async: false, 86 success:function(data){ 87 setTimeout(function(){ 88 jQuery('.div-load').removeClass('show'); 89 },500); 90 jQuery('#modal-search #searchproject').html(data.searchproject); 91 } 92 }); 93 }); 94 jQuery('#modal-search #searchproject').change(function(){ 95 dataurl=jQuery('#modal-search #searchproject [value="'+jQuery(this).val()+'"]').attr('data-url'); 96 if(dataurl){ 97 //window.location.href=dataurl; 98 jQuery('#modal-search .search-btn').removeAttr('disabled'); 99 }else{ 100 jQuery('#modal-search .search-btn').setAttribute('disabled','disabled'); 101 } 102 }); 103 jQuery('#modal-search .search-btn').click(function(){ 104 dataurl=jQuery('#modal-search #searchproject [value="'+jQuery('#modal-search #searchproject').val()+'"]').attr('data-url'); 105 if(dataurl){ 106 jQuery('.div-load').addClass('show'); 107 window.location.href=dataurl; 108 } 109 }) 110 // End modal search category 111 112 jQuery('select.category').change(function(){ 113 jQuery('form.filter [name="category"]').val(jQuery(this).val()); 114 jQuery('form.filter [name="paged"]').val(1); 115 dataloadproject(); 116 }); 117 jQuery('.category li a').click(function(){ 118 jQuery('.category').find('li a').removeClass('active'); 119 jQuery(this).addClass('active'); 120 jQuery('form.filter [name="category"]').val(jQuery(this).attr('data-id')); 121 jQuery('form.filter [name="paged"]').val(1); 122 dataloadproject(); 123 }); 124 jQuery('.area li a').click(function(){ 125 jQuery('.area').find('li a').removeClass('active'); 126 jQuery(this).addClass('active'); 127 jQuery('form.filter [name="area"]').val(jQuery(this).attr('data-id')); 128 jQuery('form.filter [name="paged"]').val(1); 129 dataloadproject(); 130 }); 131 jQuery('.additional-btn a.loadmore').click(function(){
132 jQuery('form.filter [name="paged"]').val(parseInt(jQuery(this).attr('data-page'),10)+1); 133 dataloadproject(); 134 }); 135 function dataloadproject(){ 136 jQuery('.div-load').addClass('show'); 137 jQuery('.additional-btn').addClass('hide'); 138 jQuery.ajax({ 139 type:'POST', 140 url: gav_yam_ajax_obj.ajax_url, 141 data:$('form.filter').serialize(), 142 dataType:'json', 143 async: false, 144 success:function(data){ 145 jQuery('.additional-btn a.loadmore').attr('data-page',data.paged); 146 if(data.hideload==false){ 147 setTimeout(function(){ 148 jQuery('.additional-btn').removeClass('hide'); 149 },500); 150 } 151 if(data.loadmore==true){ 152 jQuery('.projects-list ul').append(data.html); 153 }else{ 154 jQuery('.projects-list ul').html(data.html); 155 } 156 setTimeout(function(){ 157 jQuery('.div-load').removeClass('show'); 158 },500); 159 } 160 }); 161 } 162 163 // job-section 164 $(document).on("click", ".jobs-list li a.box.modal-btn", function (e) { 165 e.preventDefault(); 166 get_career_single($(this)); 167 }); 168 169 function get_career_single(job) { 170 $.ajax({ 171 type: "post", 172 dataType: "json", 173 url: gav_yam_ajax_obj.ajax_url, 174 data: { 175 action: "gavyam_get_single_job_modal", 176 nonce: gav_yam_ajax_obj.gav_yam_nonce, 177 job_id: job.attr('data-job-id'), 178 }, 179 beforeSend: function beforeSend() { 180 $('.loader').fadeIn(); 181 }, 182 success: function success(response) { 183 $('.loader').fadeOut(100); 184 $("#modal-job-details .job-content").html(response.html); 185 $('#modal-job-details').addClass('show'); 186 } 187 }); 188 } 189 190 // Investor-section 191 $(document).on("click", ".publications-list a", function (e) { 192 e.preventDefault(); 193 get_publications_single($(this).attr('data-href')); 194 }); 195 196 $(document).on("click", ".vision-pdf-view a.pdfviewpopup", function (e) { 197 e.preventDefault(); 198 get_publications_single($(this).attr('data-href')); 199 }); 200 201 function stopAllMedia() { 202 // Stop audio 203 $('audio').each(function () { 204 this.pause(); 205 this.currentTime = 0; 206 }); 207 208 // Stop video 209 $('video').each(function () { 210 this.pause(); 211 this.currentTime = 0; 212 }); 213 214 // remove iframe src to stop pdf (iframe may keep loading) 215 $('#modal-choice-videopopup .iframe-video iframe').attr('src', ''); 216 } 217 218 function get_publications_single(docs) { 219 stopAllMedia(); 220 $.ajax({ 221 type: "post", 222 dataType: "json", 223 url: gav_yam_ajax_obj.ajax_url, 224 data: { 225 action: "gavyam_get_single_publications_modal", 226 nonce: gav_yam_ajax_obj.gav_yam_nonce, 227 doc_url: docs, 228 }, 229 beforeSend: function beforeSend() { 230 $('#modal-choice-videopopup .div-load').addClass('show'); 231 }, 232 success: function success(response) { 233 $('#modal-choice-videopopup .div-load').removeClass('show'); 234 $("#modal-choice-videopopup .iframe-video").html(""); 235 $("#modal-choice-videopopup .iframe-video").html(response.html); 236 if($('#modal-choice-videopopup .iframe-video audio').length > 0){ 237 $('#modal-choice-videopopup .iframe-video audio').each(function () { 238 // this.play(); 239 }); 240 } 241 if($('#modal-choice-videopopup .iframe-video video').length > 0){ 242 $('#modal-choice-videopopup .iframe-video video').each(function () { 243 // this.play(); 244 }); 245 } 246 } 247 }); 248 } 249 250 $(document).on('click', '.project-filter-menu ul.job_area li a.link', function(e){ 251 e.preventDefault(); 252 $('.project-filter-menu ul.job_area li a.link').removeClass('active'); 253 $(this).addClass('active'); 254 get_the_jobs(); 255 }); 256 257 $(document).on('click', '.project-filter-menu ul.job_category li a.link', function(e){ 258 e.preventDefault(); 259 $('.project-filter-menu ul.job_category li a.link').removeClass('active'); 260 $(this).addClass('active'); 261 get_the_jobs(); 262 }); 263 264 $(document).on('click', '.job-part .additional-btn a.button', function(e){ 265 e.preventDefault(); 266 get_the_jobs(loadmore=true); 267 }); 268 269 function get_the_jobs(loadmore=false){ 270 var area = $('.project-filter-menu ul.job_area li a.link.active').attr('data-value'); 271 var category = $('.project-filter-menu ul.job_category li a.link.active').attr('data-value'); 272 var $this = $(this); 273 var $share_links = $('.job-top-part .share-box .share-list'); 274 console.log(area +' '+ category ); 275 276 var job_ids = []; 277 if( loadmore ){ 278 $(".job-openings .job_box_grid").each(function(){ 279 job_ids.push($(this).attr("data-job_id") ); 280 }); 281 } 282 283 $.ajax({ 284 type: "post", 285 dataType: "json", 286 url: gav_yam_ajax_obj.ajax_url, 287 data: { 288 action: "gavyam_get_company_jobopening", 289 nonce: gav_yam_ajax_obj.bluegen_nonce, 290 area: area, 291 category: category, 292 loadmore: loadmore, 293 job_ids: job_ids, 294 }, 295 beforeSend: function () { 296 $this.addClass('loading'); 297 $share_links.addClass('loading'); 298 }, 299 success: function (response) { 300 $this.removeClass('loading'); 301 $share_links.removeClass('loading'); 302 //$('ul#company-job-opening').html(response.html); 303 $('.job-top-part .share-box .share-list').html(response.share_links); 304 305 if (loadmore){ 306 $('ul#company-job-opening').append(response.html); 307 }else{ 308 $('ul#company-job-opening').html(response.html); 309 $(".job-part .additional-btn a.button").attr("data-total-jobs", response.found_job); 310 } 311 312 var total_jobs = $(".job-part .additional-btn a.button").attr("data-total-jobs"); 313 let current_jobs = $("ul#company-job-opening li.job_box_grid").length; 314 if( current_jobs >= total_jobs ){ 315 $(".job-part .additional-btn").hide(); 316 }else{ 317 $(".job-part .additional-btn").show(); 318 } 319 320 if (response.found_job == false) { 321 $(".job-part .additional-btn").hide(); 322 } 323 324 325 $('.modal-btn').each(function () { 326 $(this).click(function () { 327 var modalGet = $(this).attr('data-modal'); 328 $('body').attr('id', ''); 329 setTimeout(function () { 330 $(modalGet).addClass('show'); 331 $('.modal-backdrop').addClass('show'); 332 var getid = $(modalGet).attr('id'); 333 $('body').attr('id', getid); 334 335 }, 50); 336 $('body').addClass('modal-open'); 337 $(modalGet).css({ 'display': 'block'}); 338 if ($('html').hasClass('no-touch')) { 339 $('body').css({ 'padding-right': '17px' }); 340 $(modalGet).css({ 'padding-right': '17px' }); 341 } 342 }); 343 }); 344 345 } 346 }); 347 } 348 349 $(document).on("click", ".copylink", function (e) { 350 e.preventDefault(); 351 var $temp = $("<input>"); 352 $("body").append($temp); 353 $temp.val($(this).attr('data-url')).select(); 354 document.execCommand("copy"); 355 $temp.remove(); 356 $(this).addClass('copied'); 357 358 setTimeout(function () { 359 $('.copylink').removeClass('copied'); 360 }, 1000); 361 }); 362 jQuery('.additional-btn a.postloadmore').click(function(){ 363 dataloadposts(); 364 }); 365 function dataloadposts(){ 366 jQuery('.div-load').addClass('show'); 367 jQuery('.additional-btn').addClass('hide'); 368 jQuery.ajax({ 369 type:'POST', 370 url: gav_yam_ajax_obj.ajax_url,
371 data:{'action':'post_loadmore','paged':parseInt(jQuery('.additional-btn a.postloadmore').attr('data-page'),10)+1}, 372 dataType:'json', 373 async: false, 374 success:function(data){ 375 jQuery('.additional-btn a.postloadmore').attr('data-page',data.paged); 376 if(data.hideload==false){ 377 setTimeout(function(){ 378 jQuery('.additional-btn').removeClass('hide'); 379 },500); 380 } 381 jQuery('.news-list-section .news-list ul').append(data.html); 382 setTimeout(function(){ 383 jQuery('.div-load').removeClass('show'); 384 },500); 385 } 386 }); 387 } 388 //pdfviewpopup 389// jQuery('.publications-part').on('mouseover','.publications-list a',function(){ 390// jQuery('#modal-choice-videopopup').find('iframe').attr('src',jQuery(this).attr('data-href')); 391 392// }); 393 $(window).on("click", function(e) { 394 if ($(e.target).hasClass("modal")) { 395 $(".modal").find('.modal-close').trigger('click'); 396 } 397 }); 398 399 $(document).on("click", ".modal-close", function () { 400 stopAllMedia(); 401 $("#modal-choice-videopopup .iframe-video").html(""); 402 }); 403 jQuery('.events-schedule-section').on('click','.load-more-events-btn .eventload',function(e){ 404 e.preventDefault(); 405 if(loadevent){ 406 loadevent=false; 407 eventpage++; 408 jQuery.ajax({ 409 type:'POST', 410 url: gav_yam_ajax_obj.ajax_url, 411 data:{'action':'event_filter_ajax','page':eventpage,'year':jQuery('.events-schedule-filter-part .select-box.year .select-selected').attr('data-val'),'month':jQuery('.events-schedule-filter-part .select-box.month .select-selected').attr('data-val')}, 412 dataType:'json', 413 async: false, 414 success:function(data){ 415 jQuery('.div-load').removeClass('show'); 416 loadevent=true; 417 if(data.showload){ 418 jQuery('.events-schedule-section .load-more-events-btn .eventload').show(); 419 }else{ 420 jQuery('.events-schedule-section .load-more-events-btn .eventload').hide(); 421 } 422 jQuery('.events-schedule-section .events-schedule-part ul').append(data.html); 423 } 424 }); 425 } 426 }); 427}); 428 429function showContactThankYouMessage() { 430 var $contactMessage = $('#contact-message'); 431 432 if ($contactMessage.length) { 433 $('#contact-form').hide(); 434 $contactMessage.show(); 435 } 436} 437 438document.addEventListener('wpcf7mailsent', function(event) { 439 if (['404', '3484', '3650'].indexOf(String(event.detail.contactFormId)) !== -1) { 440 showContactThankYouMessage(); 441 } 442}); 443document.addEventListener('wpcf7invalid', function(event) { 444 if (event.detail.contactFormId == '404') { 445 $('#wpcf7-f404-o1').find('p.error').removeClass('error'); 446 setTimeout(function(){ 447 $('#wpcf7-f404-o1 .wpcf7-not-valid').each(function(){ 448 $(this).closest('.form-group').find('p').addClass('error'); 449 }) 450 },500); 451 } 452 if (event.detail.contactFormId == '3484') { 453 $('#wpcf7-f3484-o1').find('p.error').removeClass('error'); 454 setTimeout(function(){ 455 $('#wpcf7-f3484-o1 .wpcf7-not-valid').each(function(){ 456 $(this).closest('.form-group').find('p').addClass('error'); 457 }) 458 },500); 459 } 460 if (event.detail.contactFormId == '3650') { 461 $('#wpcf7-f3650-o1').find('p.error').removeClass('error'); 462 setTimeout(function(){ 463 $('#wpcf7-f3650-o1 .wpcf7-not-valid').each(function(){ 464 $(this).closest('.form-group').find('p').addClass('error'); 465 }) 466 },500); 467 } 468}); 469 470function event_filter_ajax_fun(){ 471 jQuery('.div-load').addClass('show'); 472 if(loadevent){ 473 loadevent=false; 474 eventpage=1; 475 jQuery.ajax({ 476 type:'POST', 477 url: gav_yam_ajax_obj.ajax_url,
478 data:{'action':'event_filter_ajax','page':eventpage,'year':jQuery('.events-schedule-filter-part .select-box.year .select-selected').attr('data-val'),'month':jQuery('.events-schedule-filter-part .select-box.month .select-selected').attr('data-val')}, 479 dataType:'json', 480 async: false, 481 success:function(data){ 482 jQuery('.div-load').removeClass('show'); 483 loadevent=true; 484 if(data.showload){ 485 jQuery('.events-schedule-section .load-more-events-btn .eventload').show(); 486 }else{ 487 jQuery('.events-schedule-section .load-more-events-btn .eventload').hide(); 488 } 489 jQuery('.events-schedule-filter-part').find('.select-box.month ul.select-items').html(data.month); 490 jQuery('.events-schedule-section .events-schedule-part ul').html(data.html); 491 } 492 }); 493 } 494}
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.