1jQuery(document).ready(function($){ 2 jQuery(Faceted.Events).bind(Faceted.Events.AJAX_QUERY_SUCCESS, function(evt){ 3 var value = $("#c0 option:selected").text(); 4 $("h1.documentFirstHeading #taxonomy_term").text(value); 5 6 $("#seo-description").load('@@taxonomy_description?taxonomy_term=' + $("#c0 option:selected").val()); 7 8 var page_title = $(document).prop('title'); 9 var begin_taxonomy_title = page_title.indexOf(':'); 10 if (begin_taxonomy_title == -1) return; 11 var end_taxonomy_title = page_title.indexOf('â'); 12 var last_taxonomy = page_title.substring(begin_taxonomy_title + 2, end_taxonomy_title - 1); 13 var new_title = page_title.replace(last_taxonomy, value); 14 $(document).prop('title', new_title); 15 }); 16}); 17 18if(require === undefined){ 19 require = function(reqs, torun){ 20 'use strict'; 21 return torun(window.jQuery); 22 }; 23} 24 25require([ 26 'jquery', 27], function($) { 28 'use strict'; 29 30 $.fn.toggleAttr = function(attr, attr1, attr2) { 31 return this.each(function() { 32 var self = $(this); 33 if (self.attr(attr) == attr1) 34 self.attr(attr, attr2); 35 else 36 self.attr(attr, attr1); 37 }); 38 }; 39 40 $(document).click(function(event) { 41 var nav = $('nav.action'); 42 if(!$(event.target).closest(nav).length) { 43 jQuery(nav).children('ul.actionMenu').removeClass('activated').addClass('deactivated'); 44 jQuery(nav).children('ul.actionMenu').find('.actionMenuHeader').attr('aria-expanded', 'false'); 45 jQuery(nav).children('ul.actionMenu').find('.actionMenuContent').attr('aria-hidden', 'true'); 46 } 47 }); 48 49 function toggleMenuHandler(event) { 50 // swap between activated and deactivated 51 jQuery(this).siblings().removeClass('activated').addClass('deactivated'); 52 jQuery(this).siblings().find('.actionMenuHeader').attr('aria-expanded', 'false'); 53 jQuery(this).siblings().find('.actionMenuContent').attr('aria-hidden', 'true'); 54 jQuery(this).toggleClass('deactivated activated'); 55 jQuery(this).find('.actionMenuHeader').toggleAttr('aria-expanded', 'true', 'false'); 56 jQuery(this).find('.actionMenuContent').toggleAttr('aria-hidden', 'true', 'false'); 57 } 58 59 function initializeMenus() { 60 // add toggle function to header links 61 jQuery('ul.actionMenu') 62 .click(toggleMenuHandler); 63 } 64 65 jQuery(initializeMenus); 66 67});
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.