1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function($,Drupal,drupalSettings){var formId=drupalSettings.hawk.course_navigator.formId;var ajaxCB=drupalSettings.hawk.course_navigator.changeCallback;var selects=$(formId).find('select');selects.each(function(key,select){$(select).change(function(event){var request={};selects.each(function(key,select){request[select.name]=select.value;});request['langcode']=$("html").attr("xml:lang");$.post(ajaxCB,request,function(data,status){result=data[0];selects.each(function(index,selectItem){var selectedOptionValue=selectItem.options[selectItem.selectedIndex].value;var defaultOptionText=$(selectItem.options).filter('[value="all"]').text();var options=result[selectItem.id];var optionsHTML='';if(!options)return;if(selectedOptionValue==='all')optionsHTML='<option value="all" selected>'+defaultOptionText+'</option>';else optionsHTML='<option value="all">'+defaultOptionText+'</option>';for(var key in options){if(!options.hasOwnProperty(key))return;if(selectedOptionValue===key)optionsHTML+='<option value="'+key+'" selected>'+options[key]+'</option>';else optionsHTML+='<option value="'+key+'">'+options[key]+'</option>';}selectItem.innerHTML=optionsHTML;});});});});})(jQuery,Drupal,drupalSettings);; 3(function($,Drupal){'use strict';Drupal.behaviors.tooltipAjaxCloseFunctions={attach:function(context,settings){$(once('tooltipAjaxCloseFunctions','a.glossary-link',context)).each(function(i,ajaxLink){const $linkElement=$(ajaxLink);let isAccordion=false;$linkElement.parents().each(function(i,parent){if($(parent).hasClass('accordion__panel'))isAccordion=true;});if(isAccordion)return;const elementSettings={url:$linkElement.attr("href"),event:'mouseover',progress:false,element:ajaxLink,prevent:'click'};const tooltipAjaxObject=Drupal.ajax(elementSettings);tooltipAjaxObject.commands.insert=function(ajax,response){$('.glossary-tooltip').unwrap().remove();const link_id=$linkElement.attr("data-id");$linkElement.wrap(`<span class="glossary-link-wrap" id="${link_id}"></span>`);$linkElement.after('<div class="glossary-tooltip"></div>');$linkElement.next().html(response.data);let link_wrap=$(`#${link_id}`);link_wrap.mouseleave(function(){closeTooltip();});$(`#${link_id} .glossary-tooltip-close`).click(function(){closeTooltip();});function closeTooltip(){$(`#${link_id} .glossary-tooltip`).unwrap().remove();}let windowWidth=$(document).width();if(windowWidth>=600&&windowWidth<=1400&&link_wrap){let linkLeft=$linkElement.offset().left;let linkRight=windowWidth-(linkLeft+$linkElement.outerWidth());let tooltipX=0;if(windowWidth>=600&&windowWidth<1000&&linkRight<315){tooltipX=linkRight-315;$(`#${link_id} .glossary-tooltip`).css('left',`${tooltipX}px`);}else if(windowWidth>=1000&&windowWidth<1200&&linkRight<395)tooltipX=linkRight-395;else{if(windowWidth>=1200&&linkRight<408)tooltipX=linkRight-408;}$(`#${link_id} .glossary-tooltip`).css('left',`${tooltipX}px`);}};});}};})(jQuery,Drupal);;
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.