PageSourceSearch

https://dialogos-philosophie.de/ext/board3/portal/styles/prosilver…uery.getscrollbarwidth.js?assets_version=26

js dialogos-philosophie.de collected 2026-10-02 00:35:14 UTC 740 bytes, 22 lines download raw bytes

1/*! Copyright (c) 2008 Brandon Aaron ([email protected] || http://brandonaaron.net)
2 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
3 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
4 */
5
6/**
7 * Gets the width of the OS scrollbar
8 */
9(function($) {
10	var scrollbarWidth = 0;
11	$.getScrollbarWidth = function() {
12		if ( !scrollbarWidth ) {
13			var $div = $('<div />')
14				.css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: -1000 })
15				.prependTo('body').append('<div />').find('div')
16				.css({ width: '100%', height: 200 });
17			scrollbarWidth = 100 - $div.width();
18			$div.parent().remove();
19		}
20		return scrollbarWidth;
21	};
22})(jQuery);

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.