PageSourceSearch

https://nmpolitics.net/index/wp-content/themes/Largo-master/homepa…&ver=280ed36915562269366ca897a94028b7

js nmpolitics.net collected 2026-10-02 10:04:52 UTC 1,022 bytes, 34 lines download raw bytes

1jQuery(document).ready(function($){
2
3	$('#view-format a').on( 'click', function() {
4		if ( $(this).hasClass('active') ) return;
5		new_style = $(this).data('style');
6		$.cookie('largo_homepage_style', new_style, { expires: 365, path: '/' });
7		$('#view-format a').removeClass('active');
8		$(this).addClass('active');
9		changeStyle( new_style );
10		return false;
11	});
12
13	//fetch the cookie if present
14	var largo_homepage_style = $.cookie('largo_homepage_style');
15	if ( largo_homepage_style ) {
16		$("#view-format a[data-style='"+largo_homepage_style+"']").trigger('click');
17	}
18
19	function changeStyle( style ) {
20		//show/hide stuff on the page based on the layout style
21		$('body').toggleClass('view-list');
22		switch ( style ) {
23			case "top":
24				$('#home-river:visible').fadeOut('fast');
25				$('.home-top, #home-secondary').filter(':hidden').slideDown('fast');
26				break;
27			case "list":
28				$('#home-river:hidden').fadeIn('fast');
29				$('.home-top, #home-secondary').filter(':visible').slideUp('fast');
30				break;
31		}
32	}
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.