1jQuery(document).ready(function ($) { 2 if ($('.individual-strategy-section')[0] || $('.anchors__cclim')[0]) { } else { 3 $('select').each(function () { 4 var $this = $(this), selectOptions = $(this).children('option').length; 5 6 $this.addClass('hide-select'); 7 $this.wrap('<div class="select"></div>'); 8 $this.after('<div class="custom-select" tabindex="0"></div>'); 9 10 var $customSelect = $this.next('div.custom-select'); 11 $customSelect.text($this.children('option').eq(0).text()); 12 13 var $optionlist = $('<ul />', { 14 'class': 'select-options' 15 }).insertAfter($customSelect); 16 17 for (var i = 1; i < selectOptions; i++) { 18 $('<li />', { 19 text: $this.children('option').eq(i).text(), 20 id: $this.children('option').eq(i).val() 21 }).appendTo($optionlist); 22 } 23 24 var $optionlistItems = $optionlist.children('li'); 25 26 $customSelect.click(function (e) { 27 e.stopPropagation(); 28 $('div.custom-select.active').not(this).each(function () { 29 $(this).removeClass('active').next('ul.select-options').hide(); 30 }); 31 $(this).toggleClass('active').next('ul.select-options').slideToggle(); 32 }); 33 34 $optionlistItems.click(function (e) { 35 e.stopPropagation(); 36 $customSelect.text($(this).text()).removeClass('active'); 37 $this.val($(this).attr('rel')); 38 $optionlist.hide(); 39 }); 40 41 $(document).click(function () { 42 $customSelect.removeClass('active'); 43 $optionlist.hide(); 44 }); 45 }); 46 47 $('.selecttwo--hide').parent('.select').hide(); 48 } 49});
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.