1/* 2 * jQuery throttle / debounce - v1.1 - 3/7/2010 3 * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 4 * 5 * Copyright (c) 2010 "Cowboy" Ben Alman 6 * Dual licensed under the MIT and GPL licenses. 7 * http://benalman.com/about/license/ 8 */ 9(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this); 10/* end jQuery throttle */ 11 12/* set prominent horizontal nav elements to equal width 13 * This MUST come after the offcanvas nav, because otherwise those 14 * nav items are affected, too. */ 15$('.global .nav--style-topnavigation') 16 .each(function() { 17 var widest = 0; 18 $(this).find('.nav__link--l1') 19 .each(function() { 20 widest = Math.max(widest, $(this).outerWidth()); 21 }) 22 .width(widest); 23 }); 24 25/* set height of dynamic teaser rows to equal 26 * We do this onload, b/c loading images might change the height 27 * afterwards, onresize b/c the container might change the inner height. */ 28$(window).on('load resize', $.throttle(200, function(evt) { 29 $('.bk--type-columncontent') 30 .each(function() { 31 var tallest = 0; 32 $("> div .teaser", this) 33 .each(function() { 34 $this = $(this); 35 if (evt.type === 'resize') { 36 $this.height('auto'); 37 } 38 tallest = Math.max(tallest, $this.outerHeight()); 39 }) 40 .height(tallest); 41 }); 42})); 43 44/* make overly wide tables responsive 45 * 46 * You can opt out with a class .fixed on the table. Otherwise we 47 * copy Bootstrap's approach (which is MIT licensed, 48 * https://github.com/twbs/bootstrap/blob/master/less/tables.less */ 49$('.app--detail table') 50 .each(function() { 51 var $table = $(this), n = 0; 52 if (! $table.is('.fixed') && $table.width() > $table.parent().width()) { 53 $table.wrap('<div class="table-responsive">'); 54 n += 1; 55 } 56 if (n) { 57 document.head.appendChild($('<style>').text('.table-responsive{min-height:.01%;overflow-x: auto}.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>table{margin-bottom:0}.table-responsive>table>*>tr>th,.table-responsive>table>*>tr>td{white-space:nowrap}')[0]); 58 } 59 }); 60 61 62 63$('.wrapper_ebene0 li').each(function(i) { 64 var className = $(this).attr('class'); 65 66 if ($('.nav__node--selected.' + className).length > 0) { 67 $(this).addClass('selected'); 68 } 69});
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.