PageSourceSearch

https://www.techbriefs.com/templates/tb_cmo_2017/js/custom.js

js techbriefs.com collected 2026-10-01 10:45:22 UTC 756 bytes, 29 lines download raw bytes

1//nav shrink
2$(window).scroll(function () {
3	if ($(document).scrollTop() > 50) {
4		$('nav').addClass('shrink');
5		$('.logolarge').addClass('tb-logo-closed');
6		$('.logosmall').removeClass('d-md-none');
7		$('.add').hide();
8	} else {
9		$('nav').removeClass('shrink');
10		$('.logosmall').addClass('d-md-none');
11		$('.logolarge').removeClass('tb-logo-closed');
12		$('.add').show();
13	}
14});
15//end nav shrink
16
17// add polyfill as suggested by claude to fix forgot login issue with comminity builder
18(function () {
19	function addTrim($) {
20		if ($ && typeof $.trim !== 'function') {
21			$.trim = function (s) {
22				return s == null ? '' : String(s).trim();
23			};
24		}
25	}
26
27	addTrim(window.jQuery);
28	addTrim(window.cbjQuery); // CB sometimes uses its own jQuery alias
29})();

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.