PageSourceSearch

https://treatyourself.biz/wp-content/themes/brandcastle/js/brandcastle.js?ver=366799d62ae0180ed97ef7aaddc623aa

js treatyourself.biz collected 2026-10-10 02:37:11 UTC 1,753 bytes, 59 lines download raw bytes

1$ = jQuery.noConflict();
2
3$(document).ready( function() {
4	/*
5	* Clicking the print recipe link
6	*/
7	$('#recipe-print').click( function(e) {
8		e.preventDefault()
9	});
10	
11	$('#products-sidebar .category-title').click( function(e) {
12		e.preventDefault();
13		
14		$('#products-sidebar .products-list').slideUp( function() {
15			$(this).removeClass('active');
16		});
17		$(this).siblings('.products-list').slideDown();
18	});
19	
20	if( $('#brands').attr('data-brand') )
21	{
22		$('#brands li.' + $('#brands').attr('data-brand') ).addClass('menu-active');
23		$('#brands li.' + $('#brands').attr('data-brand') ).append('<span class="active-border">');
24	}
25	
26	$("a[href='#see-all-recipes']").click(function(e) {
27		e.preventDefault();
28		$('#brand-products-list').slideDown(700);
29		$('html, body').animate({
30			scrollTop: $('#brand-products-list').offset().top - 265
31		}, 700);
32		
33		$.post(ajax_object.ajax_url, {
34				action : 'brand_save_session',
35				pagination : 'ahahah'
36			}, function(data) {
37				//alert( data );
38			}
39		);
40	});
41
42	if ( $('.bc-header-static-page-title h2 p').size() ) {
43		var h2title = $('.bc-header-static-page-title h2 p').text();
44		$('.bc-header-static-page-title h2').html( h2title )
45	}
46
47	
48});
49
50$(window).on('load', function() {
51	if( $('.content-left .recipe-ingredients').outerHeight() + $('.content-left .recipe-thumbnail').outerHeight() > $('.content-right.recipe-cooking-method').outerHeight() )
52	{
53		$('.content-right.recipe-cooking-method').outerHeight( $('.content-left .recipe-ingredients').outerHeight() + $('.content-left .recipe-thumbnail').outerHeight() );
54	} 
55	else 
56	{
57		$('.content-left .recipe-ingredients').outerHeight( $('.content-right.recipe-cooking-method').outerHeight() - $('.content-left .recipe-thumbnail').outerHeight() );
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.