1const ua = navigator.userAgent; 2const is_Android = /Android/.test(ua); 3const is_iPad = /iPad/.test(ua); 4const is_iPhone = /iPhone/.test(ua); 5const is_iPod = /iPod/.test(ua); 6const is_iOS = is_iPad || is_iPhone || is_iPod; 7const is_Touch = is_iOS || is_Android; 8 9$('#G-SELECT-LANG').each(function () { 10 const $me = $(this), event = is_Touch ? 'touchstart' : 'click'; 11 const objWidth = $me.width(); 12 const objHeight = $('li:first', $me).outerHeight(); 13 14 if($('#header').hasClass('--fixed')) { 15 $me.css({minWidth:objWidth, minHeight:objHeight}) 16 } 17 $me.addClass('s-init'); 18 $me.find('a').on(event, function (e) { 19 if (!$me.hasClass('open')) { 20 $me.addClass('open'); 21 $(document).unbind(event).one(event, function () { 22 $me.removeClass('open'); 23 }); 24 return false; 25 } 26 else { 27 if ($(this).closest('li').index() == 0) { 28 $me.removeClass('open'); 29 return false; 30 } 31 } 32 e.stopPropagation(); 33 }); 34});
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.