PageSourceSearch

https://grain.su/t/v372/images/shop_easing.js

js grain.su collected 2026-09-29 18:12:56 UTC 619 bytes, 27 lines download raw bytes

1$(function() {
2	var prod = $('div[id^=tovar_card]');
3	var img = prod.find('a.highslide img');
4	var pos = img.offset();
5	var pos_target = $('#cart_total').offset();
6	var bd = $('body');
7	prod.find(':submit').click(function() {
8		var i = img.clone().css({
9			position: 'absolute',
10			display: 'none',
11			'z-index': 100
12		});
13		i.attr('src', img.attr('scrolls'));
14		bd.append(i);
15		i.css({
16			left: pos.left,
17			top: pos.top,
18			display: 'block'
19		}).animate({
20			left: pos_target.left - i.width() / 2,
21			top: pos_target.top,
22			'opacity': 0
23		}, 1000, function() {
24			i.remove();	
25		});
26	});
27})

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.