1/* The first line waits until the page has finished to load and is ready to manipulate */ 2 3const tables = document.querySelectorAll('.autoIncSrNo'); 4 5tables.forEach((table) => { 6 const rows = table.querySelectorAll('tbody tr'); 7 8 rows.forEach((row, index) => { 9 const firstTd = row.querySelector('td:first-child'); 10 11 if (index === 0 || !firstTd) { 12 return; 13 } 14 15 firstTd.textContent = index; 16 }); 17}); 18 19 20 21 22 23jQuery(document).ready(function (jQuery) { 24 /* remove the 'title' attribute of all <img /> tags */ 25 jQuery("img").removeAttr("title"); 26}); 27jQuery(document).ready(function ($) { 28 if (window.location.href.indexOf('https://scmhrd.edu/research-faculty/?tab=journal_papers_published') > -1) { 29 var table = $('#journal-table'); 30 var rowCount = table.find('tr').length; 31 table.find('tr td:first-child').text(''); // Clear existing content in first column 32 for (var i = 1; i < rowCount; i++) { 33 table.find('tr').eq(i).find('td:first-child').text(i); // Add incremental values 34 } 35 } 36}); 37 38jQuery(document).ready(function ($) { 39 // Add an event listener for the 'console' event 40 window.addEventListener('message', function (event) { 41 // Check if the message contains '[Violation]' 42 if (event.data && event.data.message && event.data.message.includes('[Violation]')) { 43 // Do nothing (suppress the message) 44 event.stopImmediatePropagation(); 45 } 46 }, true); 47 48 // Example usage that triggers a [Violation] message 49 $('body').on('touchstart', function () { 50 // Add a touchstart event listener 51 }); 52}); 53jQuery(document).ready(function ($) { 54 if (window.location.href.indexOf('https://scmhrd.edu/research-faculty/?tab=proceeding_papers_published') > -1) { 55 var table = $('#proceeding-table'); 56 var rowCount = table.find('tr').length; 57 table.find('tr td:first-child').text(''); // Clear existing content in first column 58 for (var i = 1; i < rowCount; i++) { 59 table.find('tr').eq(i).find('td:first-child').text(i); // Add incremental values 60 } 61 } 62}); 63 64function closenewPopup() { 65 var popup = document.querySelector('.popup-animation-here'); 66 popup.classList.add('exit'); 67 // Add additional logic as needed 68} 69 70 71 72// // Function to add the "active" class to the link that matches the current page URL 73function setActiveLink() { 74 var currentPageUrl = window.location.href; 75 var links = document.querySelectorAll('.fusion-li-item a'); 76 77 for (var i = 0; i < links.length; i++) { 78 var link = links[i]; 79 if (link.href === currentPageUrl) { 80 link.classList.add('active'); 81 } 82 } 83} 84 85// Run the function when the DOM is ready 86document.addEventListener('DOMContentLoaded', setActiveLink); 87 88// 89// // MegaNav 90jQuery(document).ready(function ($) { 91 // MegaNav 92 $(".MainNav").mouseover(function () { 93 $(".megamenu").show(); 94 }); 95 96 $(".my_menu li").mouseover(function () { 97 let currentId = $(this).attr('id'); 98 console.log(currentId); 99 $('.submenu').removeClass('active-bg'); 100 $('.submenu-' + currentId).addClass('active-bg'); 101 }); 102 103 $(".MainNav").mouseout(function () { 104 $(".megamenu").hide(); 105 }); 106 107 $(".submenu").mouseover(function () { 108 let classname = $(this).attr("reference"); 109 $('.' + classname).addClass('active-menu'); 110 $('.submenu').removeClass('active-bg'); 111 $('.submenu-' + classname).addClass('active-bg'); 112 }); 113 114 $(".submenu").mouseout(function () { 115 $('.one, .two, .three, .four, .five, .six').removeClass('active-menu'); 116 }); 117 118 // ð Function to dynamically adjust widths and heights 119 function adjustMegaMenu() { 120 $(".submenu-one").width($('#one').width()); 121 $(".submenu-two").width($('#two').width()); 122 $(".submenu-three").width($('#three').width()); 123 $(".submenu-four").width($('#four').width()); 124 $(".submenu-five").width($('#five').width()); 125 $(".submenu-six").width($('#six').width()); 126 127 $(".submenu").height($('.megamenu').height()); 128 $(".megamenu").width($('.my_menu').width()); 129 } 130 131 // Burger menu 132 (function () { 133 $('.hamburger-menu, .close').on('click', function () { 134 $('.bar').toggleClass('animate'); 135 $('.mobile-menu').toggleClass('active'); 136 return false;
137 }); 138 139 $('.has-children').on('click', function () { 140 var $submenu = $(this).children('ul'); 141 142 // Toggle the clicked submenu 143 $submenu.slideToggle('fast', 'swing'); 144 $('.icon-arrow', this).toggleClass('open'); 145 146 // Close other open submenus 147 $('.has-children').not(this).children('ul').slideUp('fast', 'swing'); 148 $('.icon-arrow', '.has-children').not(this).removeClass('open'); 149 }); 150 })(); 151 152 // Breakpoints 153 var $small_only = window.matchMedia("(max-width: 767px)"), 154 $medium_up = window.matchMedia("(min-width: 768px)"), 155 $medium_only = window.matchMedia("(min-width: 768px) and (max-width: 970px)"), 156 $large_up = window.matchMedia("(min-width: 971px)"), 157 $large_only = window.matchMedia("(min-width: 971px) and (max-width: 1024px)"), 158 $xlarge_up = window.matchMedia("(min-width: 1025px)"), 159 $xlarge_only = window.matchMedia("(min-width: 1025px) and (max-width: 1240px)"); 160 161 // Equal height adjustment 162 function equalizer(cssClass) { 163 var wrapper = $(cssClass).parent(); 164 var x = wrapper.prevObject.length; 165 var y = 3; // number of columns 166 var quotient = Math.floor(x / y); 167 var padding = 0; // user defined distance to bottom 168 var max = 0; 169 170 $(cssClass).css('height', 'auto'); // reset 171 172 if ($medium_up.matches) { 173 $(cssClass).each(function () { 174 if ($(this).height() > max) max = $(this).height() + padding; 175 }); 176 $(cssClass).height(max + padding); 177 } 178 179 wrapper.css('margin-bottom', (padding * quotient) + 'px'); 180 } 181 182 // ð Call both functions on load and resize 183 $(window).on('load resize', function () { 184 adjustMegaMenu(); 185 equalizer('.equalize'); 186 }); 187}); 188 189 190// menu css ends 191 192jQuery(document).ready(function () { 193 jQuery(".program-box").mouseenter(function () { 194 jQuery(".bg-half-round").each(function () { 195 jQuery(this).hide(); 196 }); 197 // console.log("in"); 198 jQuery(this).find(".bg-half-round").slideDown(); 199 }); 200 201 202 jQuery(".program-box").mouseleave(function () { 203 // console.log("out"); 204 jQuery(this).find(".bg-half-round").hide(); 205 }); 206}); 207 208 209function openCity(evt, cityName) { 210 var i, tabcontent, tablinks; 211 tabcontent = document.getElementsByClassName("tabcontent"); 212 for (i = 0; i < tabcontent.length; i++) { 213 tabcontent[i].style.display = "none"; 214 } 215 tablinks = document.getElementsByClassName("tablinks"); 216 for (i = 0; i < tablinks.length; i++) { 217 tablinks[i].className = tablinks[i].className.replace(" active", ""); 218 } 219 document.getElementById(cityName).style.display = "block"; 220 evt.currentTarget.className += " active"; 221} 222 223jQuery(document).ready(function () { 224 jQuery('#recruiter').slick({ 225 slidesToShow: 10, 226 responsive: [ 227 { 228 breakpoint: 1366, 229 settings: { 230 slidesToShow: 5 231 } 232 }, 233 { 234 breakpoint: 1024, 235 settings: { 236 slidesToShow: 4 237 } 238 }, 239 { 240 breakpoint: 480, 241 settings: { 242 slidesToShow: 4 243 } 244 } 245 ], 246 autoplay: true, 247 arrows: false, 248 infinite: true, 249 autoplaySpeed: 0, 250 speed: 8000, 251 pauseOnHover: false, 252 cssEase: 'linear' 253 }); 254 jQuery('#recruiter2').slick({ 255 slidesToShow: 10, 256 responsive: [ 257 { 258 breakpoint: 1366, 259 settings: { 260 slidesToShow: 5 261 } 262 }, 263 { 264 breakpoint: 1024, 265 settings: { 266 slidesToShow: 4 267 } 268 }, 269 { 270 breakpoint: 480, 271 settings: { 272 slidesToShow: 4 273 } 274 } 275 ], 276 autoplay: true,
277 arrows: false, 278 infinite: true, 279 autoplaySpeed: 0, 280 speed: 8000, 281 pauseOnHover: false, 282 cssEase: 'linear', 283 rtl: true, 284 autoplay: true 285 }); 286 jQuery('#refund').slick({ 287 slidesToShow: 1, 288 autoplay: true, 289 arrows: false, 290 infinite: true, 291 autoplaySpeed: 0, 292 speed: 8000, 293 pauseOnHover: false, 294 cssEase: 'linear' 295 }); 296 297 jQuery('.centermod').slick({ 298 slidesToShow: 1, 299 autoplay: true, 300 arrows: true, 301 infinite: true, 302 pauseOnHover: false, 303 }); 304 305 jQuery('.pdf-slider-placement').slick({ 306 slidesToShow: 1, // Display one slide at a time 307 autoplay: true, 308 dots: true, 309 infinite: true, 310 pauseOnHover: false, 311 responsive: [ 312 { 313 breakpoint: 769, // Set the breakpoint to 768 pixels 314 settings: { 315 slidesToShow: 1, // Display two slides at a time 316 slidesToScroll: 1, // Scroll two slides at a time 317 variableWidth: true, // Enable variable width 318 centerMode: false, // Disable center mode 319 } 320 }, 321 { 322 breakpoint: 425, // Set the breakpoint to 768 pixels 323 settings: { 324 slidesToShow: 1, // Display two slides at a time 325 slidesToScroll: 1, // Scroll two slides at a time 326 variableWidth: false, // Enable variable width 327 centerMode: false, // Disable center mode 328 } 329 } 330 ] 331 }); 332 333 jQuery('.pdf-slider-placement2').slick({ 334 slidesToShow: 1, // Display one slide at a time 335 autoplay: true, 336 dots: true, 337 infinite: true, 338 pauseOnHover: false, 339 responsive: [ 340 { 341 breakpoint: 769, // Set the breakpoint to 768 pixels 342 settings: { 343 slidesToShow: 1, // Display two slides at a time 344 slidesToScroll: 1, // Scroll two slides at a time 345 variableWidth: true, // Enable variable width 346 centerMode: false, // Disable center mode 347 } 348 }, 349 { 350 breakpoint: 425, // Set the breakpoint to 768 pixels 351 settings: { 352 slidesToShow: 1, // Display two slides at a time 353 slidesToScroll: 1, // Scroll two slides at a time 354 variableWidth: false, // Enable variable width 355 centerMode: false, // Disable center mode 356 } 357 } 358 ] 359 }); 360 361 jQuery('.accomplishment').slick({ 362 slidesToShow: 2, 363 autoplay: true, 364 arrows: true, 365 infinite: true, 366 responsive: [ 367 { 368 breakpoint: 1366, 369 settings: { 370 slidesToShow: 2 371 } 372 }, 373 { 374 breakpoint: 1025, 375 settings: { 376 slidesToShow: 1 377 } 378 }, 379 { 380 breakpoint: 480, 381 settings: { 382 slidesToShow: 1 383 } 384 } 385 ], 386 pauseOnHover: false, 387 }); 388 389 390}); 391 392jQuery(function () { 393 394 var activeIndex = jQuery('.active-tab-hta').index(), 395 $contentlis = jQuery('.tabs-content .hta'), 396 $tabslis = jQuery('.tabs-hta .hta'); 397 398 // Show content of active tab on loads 399 $contentlis.eq(activeIndex).show(); 400 401 jQuery('.tabs-hta').on('click', '.hta', function (e) { 402 var $current = jQuery(e.currentTarget), 403 index = $current.index(); 404 405 $tabslis.removeClass('active-tab-hta'); 406 $current.addClass('active-tab-hta'); 407 $contentlis.hide().eq(index).show(); 408 }); 409}); 410jQuery(function () { 411 412 var activeIndex = jQuery('.active-tab-hta2').index(), 413 $contentlis = jQuery('.tabs-content2 .hta2'), 414 $tabslis = jQuery('.tabs-hta2 .hta2'); 415 416 // Show content of active tab on loads 417 $contentlis.eq(activeIndex).show(); 418 419 jQuery('.tabs-hta2').on('click', '.hta2', function (e) { 420 var $current = jQuery(e.currentTarget), 421 index = $current.index(); 422 423 $tabslis.removeClass('active-tab-hta2'); 424 $current.addClass('active-tab-hta2'); 425 $contentlis.hide().eq(index).show(); 426 }); 427}); 428// testimonialtabs 429jQuery(function () { 430 var $contentlis = jQuery('.tabBlock-content .tabBlock-pane'), 431 $tabslis = jQuery('.tabBlock-tabs .tabBlock-tab'); 432 433 // Hide all content panes except the first one 434 $contentlis.hide().first().show(); 435 436 // Add the 'is-active' class to the first tab 437 $tabslis.first().addClass('is-active'); 438 439 jQuery('.tabBlock-tabs').on('click', '.tabBlock-tab', function (e) { 440 var $current = jQuery(e.currentTarget), 441 index = $current.index(); 442 443 $tabslis.removeClass('is-active'); 444 $current.addClass('is-active'); 445 $contentlis.hide().eq(index).show(); 446 }); 447}); 448 449 450 451 452jQuery(function () { 453 454 var activeIndex = jQuery('.active-tab-hta3').index(), 455 $contentlis = jQuery('.tabs-content3 .hta3'), 456 $tabslis = jQuery('.tabs-hta3 .hta3'); 457 458 // Show content of active tab on loads 459 $contentlis.eq(activeIndex).show(); 460 461 jQuery('.tabs-hta3').on('click', '.hta3', function (e) { 462 var $current = jQuery(e.currentTarget), 463 index = $current.index(); 464 465 $tabslis.removeClass('active-tab-hta3'); 466 $current.addClass('active-tab-hta3'); 467 $contentlis.hide().eq(index).show(); 468 }); 469}); 470 471jQuery(function () { 472 473 var activeIndex = jQuery('.active-tab-hta4').index(), 474 $contentlis = jQuery('.tabs-content4 .hta4'), 475 $tabslis = jQuery('.tabs-hta4 .hta4'); 476 477 // Show content of active tab on loads 478 $contentlis.eq(activeIndex).show(); 479 480 jQuery('.tabs-hta4').on('click', '.hta4', function (e) { 481 var $current = jQuery(e.currentTarget), 482 index = $current.index(); 483 484 $tabslis.removeClass('active-tab-hta4'); 485 $current.addClass('active-tab-hta4'); 486 $contentlis.hide().eq(index).show(); 487 }); 488}); 489 490jQuery(function () { 491 492 var activeIndex = jQuery('.active-tab-hta5').index(), 493 $contentlis = jQuery('.tabs-content5 .hta5'), 494 $tabslis = jQuery('.tabs-hta5 .hta5'); 495 496 // Show content of active tab on loads 497 $contentlis.eq(activeIndex).show(); 498 499 jQuery('.tabs-hta5').on('click', '.hta5', function (e) { 500 var $current = jQuery(e.currentTarget), 501 index = $current.index(); 502 503 $tabslis.removeClass('active-tab-hta5'); 504 $current.addClass('active-tab-hta5'); 505 $contentlis.hide().eq(index).show(); 506 }); 507}); 508jQuery(function () { 509 510 var activeIndex = jQuery('.active-tab-hta6').index(), 511 $contentlis = jQuery('.tabs-content6 .hta6'), 512 $tabslis = jQuery('.tabs-hta6 .hta6'); 513 514 // Show content of active tab on loads 515 $contentlis.eq(activeIndex).show(); 516 517 jQuery('.tabs-hta6').on('click', '.hta6', function (e) { 518 var $current = jQuery(e.currentTarget), 519 index = $current.index(); 520 521 $tabslis.removeClass('active-tab-hta6'); 522 $current.addClass('active-tab-hta6'); 523 $contentlis.hide().eq(index).show(); 524 }); 525}); 526jQuery(function () { 527 528 var activeIndex = jQuery('.active-tab-hta7').index(), 529 $contentlis = jQuery('.tabs-content7 .hta7'), 530 $tabslis = jQuery('.tabs-hta7 .hta7'); 531 532 // Show content of active tab on loads 533 $contentlis.eq(activeIndex).show(); 534 535 jQuery('.tabs-hta7').on('click', '.hta7', function (e) { 536 var $current = jQuery(e.currentTarget), 537 index = $current.index(); 538 539 $tabslis.removeClass('active-tab-hta7'); 540 $current.addClass('active-tab-hta7'); 541 $contentlis.hide().eq(index).show(); 542 }); 543}); 544jQuery(function () { 545 546 var activeIndex = jQuery('.active-tab-hta8').index(), 547 $contentlis = jQuery('.tabs-content8 .hta8'), 548 $tabslis = jQuery('.tabs-hta8 .hta8'); 549 550 // Show content of active tab on loads 551 $contentlis.eq(activeIndex).show(); 552 553 jQuery('.tabs-hta8').on('click', '.hta8', function (e) { 554 var $current = jQuery(e.currentTarget), 555 index = $current.index(); 556 557 $tabslis.removeClass('active-tab-hta8'); 558 $current.addClass('active-tab-hta8'); 559 $contentlis.hide().eq(index).show(); 560 }); 561}); 562jQuery(function () { 563 564 var activeIndex = jQuery('.active-tab-hta9').index(), 565 $contentlis = jQuery('.tabs-content9 .hta9'), 566 $tabslis = jQuery('.tabs-hta9 .hta9'); 567 568 // Show content of active tab on loads 569 $contentlis.eq(activeIndex).show(); 570 571 jQuery('.tabs-hta9').on('click', '.hta9', function (e) { 572 var $current = jQuery(e.currentTarget), 573 index = $current.index(); 574 575 $tabslis.removeClass('active-tab-hta9'); 576 $current.addClass('active-tab-hta9'); 577 $contentlis.hide().eq(index).show(); 578 }); 579}); 580 581jQuery(document).ready(function () { 582 jQuery('.slider-content').slick({ 583 slidesToShow: 1, 584 slidesToScroll: 1,
585 arrows: false, 586 fade: false, 587 autoplay: true, 588 autoplaySpeed: 2000, 589 speed: 1000, 590 asNavFor: '.slider-thumb', 591 }); 592 593 jQuery('.slider-thumb').slick({ 594 slidesToShow: 6, 595 slidesToScroll: 6, 596 asNavFor: '.slider-content', 597 dots: false, 598 autoplay: false, 599 arrows: false, 600 centerMode: false, 601 focusOnSelect: true, 602 }); 603 604 jQuery('a[data-slide]').click(function (e) { 605 e.preventDefault(); 606 var slideno = jQuery(this).data('slide'); 607 jQuery('.slider-content').slick('slickGoTo', slideno - 1); 608 }); 609}); 610 611 612jQuery(document).ready(function () { 613 jQuery("#fusion-tab-siucommittee, #mobile-fusion-tab-siucommittee").click(function () { 614 // window.location.href = "https://staging-web.srv.media/scmhrd/?page_id=629"; 615 window.open("https://siu.edu.in/symbiosis-committee.php", "_blank"); 616 window.location.href = "https://scmhrd.edu/?page_id=629"; 617 }); 618}); 619jQuery(document).ready(function () { 620 jQuery("#fusion-tab-s-team, #mobile-fusion-tab-s-team").click(function () { 621 window.open("https://scmhrdteam.scmhrd.edu/", "_blank"); 622 window.location.href = "https://scmhrd.edu/research-faculty/"; 623 }); 624}); 625jQuery(document).ready(function () { 626 jQuery("#fusion-tab-collaborations, #mobile-fusion-tab-collaborations").click(function () { 627 window.open("https://www.scie.ac.in/collaborations", "_blank"); 628 window.location.href = "https://scmhrd.edu/objectives/"; 629 }); 630}); 631 632 633const accordionHeaders = document.querySelectorAll('.accordion-header'); 634 635accordionHeaders.forEach(header => { 636 header.addEventListener('click', () => { 637 const content = header.nextElementSibling; 638 content.style.display = content.style.display === 'none' ? 'block' : 'none'; 639 }); 640}); 641jQuery(document).ready(function () { 642 jQuery('.accordion-header').click(function () { 643 const content = jQuery(this).next('.accordion-content'); 644 jQuery('.accordion-content').not(content).slideUp(); // Close other open tabs 645 jQuery('.accordion-header').not(this).removeClass('active'); // Remove active class from other headers 646 content.slideToggle(); 647 jQuery(this).toggleClass('active'); // Toggle the active class on the clicked header 648 }); 649}); 650 651 652// document.addEventListener("DOMContentLoaded", function() { 653// const purchaseTab = document.getElementById("purchase-tab"); 654// const customTabs = document.querySelector(".custom-tabs"); 655 656// // Function to remove the background image class 657// function removeBackground() { 658// customTabs.classList.remove("purchase-bg"); 659// } 660 661// // Add click event listeners to all tabs 662// const allTabs = document.querySelectorAll(".hta"); 663// allTabs.forEach(function(tab) { 664// tab.addEventListener("click", function() { 665// if (tab === purchaseTab) { 666// customTabs.classList.add("purchase-bg"); 667// } else { 668// removeBackground(); 669// } 670// }); 671// }); 672// }); 673 674 675jQuery(document).ready(function () { 676 // When a tab is clicked 677 jQuery('.hta').on('click', function () { 678 // Remove the active class from all tabs and content sections 679 jQuery('.hta').removeClass('active-tab'); 680 jQuery('.hta-content').removeClass('active-content'); 681 682 // Add the active class to the clicked tab 683 jQuery(this).addClass('active-tab'); 684 685 // Show the corresponding content section 686 const tabIdx = jQuery(this).index(); 687 jQuery('.hta-content').eq(tabIdx).addClass('active-content'); 688 }); 689}); 690 691function openTab(evt, cityName) { 692 var i, tabcontent, tablinks; 693 tabcontent = document.getElementsByClassName("tabcontent"); 694 for (i = 0; i < tabcontent.length; i++) { 695 tabcontent[i].style.display = "none"; 696 } 697 tablinks = document.getElementsByClassName("tablinks"); 698 for (i = 0; i < tablinks.length; i++) { 699 tablinks[i].className = tablinks[i].className.replace(" active", ""); 700 } 701 document.getElementById(cityName).style.display = "block"; 702 evt.currentTarget.className += " active"; 703} 704 705//Table load more btn for media presence page 706jQuery(document).ready(function () { 707 jQuery(".media-table tr").slice(0, 15).show(); 708 jQuery("#load-more").click(function (e) { 709 e.preventDefault(); 710 jQuery(".media-table tr:hidden").slice(0, 15).fadeIn("slow"); 711 712 if (jQuery(".media-table tr:hidden").length == 0) { 713 jQuery("#load-more").fadeOut("slow"); 714 } 715 }); 716}); 717 718//Table load more btn for visiting faculty page 719jQuery(document).ready(function () { 720 jQuery(".visiting-faculty tr").slice(0, 26).show(); 721 jQuery("#load-more-members").click(function (e) { 722 e.preventDefault(); 723 jQuery(".visiting-faculty tr:hidden").slice(0, 26).fadeIn("slow"); 724 725 if (jQuery(".visiting-faculty tr:hidden").length == 0) { 726 jQuery("#load-more-members").fadeOut("slow"); 727 } 728 }); 729}); 730 731//Table load more btn for Journal page 732 733jQuery(document).ready(function () { 734 jQuery("#journal-table tr").slice(0, 18).show(); 735 try { 736 var slicedRows = jQuery("#journal-table tr").slice(0, 19); 737 jQuery("#journal-table tr").slice(19).hide(); 738 739 } catch (error) { 740 console.error("Error occurred during slicing:", error); 741 } 742 jQuery("#load-more-eligibilty").click(function (e) { 743 e.preventDefault(); 744 jQuery("#journal-table tr:hidden").slice(0, 19).fadeIn("slow"); 745 746 if (jQuery("#journal-table tr:hidden").length == 0) { 747 jQuery("#load-more-eligibilty").fadeOut("slow"); 748 } 749 }); 750}); 751//Table load more btn for Proceeding Table 752jQuery(document).ready(function () { 753 jQuery("#book-chapters-table tr").slice(0, 18).show(); 754 try { 755 var slicedRows = jQuery("#journal-table tr").slice(0, 19); 756 jQuery("#book-chapters-table tr").slice(19).hide(); 757 758 } catch (error) { 759 console.error("Error occurred during slicing:", error); 760 } 761 jQuery("#load-more-book-chapters-table").click(function (e) { 762 e.preventDefault(); 763 jQuery("#book-chapters-table tr:hidden").slice(0, 19).fadeIn("slow"); 764 765 if (jQuery("#book-chapters-table tr:hidden").length == 0) { 766 jQuery("#load-more-book-chapters-table").fadeOut("slow"); 767 } 768 }); 769}); 770 771
772// Check if the slider with ID 'events-slider-here' contains no images 773 774jQuery(document).ready(function () { 775 // When the document is ready 776 777 // Select all <img> elements inside #events-slider-here with valid src attribute 778 var imgElements = jQuery("#events-slider-here img[src]"); 779 780 // Iterate through each <img> element and print its src attribute value 781 imgElements.each(function (index, element) { 782 // console.log("Image src[" + index + "]: " + jQuery(element).attr("src")); 783 }); 784 785 // Count the number of <img> elements inside the element with ID "events-slider-here" with valid src attribute 786 var imageCount = imgElements.length; 787 788 // console.log("Number of images with valid src attribute: " + imageCount); 789 790 // Check if there is only one <img> element with valid src attribute 791 if (imageCount === 1) { 792 // If there is only one <img> element, hide the element with ID "events-slider-here" 793 jQuery("#events-slider-here").hide(); 794 } 795}); 796 797jQuery(document).ready(function ($) { 798 var currentURL = window.location.search; 799 let paramString = currentURL.split('?')[1]; 800 let queryString = new URLSearchParams(paramString); 801 802 for (let pair of queryString.entries()) { 803 var tab_title = pair[1]; 804 } 805 // console.log("queryString-name =>", tab_title); 806 function showTabContent(tabId) { 807 $('.tab-pane').hide(); 808 // $('.tab-pane:not(.overview-programme)').hide(); 809 810 // Show the specific tab content and add active class to that tab 811 $(tabId).show(); 812 $(tabId).addClass('active in'); 813 814 // Remove li active class from other links and make only the specific tab active 815 $('a').closest('li').removeClass('active'); 816 $('a[href="' + tabId + '"]').closest('li').addClass('active'); 817 818 // Remove previously bound click event handlers for .tab-link 819 $('.tab-link').off('click'); 820 821 // Bind a new click event handler for .tab-link 822 $('.tab-link').on('click', handleTabClick); 823 } 824 825 function handleTabClick(event) { 826 // Prevent the default link behavior 827 event.preventDefault(); 828 829 // Get the target tab ID from the href attribute of the clicked link 830 var targetTabId = $(this).attr('href'); 831 832 // Hide all tab panes and remove 'active' class 833 $('.tab-pane').removeClass('active').hide(); 834 835 // Show the target tab pane and add 'active' class 836 $(targetTabId).addClass('active').show(); 837 838 // Remove 'active' class from all tab links 839 $('.tab-link').removeClass('active'); 840 841 // Add 'active' class to the clicked tab link 842 $(this).addClass('active'); 843 } 844 // Call the function for specific tab titles 845 // Check the value of tab_title and show corresponding tab content 846 if (tab_title === "advisory_board") { 847 showTabContent('#tab-554510b879fc7ccf17f'); 848 } else if (tab_title === "director_scmhrd") { 849 showTabContent('#tab-19b7cd08d616b803cad'); 850 } else if (tab_title === "directors_message") { 851 showTabContent('#tab-f1c020463660fcd029e'); 852 } else if (tab_title === "learning_resources") { 853 showTabContent('#tab-e40296f249d31a4d416'); 854 } else if (tab_title === "leadership") { 855 showTabContent('#tab-eea2f87953acdde8637'); 856 } else if (tab_title === "iqac") { 857 showTabContent('#tab-4845b4c4c28e8cefcd6'); 858 } else if (tab_title === "accreditation") { 859 showTabContent('#tab-6ce03b6a3e91e5249e7'); 860 } else if (tab_title === "research_project") { 861 showTabContent('#tab-cebfc6330e4accba493'); 862 } else if (tab_title === "journal_papers_published") { 863 showTabContent('#tab-cf532b07ef67817a1a1'); 864 } else if (tab_title === "book_chapters_published") { 865 showTabContent('#tab-6d7694981a16f3d8605'); 866 } else if (tab_title === "proceeding_papers_published") { 867 showTabContent('#tab-53491c875c0910191ae'); 868 } else if (tab_title === "case_studies_published") { 869 showTabContent('#tab-3bcdffb395ef5e195be'); 870 } else if (tab_title === "book_published") { 871 showTabContent('#tab-eec21f9f459e19c320e'); 872 } else if (tab_title === "inhouse_journals") { 873 showTabContent('#tab-99e9b27e3268e18ccc4'); 874 } else if (tab_title === "s_team_research_conference") { 875 showTabContent('#tab-7eab01d6c72ab947d88'); 876 } else if (tab_title === "international_research_colloquium") { 877 showTabContent('#tab-643e2327e83349331cb'); 878 } else if (tab_title === "workshops_or_seminars") { 879 showTabContent('#tab-70a2e3698ffd2fef3e7'); 880 } else if (tab_title === "ethical_guidelines") { 881 showTabContent('#tab-6121573b537ec1f4ed4'); 882 } else if (tab_title === "clubs_and_committees") { 883 showTabContent('#tab-d60d9b060043d13f781'); 884 } else if (tab_title === "photo_gallery") { 885 showTabContent('#tab-b66a22160485c69adda'); 886 } else if (tab_title === "campus_tour") { 887 showTabContent('#tab-dcf9ee8a4b2983ade1f'); 888 } else if (tab_title === "capacity_development_and_skill_enhancement_initiatives") { 889 showTabContent('#tab-38735d122363ac8f566'); 890 } else if (tab_title === "events_at_scmhrd") { 891 showTabContent('#tab-1146e1d66ef0845380e'); 892 } else if (tab_title === "events_calendar") { 893 showTabContent('#tab-1146e1d66ef0845380e'); 894 $tabslis = jQuery('.tabs-hta7 .hta7'); 895 // Trigger click event on the second tab 896 $tabslis.eq(1).trigger('click'); 897 } else if (tab_title === "newsletters" || tab_title === "newsletters") { 898 899 showTabContent('#tab-97a5527133d73cad87e'); 900 } 901 else if (tab_title === "our_recruiters") { 902 903 showTabContent('#tab-9af36ba7a4f40d6c26b'); 904 } else if (tab_title === "visiting_faculty_profile" || tab_title === "visiting_faculty_members") { 905 906 showTabContent('#tab-5ba401f34cef0ea068d'); 907 } 908 else if (tab_title === "faculty_awards") { 909 910 showTabContent('#tab-58ddb7b2598240fd50e'); 911 } 912 else if (tab_title === "summer_placements") { 913 914 showTabContent('#tab-9b0fd709708ba058bee'); 915 } 916 else if (tab_title === "final_placements") { 917 918 showTabContent('#tab-ea281bf96136ff9e2cd'); 919 } else if (tab_title === "live_projects") { 920 921 showTabContent('#tab-f7bfd5f446e1840d5d7'); 922 } 923 else if (tab_title === "corporate_brochure") { 924 925 showTabContent('#tab-e242189ccdcf89b150c'); 926 } 927 928 else if (tab_title === "appreciation") { 929 930 showTabContent('#tab-4775642162f8448cb9b'); 931 } else if (tab_title === "student_achievements") { 932 933 showTabContent('#tab-f3d1716a13e1aadc993'); 934 } else if (tab_title === "internationalization_at_scmhrd") { 935 936 showTabContent('#tab-52e047f61425df41bc9'); 937 } else if (tab_title === "student_exchange_programme") { 938 939 showTabContent('#tab-0f3178da0d952785968'); 940 } else if (tab_title === "international_student") { 941 942 showTabContent('#tab-21f99bb54b3ba9b96e6'); 943 } 944 945 else if (tab_title === "cfa_university_affiliation") { 946 947 showTabContent('#tab-506a8fe04753dd13837'); 948 } else if (tab_title === "cmt_association_academic_partner") { 949 950 showTabContent('#tab-735f16246a32f1b96c4'); 951 } else if (tab_title === "international_faculty_insights") { 952 953 showTabContent('#tab-07fa4e14ad5933f5c7e'); 954 } else if (tab_title === "international_research_colloqium") { 955 956 showTabContent('#tab-643e2327e83349331cb'); 957 } else if (tab_title === "workshops_seminars") { 958 959 showTabContent('#tab-70a2e3698ffd2fef3e7'); 960 } else if (tab_title === "staff_scmhrd") { 961 962 showTabContent('#tab-ba068de572b21ef0d02'); 963 } else if (tab_title === "staff_scmhrd") { 964 965 showTabContent('#tab-ba068de572b21ef0d02'); 966 } else if (tab_title === "staff_scmhrd") { 967 968 showTabContent('#tab-ba068de572b21ef0d02'); 969 } 970 else if (tab_title === "placement_reports") { 971 972 showTabContent('#tab-2b2d229328499c3d274'); 973 } 974 else if (tab_title === "institute_committees") { 975 showTabContent('#tab-0d7d44f671b4405b097'); 976 } 977 var currentURLLink = window.location.href; 978 // Get the current URL 979 var currentURL = window.location.href; 980 981 // Extract the value after 'programmes/' but before the next '/' 982 var startIndex = currentURL.indexOf('/programmes/') + '/programmes/'.length; 983 var endIndex = currentURL.indexOf('/', startIndex); 984 var extractedValue = currentURL.substring(startIndex, endIndex); 985 986 if (extractedValue === 'mba-ba') { 987 if (tab_title === "overview") { 988 showTabContent('#tab-2e69514d615ed618d3a'); 989 } 990 else if (tab_title === "programme_structure") { 991 showTabContent('#tab-b00d6bd27bbb91dba95'); 992 } 993 else if (tab_title === "orientation_and_pedagogy") { 994 showTabContent('#tab-06e827266ae592c7a87'); 995 } 996 else if (tab_title === "eligibility_criteria") { 997 showTabContent('#tab-faa3ef715a84815ab30'); 998 } 999 else if (tab_title === "admission_schedule") { 1000 showTabContent('#tab-f71bb30f06bee2baff2'); 1001 } 1002 else if (tab_title === "fee_structure") { 1003 showTabContent('#tab-866492b1e2ce4049376'); 1004 } else if (tab_title === "rules_and_refund_of_fees") { 1005 showTabContent('#tab-077a84c3724a67f9018'); 1006 } else if (tab_title === "how_to_apply") { 1007 showTabContent('#tab-16435229ec4cb2532be'); 1008 } else if (tab_title === "academic_calender") { 1009 showTabContent('#tab-0cd3dfe4d3a74e80a34'); 1010 } 1011 if ( 1012 tab_title === "overview" || 1013 tab_title === "programme_structure" || 1014 tab_title === "orientation_and_pedagogy" || 1015 tab_title === "eligibility_criteria" || 1016 tab_title === "admission_schedule" || 1017 tab_title === "fee_structure" || 1018 tab_title === "rules_and_refund_of_fees" || 1019 tab_title === "how_to_apply" || 1020 tab_title === "academic_calender" 1021 ) { 1022 $('.MainNav ul li .two').addClass('active-header-class'); 1023 } 1024 } 1025 else if (extractedValue === 'objectives') { 1026 if (tab_title === "objectives") { 1027 showTabContent('#tab-52b2480af7af22aae1a'); 1028 } 1029 } 1030 else if (extractedValue === 'mba') { 1031 if (tab_title === "overview") {
1032 showTabContent('#tab-64ed4fa26d7582e0d45'); 1033 } 1034 else if (tab_title === "programme_structure") { 1035 showTabContent('#tab-f53487eb250d2dce65f'); 1036 } 1037 else if (tab_title === "orientation_and_pedagogy") { 1038 showTabContent('#tab-a715469363c2333736f'); 1039 } 1040 else if (tab_title === "eligibility_criteria") { 1041 showTabContent('#tab-d6431ea45208003187b'); 1042 } 1043 else if (tab_title === "admission_schedule") { 1044 showTabContent('#tab-dac09a6f54ce0a1d1e1'); 1045 } 1046 1047 else if (tab_title === "fee_structure") { 1048 showTabContent('#tab-112de9f0ad19e80037d'); 1049 } else if (tab_title === "rules_and_refund_of_fees") { 1050 showTabContent('#tab-45af765ce6c97292bd5'); 1051 } else if (tab_title === "how_to_apply") { 1052 showTabContent('#tab-bfa72b50e7a0514d5ec'); 1053 } else if (tab_title === "academic_calender") { 1054 showTabContent('#tab-7fbf9a4494d28c0c455'); 1055 } 1056 if ( 1057 tab_title === "overview" || 1058 tab_title === "programme_structure" || 1059 tab_title === "orientation_and_pedagogy" || 1060 tab_title === "eligibility_criteria" || 1061 tab_title === "admission_schedule" || 1062 tab_title === "fee_structure" || 1063 tab_title === "rules_and_refund_of_fees" || 1064 tab_title === "how_to_apply" || 1065 tab_title === "academic_calender" 1066 ) { 1067 $('.MainNav ul li .two').addClass('active-header-class'); 1068 } 1069 } 1070 else if (extractedValue === 'mba-idm') { 1071 if (tab_title === "overview") { 1072 showTabContent('#tab-0a275fc1871c36f3c96'); 1073 } 1074 else if (tab_title === "programme_structure") { 1075 showTabContent('#tab-8254a149a0ebffb2c6e'); 1076 } 1077 else if (tab_title === "orientation_and_pedagogy") { 1078 showTabContent('#tab-5f8f3c34b5cb5855434'); 1079 } 1080 else if (tab_title === "eligibility_criteria") { 1081 showTabContent('#tab-e21963e8989ad9f6174'); 1082 } 1083 else if (tab_title === "admission_schedule") { 1084 showTabContent('#tab-baff7586a43a071ccff'); 1085 } 1086 1087 else if (tab_title === "fee_structure") { 1088 showTabContent('#tab-650a2ed58fa033949cd'); 1089 } else if (tab_title === "rules_and_refund_of_fees") { 1090 showTabContent('#tab-b55116dc8263ffe4f2d'); 1091 } else if (tab_title === "how_to_apply") { 1092 showTabContent('#tab-9d38adea8131a644a8d'); 1093 } else if (tab_title === "academic_calender") { 1094 showTabContent('#tab-ddfd5984c45d58f7240'); 1095 } 1096 if ( 1097 tab_title === "overview" || 1098 tab_title === "programme_structure" || 1099 tab_title === "orientation_and_pedagogy" || 1100 tab_title === "eligibility_criteria" || 1101 tab_title === "admission_schedule" || 1102 tab_title === "fee_structure" || 1103 tab_title === "rules_and_refund_of_fees" || 1104 tab_title === "how_to_apply" || 1105 tab_title === "academic_calender" 1106 ) { 1107 $('.MainNav ul li .two').addClass('active-header-class'); 1108 } 1109 } 1110 else if (extractedValue === 'mba-executive') { 1111 if (tab_title === "overview") { 1112 showTabContent('#tab-f4e25512235fc1a7a20'); 1113 } 1114 else if (tab_title === "programme_structure") { 1115 showTabContent('#tab-14b3be74b7db44a9ba0'); 1116 } 1117 else if (tab_title === "orientation_and_pedagogy") { 1118 showTabContent('#tab-9c5c5d2c1f87fdfacd0'); 1119 } 1120 else if (tab_title === "eligibility_criteria") { 1121 showTabContent('#tab-c2fa3c9de6468392066'); 1122 } 1123 else if (tab_title === "admission_schedule") { 1124 showTabContent('#tab-d8daba4ac06ead2f5f0'); 1125 } 1126 1127 else if (tab_title === "fee_structure") { 1128 showTabContent('#tab-c24446abb75496d8fc0'); 1129 } else if (tab_title === "rules_and_refund_of_fees") { 1130 showTabContent('#tab-613a2670dce2ec33cfd'); 1131 } else if (tab_title === "how_to_apply") { 1132 showTabContent('#tab-d2e275f235582e68ba6'); 1133 } else if (tab_title === "academic_calender") { 1134 showTabContent('#tab-47aac31eeca6fc0fd74'); 1135 } 1136 if ( 1137 tab_title === "overview" || 1138 tab_title === "programme_structure" || 1139 tab_title === "orientation_and_pedagogy" || 1140 tab_title === "eligibility_criteria" || 1141 tab_title === "admission_schedule" || 1142 tab_title === "fee_structure" || 1143 tab_title === "rules_and_refund_of_fees" || 1144 tab_title === "how_to_apply" || 1145 tab_title === "academic_calender" 1146 ) { 1147 $('.MainNav ul li .two').addClass('active-header-class'); 1148 } 1149 } 1150 else if (extractedValue === 'accomplishments-accolades') { 1151 if (tab_title === 'appreciation') { 1152 showTabContent('#tab-4775642162f8448cb9b'); 1153 1154 } 1155 } 1156 if (tab_title === 's-team' || tab_title === 'steam' || tab_title === 's_team') { 1157 window.open('https://scmhrdteam.scmhrd.edu/', '_blank'); 1158 } 1159 1160 if (tab_title === 'siu_committee') { 1161 window.open('https://siu.edu.in/symbiosis-committee.php', '_blank'); 1162 1163 } 1164 //Now for making header tab active 1165 if (tab_title === 'advisory_board' || tab_title === 'director_scmhrd' || tab_title === 'directors_message' || tab_title === 'learning_resourses' 1166 || tab_title === 'leadership' || tab_title === 'iqac' || tab_title === 'accreditation') { 1167 $('.MainNav ul li .one').addClass('active-header-class'); 1168 } 1169 if ( 1170 tab_title === 'research_project' || 1171 tab_title === 'journal_papers_published' || 1172 tab_title === 'book_chapters_published' || 1173 tab_title === 'proceeding_papers_published' || 1174 tab_title === 'case_studies_published' || 1175 tab_title === 'book_published' || 1176 tab_title === 'inhouse_journals' || 1177 tab_title === 'international_research_colloqium' || 1178 tab_title === 'workshops_or_seminars' || 1179 tab_title === 'ethical_guidelines' 1180 ) { 1181 $('.MainNav ul li .three').addClass('active-header-class'); 1182 1183 } 1184 if ( 1185 tab_title === "clubs_and_committees" || 1186 tab_title === "photo_gallery" || 1187 tab_title === "campus_tour" || 1188 tab_title === "capacity_development_and_skill_enhancement_initiatives" || 1189 tab_title === "events_at_scmhrd" || 1190 tab_title === "events_calendar" || 1191 tab_title === "newsletters" 1192 ) { 1193 $('.MainNav ul li .four').addClass('active-header-class'); 1194 1195 } 1196 if ( 1197 tab_title === "our_recruiters" || 1198 tab_title === "placement_reports" || 1199 tab_title === "industry_interaction" || 1200 tab_title === "student_support" || 1201 tab_title === "career_assessment_and_guidance" || 1202 tab_title === "placement_overview" 1203 1204 ) { 1205 $('.MainNav ul li .six').addClass('active-header-class'); 1206 } 1207 // if ( 1208 // tab_title === "rankings_and_accreditation" || 1209 // tab_title === "appreciation" || 1210 // tab_title === "student_achievements" 1211 // ) { 1212 // $('.mobile-menu li a:first-child').addClass('active-hamburger-header-class'); 1213 // } 1214}); 1215jQuery(document).ready(function ($) { 1216 $('.tab-link').on('click', function (e) { 1217 e.preventDefault(); 1218 1219 var tab = $(this).attr('href');
1219 // Assuming $(this) refers to the anchor element 1220 var tabId = tab.substring(5); // Extracts the text after 'tab-' 1221 1222 // Select the first anchor element with the specified href attribute using the formatted tab ID 1223 var tabText = $('a[href="#tab-' + tabId + '"]:first').text().trim(); // Trim spaces from tabText 1224 1225 // Replace spaces with underscores in tabText 1226 var formattedTabText = tabText.replace(/,/g, '').replace(/-/g, '').replace(/\s+/g, '_').replace(/'|"/g, '').replace(/\//g, ' ').replace(/&/g, 'and').toLowerCase(); 1227 1228 var currentURL = window.location.href; 1229 if (currentURL.includes('?tab=')) { 1230 // Remove '?tab=' along with its value from the URL 1231 var updatedURL = currentURL.replace(/(\?|&)tab=[^&]+/, ''); 1232 1233 // Remove trailing '?' if it exists at the end of the URL 1234 updatedURL = updatedURL.replace(/\?$/, ''); 1235 1236 // Update the URL without '?tab=' and its value 1237 history.replaceState(null, null, updatedURL); 1238 } 1239 1240 // Extract only the hash part from the URL and remove ?tab= if present 1241 var hashIndex = tab.indexOf('#'); 1242 if (hashIndex !== -1) { 1243 tab = tab.substring(hashIndex); // Include only the hash part 1244 1245 // Remove ?tab= if present in the hash part 1246 tab = tab.replace('?tab=', '#'); 1247 } 1248 1249 var tabCode = "?tab=" + formattedTabText; 1250 // Use AJAX to fetch content for the selected tab 1251 $.ajax({ 1252 url: tab, 1253 success: function (data) { 1254 // Replace content inside a specific container 1255 $('.tab-content-container').html(data); 1256 // Update the URL with only the hash part (without ?tab=) 1257 history.pushState(null, null, tabCode); 1258 } 1259 }); 1260 }); 1261}); 1262 1263document.addEventListener('wpcf7mailsent', function (event) { 1264 1265 var formId = event.detail.contactFormId; 1266 if (formId == "3116") { 1267 // console.log("INSIDE FORM"); 1268 1269 1270 var data_dict = {} 1271 var inputs = event.detail.inputs; 1272 // console.log("AA", inputs); 1273 data_dict['first_name'] = inputs[0].value 1274 data_dict['email'] = inputs[1].value 1275 data_dict['phone'] = inputs[2].value 1276 1277 data_dict['utm_source'] = inputs[3].value 1278 data_dict['utm_medium'] = inputs[4].value 1279 data_dict['utm_campaign'] = inputs[5].value 1280 1281 1282 // console.log('OG', data_dict); 1283 jQuery.ajax({ 1284 type: "POST", 1285 1286 url: 'https://formanalytica.com/api/v1/user/business_user/submit_lead/', 1287 headers: { 1288 'dmtpv-id': 'scmhrd_enquiry_form_reg_2023' 1289 }, 1290 data: JSON.stringify(data_dict), 1291 contentType: "application/json", 1292 success: function (result) { 1293 // console.log("BB", result) 1294 }, 1295 1296 1297 error: function (result) { 1298 // console.log("AA", result) 1299 } 1300 }); 1301 } 1302}, false); 1303 1304 1305 1306function showTab(tabId) { 1307 // Get all tab content elements 1308 var tabContents = document.getElementsByClassName('tab-pane2'); 1309 1310 // Hide all tab content elements 1311 for (var i = 0; i < tabContents.length; i++) { 1312 tabContents[i].classList.remove('active'); 1313 } 1314 1315 // Show the selected tab content 1316 var selectedTab = document.getElementById(tabId); 1317 if (selectedTab) { 1318 selectedTab.classList.add('active'); 1319 } 1320}; 1321 1322function getSpecificSlugFromUrl(url) { 1323 // Remove protocol and domain 1324 let path = new URL(url).pathname; 1325 1326 // Split the path by "/" 1327 let pathParts = path.split('/'); 1328 1329 // Find the index of "programmes" in the path 1330 let programmesIndex = pathParts.indexOf("programmes"); 1331 1332 if (programmesIndex !== -1 && programmesIndex < pathParts.length - 1) { 1333 // Get the slug after "programmes" 1334 let slug = pathParts[programmesIndex + 1]; 1335 1336 // Return the slug 1337 return slug; 1338 } else { 1339 return null; // "programmes" not found in the path or no slug after it 1340 } 1341} 1342 1343// Fetch the URL of the current page 1344let currentUrl = window.location.href; 1345 1346// Get the specific slug from the current URL 1347let specificSlug = getSpecificSlugFromUrl(currentUrl); 1348 1349console.log("Specific Slug: " + specificSlug); 1350 1351// If specificSlug is 'mba', display the tab with id 'mbaTab' 1352// if (specificSlug === 'mba') { 1353// document.getElementById('fusion-tab-peo').style.display = 'block'; 1354// } 1355// else{ 1356// document.getElementById('fusion-tab-peo').style.display = 'none'; 1357// } 1358// 1359document.addEventListener("DOMContentLoaded", function () { 1360 const accordionButtons = document.querySelectorAll(".eqd-accordion__button"); 1361 1362 accordionButtons.forEach(button => { 1363 button.addEventListener("click", function () { 1364 const isExpanded = button.getAttribute("aria-expanded") === "true"; 1365 const contentId = button.getAttribute("aria-controls"); 1366 const content = document.getElementById(contentId); 1367 1368 // Collapse all accordions 1369 accordionButtons.forEach(btn => { 1370 const contentToHide = document.getElementById(btn.getAttribute("aria-controls")); 1371 btn.setAttribute("aria-expanded", "false"); 1372 if (contentToHide) { 1373 contentToHide.setAttribute("hidden", ""); 1374 } 1375 }); 1376 1377 // If the clicked accordion was not expanded, expand it 1378 if (!isExpanded) { 1379 button.setAttribute("aria-expanded", "true"); 1380 content.removeAttribute("hidden"); 1381 } 1382 }); 1383 }); 1384}); 1385 1386// // Grab ?tab= parameter from URL
1387// const urlParams = new URLSearchParams(window.location.search); 1388// const tabParam = urlParams.get("tab"); 1389 1390// if (tabParam) { 1391// // Find the tab <a> that points to the correct hash ID 1392// const tabLink = document.querySelector('.fusion-tabs li a[href="#' + tabParam + '"]'); 1393 1394// if (tabLink) { 1395// tabLink.click(); // Simulate click to open tab 1396// // Optional: scroll into view 1397// document.querySelector('.fusion-tabs').scrollIntoView({ behavior: 'smooth' }); 1398// } 1399// }
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.