PageSourceSearch

https://www.children.org.il/wp-content/themes/TheFox/js/custom_woo_js.js?ver=1788854608

js children.org.il collected 2026-10-02 10:30:43 UTC 2,230 bytes, 65 lines download raw bytes

1jQuery.noConflict();
2
3
4jQuery(document).ready(function($){
5	
6
7"use strict";
8
9$('body').on('added_to_cart', shopping_cart_dropdown_show);
10	$('body').on('click', '.custom_cart_button .add_to_cart_button', function()
11	{
12		var product = $(this).parents('.product:eq(0)').addClass('adding_to_cart_working').removeClass('adding_to_cart_completed');
13	})
14
15	$('body').bind('added_to_cart', function()
16	{
17		$('.adding_to_cart_working').removeClass('adding_to_cart_working').addClass('adding_to_cart_completed');
18	});
19var timeout;
20
21var productToAdd;
22
23//notification
24$('body').on('click','.custom_cart_button .add_to_cart_button', function(){
25	productToAdd = $(this).parents('li').find('h3').text();
26	$('#header_container .cart-notification span.item-name').html(productToAdd);
27	$('#top_bar .cart-notification span.item-name').html(productToAdd);
28	//if($('.cart-menu-wrap').hasClass('first-load')) $('.cart-menu-wrap').removeClass('first-load').addClass('static');
29});
30
31
32function shopping_cart_dropdown_show(e) {
33		
34		clearTimeout(timeout);
35		
36		if(!$('.widget_shopping_cart_content .cart_list .empty').length && $('.widget_shopping_cart_content .cart_list').length > 0 && typeof e.type != 'undefined' ) {
37			//before cart has slide in
38			if(!$('#header_container .cart-notification').is(':visible')) {
39				$('#header_container .cart-notification').fadeIn(400);				
40				$('#header_container .cart-notification').addClass('notification_on');
41			} else {
42				$('#header_container .cart-notification').show();
43			}
44			if(!$('#top_bar  .cart-notification').is(':visible')) {
45				$('#top_bar  .cart-notification').fadeIn(400);				
46				$('#top_bar  .cart-notification').addClass('notification_on');
47			} else {
48				$('#top_bar  .cart-notification').show();
49			}
50			timeout = setTimeout(hideCart,2700);
51
52			$('.cart-menu a, .widget_shopping_cart a').addClass('no-ajaxy');
53		}
54}
55
56function hideCart() {
57	$('#header_container .cart-notification').removeClass('notification_on');
58	$('#header_container .cart-notification').stop(true,true).fadeOut();
59	
60	$('#top_bar .cart-notification').removeClass('notification_on');
61	$('#top_bar .cart-notification').stop(true,true).fadeOut();
62}
63	
64
65});

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.