PageSourceSearch

https://inventions.org/wp-content/plugins/testimonial-basics/js/katb_mosaic_doc_ready.js?ver=4.5.0

js inventions.org collected 2026-10-02 12:59:00 UTC 1,636 bytes, 59 lines download raw bytes

1/*
2 * @package   Testimonial Basics WordPress Plugin
3 * @copyright Copyright (C) 2020 or later Kevin Archibald
4 * @license   http://www.gnu.org/licenses/quick-guide-gplv3.html  GNU Public License
5 * @author    Kevin Archibald <www.kevinsspace.ca/contact/>
6 * Testimonial Basics is distributed under the terms of the GNU GPL
7 */
8jQuery(document).ready(function(){
9		if( jQuery( '.katb_two_col_1' ).length > 0 ) {
10
11		var viewPort = katb_viewport();
12		var windowSize = viewPort['width'];
13		if (windowSize < 800) {
14			katb_unwrap_grid_two();
15		} else {
16			katb_wrap_grid_two();
17		}
18
19		jQuery(window).resize(function(event){
20
21			var viewPort = katb_viewport();
22			var windowSize = viewPort['width'];
23			if (windowSize < 800) {
24				katb_unwrap_grid_two();
25			} else {
26				katb_wrap_grid_two();
27			}
28
29		});
30
31	}
32
33	function katb_unwrap_grid_two(){
34		jQuery('.katb_two_wrap_all').unwrap();
35		jQuery('.katb_two_wrap_all').wrapAll('<div class="katb_two_col_1"></div>');
36		var $wrapper =	jQuery('.katb_two_col_1');
37		$wrapper.find('.katb_two_wrap_all').sort(function (a, b) {
38			return +a.dataset.order - +b.dataset.order;
39		})
40		.appendTo( $wrapper );
41	}
42
43	function katb_wrap_grid_two(){
44		jQuery('.katb_two_wrap_all').unwrap();
45		jQuery('.katb_two_wrap_1').wrapAll('<div class="katb_two_col_1"></div>');
46		jQuery('.katb_two_wrap_2').wrapAll('<div class="katb_two_col_2"></div>');
47
48	}
49
50	function katb_viewport() {
51	    var e = window, a = 'inner';
52	    if (!('innerWidth' in window )) {
53	        a = 'client';
54	        e = document.documentElement || document.body;
55	    }
56	    return { width : e[ a+'Width' ] , height : e[ a+'Height' ] };
57	}
58
59});

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.