1jQuery(document).ready(function () { 2 var _alphabets = jQuery('.alphabet ul li > a'); 3 var _contentRows = jQuery('#alphasort tbody tr'); 4 var sl = 1; 5 jQuery('.alphabet ul li > a:first').addClass('active'); 6 _contentRows.hide(); 7 8 jQuery('#dummytr').show(); 9 _contentRows.each(function (i) { 10 var _cellTexta = jQuery(this).children('td').eq(1).text().toUpperCase(); 11 if (RegExp('^' + 'A').test(_cellTexta)) { 12 jQuery(this).show(); 13 jQuery(this).children('td').eq(0).text(sl); 14 sl += 1; 15 } 16 }), 17 _alphabets.click(function () { 18 var _letter = jQuery(this), 19 _text = jQuery(this).text(), 20 _count = 1; 21 22 _alphabets.removeClass('active'); 23 _letter.addClass('active'); 24 console.log(_contentRows); 25 26 var activeLetter = _letter.html(); 27 _contentRows.hide(); 28 jQuery('#dummytr').show(); 29 _contentRows.each(function (i) { 30 var _cellText = jQuery(this).children('td').eq(1).text().toUpperCase(); 31 console.log(_cellText); 32 if (RegExp('^' + _text).test(_cellText)) { 33 jQuery(this).fadeIn(400); 34 jQuery(this).children('td').eq(0).text(_count); 35 _count += 1; 36 } 37 if (activeLetter == 'ALL') { 38 _contentRows.show(); 39 } 40 }); 41 }); 42 43 /* faculty view more button function */ 44 45 $activetab = ''; 46 47 jQuery('#v-pills-tab button').on('click', function (e) { 48 e.preventDefault(); 49 //console.log(this); 50 var activetpID = jQuery(this).attr('id'); 51 var databs = jQuery(this).attr('data-bs-target'); 52 var getID = databs.trim(); 53 //console.log(getID); 54 jQuery('#v-pills-tab button').each(function (n) { 55 if (jQuery(this).attr('id') == activetpID) { 56 jQuery(this).addClass('active'); 57 } else { 58 jQuery(this).removeClass('active'); 59 } 60 }); 61 62 jQuery('#v-pills-tabContent .tab-pane').each(function (d) { 63 var showID = jQuery(this).attr('id'); 64 // console.log(showID); 65 if (showID == getID) { 66 jQuery(this).addClass('show active'); 67 } else { 68 jQuery(this).removeClass('show active'); 69 } 70 //console.log(jQuery(this).addClass('show active')); 71 }); 72 //jQuery(this).tab('show') 73 // jQuery('#v-pills-tabContent ') 74 }); 75 76 /* language display function 10-07-2023 */ 77 78 jQuery('.language-switcher-language-url .links').each(function () { 79 //console.log(this); 80 81 var lang = jQuery(this).find('.is-active').html(); 82 //console.log(lang); 83 if (typeof lang == undefined) { 84 //console.log(this); 85 } else if (typeof lang != undefined) { 86 jQuery(this).find('.is-active a').css('display', 'none'); 87 } 88 }); 89 90 /* language function completed*/ 91 92 $('table.table').wrap('<div class="table-responsive" />'); 93 94 $('.path-news-press-releases .more-link') 95 .parents('.view-header') 96 .addClass('d-none'); 97 $('.path-news-press-releases .more-link').appendTo( 98 '.block-page-title-block .title.page-title' 99 ); 100 101 $('.path-news-press-releases .view-content .views-row').each(function () { 102 $(this).children('.views-field').wrapAll('<div />'); 103 }); 104 105 /* new news/press release - 27-03-2024 */ 106 107 $('.path-new-news-press-release .more-link') 108 .parents('.view-header') 109 .addClass('d-none'); 110 $('.path-new-news-press-release .more-link').appendTo( 111 '.block-page-title-block .title.page-title' 112 ); 113 114 $('.path-new-news-press-release .view-content .views-row').each(function () { 115 $(this).children('.views-field').wrapAll('<div />'); 116 }); 117 118 119 /*------*/ 120 121 122 /* onclick function to get tab id to pass argument - 12-09-2023 */ 123 124 /* 125 jQuery('ul .custom_tab_pills li').click(function(){ 126 127 console.log(this); 128 console.log('Testing#####' +$(this).attrib('id')); 129 130 }); 131 */ 132 133 jQuery('#pills-tab').on('click', '.nav-link', function (event) { 134 var elementid = this.id; 135 //console.log(elementid); 136 137 //console.log("####newurl" + $(location).attr('href')+"/?q="+elementid); 138 139 //console.log($('ul li .nav-link').find('.active')); 140 }); 141 142 /*--- 12-09-2023 ---*/ 143 144 // 22-09-2023 145 jQuery('.mobileMenu > a[data-bs-toggle="offcanvas"]').addClass('menu_trigger').html('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 20"><path d="M2,4h24c1.1,0,2-0.9,2-2s-0.9-2-2-2H2C0.9,0,0,0.9,0,2S0.9,4,2,4z M26,8H2c-1.1,0-2,0.9-2,2s0.9,2,2,2h24c1.1,0,2-0.9,2-2 S27.1,8,26,8z M26,16H2c-1.1,0-2,0.9-2,2s0.9,2,2,2h24c1.1,0,2-0.9,2-2S27.1,16,26,16z"/></svg>'); 146 147 /* var menuOffcanvas = document.getElementById('offcanvasRight2'); 148 menuOffcanvas.addEventListener('shown.bs.offcanvas', function () { 149 jQuery('#menuAccordion').accordion({ 150 collapsible: true 151 }); 152 }); */ 153 // 22-09-2023 154 155 // 25-09-2023 156 jQuery('.mobile_menu_link + i').off().on('click', function (e) { 157 e.preventDefault(); 158 $(this).parent('span').next('.mobile_sub_menu').slideToggle(); 159 }); 160 // 25-09-2023 161}); 162 163function getSearchParams(k) { 164 var p = {}; 165 location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (s, k, v) { 166 p[k] = v; 167 }); 168 return k ? p[k] : p; 169} 170 171/* side menu script - 11-09-2023 */ 172jQuery(document).ready(function ($) { 173 var tabID = getSearchParams('q'); 174 $('#' + tabID).click(); 175 176 $('.menu-toggle').click(function (e) { 177 e.preventDefault(); 178 $(this).toggleClass('collapsed'); 179 $(this).next('ul').toggleClass('show'); 180 $(this) 181 .find('span') 182 .text(function (_, value) { 183 return value == '+' ? '-' : '+'; 184 }); 185 }); 186 187 $('.list-group-item a.active') 188 .parents('.list-group-item') 189 .children('.menu-toggle') 190 .trigger('click'); 191 192 $('#accordionFlushExample').each(function (e) { 193 //console.log('Testing left sidemenu' + $(this).html()); 194 195 //console.log('testing li class' + $('ul li').find('li.active').html()); 196 }); 197 198 /* span element hide - 26-09-2023*/ 199 200 $("#block-ranchi-views-block-new-slider-block-1").each(function() { 201 202 console.log("Testing block"+ $(this).html()); 203 204 }); 205 206 /*-----*/ 207}); 208 209/* --- end - 11-09-2023 ---- */
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.