1 2$(document).ready(function() { 3 $('ol.gray-bg').find('ol').addClass('gray-bg'); 4 $('ol.white-bg').find('ol').addClass('white-bg'); 5 $('ol.gray-bg-striped').find('ol').addClass('gray-bg-striped'); 6 $('ol.gray-bg').find('ul').addClass('gray-bg'); 7 $('ol.white-bg').find('ul').addClass('white-bg'); 8 $('ol.gray-bg-striped').find('ul').addClass('gray-bg-striped'); 9 $('ul.gray-bg').find('ol').addClass('gray-bg'); 10 $('ul.white-bg').find('ol').addClass('white-bg'); 11 $('ul.gray-bg-striped').find('ol').addClass('gray-bg-striped'); 12 $('ul.gray-bg').find('ul').addClass('gray-bg'); 13 $('ul.white-bg').find('ul').addClass('white-bg'); 14 $('ul.gray-bg-striped').find('ul').addClass('gray-bg-striped'); 15 16 $($('#accordion-categorymenu .panel-heading.active .menu-helper').attr('data-menu')).addClass('in'); 17 18 $('.powermail_form').attr('novalidate', 'novalidate'); 19 20 $('.navbar-uni-mobile').find('.toggle-icon').each(function() { // remove toggle icon if there is no ul down under 21 if ($(this).next().prop("tagName") != 'UL') { 22 $(this).hide(); 23 } 24 }); 25 26 $('.vertical-nav').find('a.level1.act').each(function() { // remove toggle icon if there is no ul down under 27 if ($(this).next().prop("tagName") == 'UL') { 28 $(this).addClass('sub'); 29 } 30 }); 31 32 $('.vertical-nav').find('h2').each(function() { // remove title if there is no ul down under 33 if ($(this).next().prop("tagName") != 'UL') { 34 $(this).hide(); 35 } 36 }); 37 38 $('#searchform').submit(function() { 39 var radioValue = $("input[name='chooseSearch']:checked").val(); 40 if (radioValue == 'search-staff') { 41 if ($('html').attr('lang')=='de') { 42 let action = 'https://ufind.univie.ac.at/de/search.html?filter=staff&query=' + $('#search').val(); 43 document.location.href = action; 44 return false; 45 } else { 46 let action = 'https://ufind.univie.ac.at/en/search.html?filter=staff&query=' + $('#search').val(); 47 document.location.href = action; 48 return false; 49 } 50 } 51 }); 52 53 /* firefox does not accept :has() */ 54 $('input[name=chooseSearch]').change(function(){ 55 $('#searchform').find('.radio-holder').toggleClass('active'); 56 }); 57 58 /* Close Quicklinks if clicked somewhere else */ 59 $(document).on("click", function(e){ 60 if( 61 $(e.target).closest("#ql-container").length == 0 && 62 $("a[data-top-id=quicklinks-top]").hasClass("open") 63 ){ 64 $("a[data-top-id=quicklinks-top]").toggleClass('open'); 65 $('#quicklinks-top').attr('style', 'display:none'); 66 } 67 }); 68 69 $('#mobilesearchform').submit(function() { 70 if($('#search_staff_mobile').hasClass('active')) { 71 if ($('html').attr('lang')=='de') { 72 document.location.href = 'http://ufind.univie.ac.at/de/search.html?filter=staff&query='+$('#search-mobile').val(); 73 } else { 74 document.location.href = 'http://ufind.univie.ac.at/en/search.html?filter=staff&query='+$('#search-mobile').val(); 75 } 76 return false; 77 } 78 }); 79 80 $('.width-100-remove-height').attr('height',''); 81 $('.width-100-remove-height').attr('width', '100%'); 82 83 $('#breadcrumb-opener').on('click', function(e) { 84 $('.meta-breadcrumb').removeClass('hidden'); 85 $('#breadcrumb-opener').parent().hide(); 86 }); 87 88 89 $('.nav-tabs-search a').click(function(e) { 90 $(this).parent().parent().find('li').removeClass('active'); 91 $(this).parent().addClass('active'); 92 e.stopPropagation(); 93 }); 94 95 /* Focus input in search field */ 96 $(function () { 97 $('#open-search').click(function () { 98 setTimeout(function(){$('#search').focus();},0); 99 }); 100 $('#search-web a').click(function () { 101 setTimeout(function(){$('#search').focus();},0); 102 }); 103 $('#search_staff a').click(function () { 104 setTimeout(function(){$('#search').focus();},0); 105 }); 106 $('.dropdown input[type=text]').click(function(e){ 107 e.stopPropagation(); 108 }); 109 }); 110 111 /* show indicators if more than one picture */ 112 if ($('#caption-1').attr('id') == 'caption-1') { 113 $('.carousel-indicators').show(); 114 } 115 116 /* irfaq - Modern FAQs */ 117 var plus = 'tx-irfaq-toggle-plus'; 118 var minus = 'tx-irfaq-toggle-minus' 119 var title = '.tx-irfaq-toggle .tx-irfaq-dynheader'; 120 var content = '.tx-irfaq-toggle .tx-irfaq-dynans'; 121 var effectDuration = 250; 122 123 $(title).click(function() { 124 if($(this).next().css('display')=='block') { 125 $(this).addClass(plus).removeClass(minus); 126 }else { 127 $(this).addClass(minus).removeClass(plus); 128 } 129 $(this).next().slideToggle(effectDuration); 130 return false;
131 }); 132 133 $('.tx-irfaq-toggle-all-show').click(function() { 134 $(this).parent().parent().find('.tx-irfaq-dynheader').addClass(minus).removeClass(plus); 135 $(this).parent().parent().find('.tx-irfaq-dynans').show(effectDuration); 136 return false; 137 }); 138 139 $('.tx-irfaq-toggle-all-hide').click(function() { 140 $(this).parent().parent().find('.tx-irfaq-dynheader').addClass(plus).removeClass(minus); 141 $(this).parent().parent().find('.tx-irfaq-dynans').hide(effectDuration); 142 return false; 143 }); 144 145 $('.tx-irfaq-pi1').each(function() { 146 if ($(this).find('.panel-irfaq').length==1) { 147 $(this).find('.tx-irfaq-pi1-buttons').addClass('hidden'); 148 } 149 }); 150 151 $('.tx-irfaq-toggle-show').click(function() { 152 var $details = $(this).parent().parent().find('details'); 153 $details.prop('open', true); 154 }); 155 156 $('.tx-irfaq-toggle-hide').click(function() { 157 var $details = $(this).parent().parent().find('details'); 158 $details.prop('open', false); 159 }); 160 /* irfaq - Modern FAQs */ 161 162 /* News-Events Calender, wrong iconv for März: */ 163 if ($('.month-convert').length) { 164 $('.month-convert').each(function() { 165 $(this).text($(this).text().replace("M�rz", "März")); 166 }); 167 } 168 169 $(':target').click(function(){ 170 $(':target').removeClass(':target'); 171 }); 172 173 $('#univiepersonal-searchstring').keyup(function() { 174 search = $(this).val().trim().toUpperCase(); 175 strclass = 'univiepersonal-odd'; 176 if (search == '') { 177 $('.univiepersonal-entry').each(function() { 178 $(this).show(); 179 if ($(this).hasClass('univiepersonal-odd')) { 180 $(this).removeClass('univiepersonal-odd'); 181 $(this).addClass(strclass); 182 } else if ($(this).hasClass('univiepersonal-even')) { 183 $(this).removeClass('univiepersonal-even'); 184 $(this).addClass(strclass); 185 } 186 if (strclass == 'univiepersonal-odd') { 187 strclass= 'univiepersonal-even'; 188 } else { 189 strclass = 'univiepersonal-odd'; 190 } 191 }); 192 } else { 193 $('.univiepersonal-entry').each(function() { 194 if ($(this).find('.pers-search').text().toUpperCase().indexOf(search)==-1) { 195 $(this).hide(); 196 } else { 197 $(this).show(); 198 if ($(this).hasClass('univiepersonal-odd')) { 199 $(this).removeClass('univiepersonal-odd'); 200 $(this).addClass(strclass); 201 } else if ($(this).hasClass('univiepersonal-even')) { 202 $(this).removeClass('univiepersonal-even'); 203 $(this).addClass(strclass); 204 } 205 if (strclass == 'univiepersonal-odd') { 206 strclass= 'univiepersonal-even'; 207 } else { 208 strclass = 'univiepersonal-odd'; 209 } 210 } 211 }); 212 } 213 }); 214 215 $('#table-searchstring').keyup(function() { 216 search = $(this).val().trim().toUpperCase(); 217 strclass = 'univiepersonal-odd'; 218 if (search == '') { 219 $('tr').each(function() { 220 $(this).show(); 221 }); 222 } else { 223 $('tr').each(function() { 224 if ($(this).find('td').text().toUpperCase().indexOf(search)==-1) { 225 $(this).hide(); 226 } else { 227 $(this).show(); 228 } 229 }); 230 } 231 }); 232 233 $('#pure-searchstring').keyup(function() { 234 search = $(this).val().trim().toUpperCase(); 235 if (search == '') { 236 $('.ucris').each(function() { 237 $(this).show(); 238 }); 239 $('.pager').show(); 240 } else { 241 $('.pager').hide(); 242 $('.ucris').each(function() { 243 if ($(this).text().toUpperCase().indexOf(search)==-1) { 244 $(this).hide(); 245 } else { 246 $(this).show(); 247 } 248 }); 249 } 250 }); 251 252 /* manipulate tooltip links and frames */
253 urlParams = new URLSearchParams(window.location.search); 254 if (urlParams.get('T') == 'frame') { 255 $('a').attr('target', '_top'); 256 } else { 257 if (!$('#device-md').is(':hidden')) { // load tooltip functionality only if it is a desktop size 258 $('.Tooltipp-Link').each(function() { 259 var link = $(this).attr('href'); 260 if (link.indexOf('?') != -1) { 261 link = link + '&T=frame'; 262 } else { 263 link = link + '?T=frame'; 264 } 265 $(this).append('<iframe class="tooltippdescription" src="' + link + '"></iframe>'); 266 }); 267 268 $(".Tooltipp-Link").mouseover(function(e) { 269 $(this).children(".tooltippdescription").show(); 270 pos = $(this).offset(); 271 pos.top = pos.top + 17; 272 $(this).children(".tooltippdescription").offset({top:e.pageY,left:e.pageX}); 273 }).mouseout(function() { 274 $(this).children(".tooltippdescription").hide(); 275 }); 276 } 277 } 278 279 /* for retina devices: */ 280 retinajs(); 281 282 //adjust content-height to sidebar 283 if (!$('#device-md').is(':hidden')) $('#content').attr('style', 'min-height: '+$('.sidebar').height()+'px'); 284 285 /* move reset button to submit button */ 286 $('.powermail_fieldwrap_submit .btns').prepend($('.powermail_fieldwrap_reset .btns').html()); 287 288 /* Confirmation page of powermail */ 289 $('#anchor-mail-content').focus(); 290 291}); 292 293/* Set image path for OpenStreetMap */ 294if(typeof OpenLayers !== 'undefined') 295{ 296 OpenLayers.ImgPath = "/fileadmin/templates/GLOBAL/EXT/openstreetmap/img/"; 297}
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.