PageSourceSearch

http://vitix.ru/templates/Default/js/shareTT.js

js vitix.ru collected 2026-10-04 23:55:12 UTC 3,384 bytes, 64 lines download raw bytes

1$(document).ready(function() {
2
3	// Виджет Социальных закладок (Test-Templates). v1.2
4	
5	var LinkTitle = $(document).attr('title');
6	var LinkUrl = window.location.href;
7	LinkTitle=encodeURIComponent(LinkTitle);
8	LinkUrl=encodeURIComponent(LinkUrl);
9	
10
11	// Вставка блока с закладками
12
13	$('.ttfav').append('<div id="tt_social"></div>');
14
15	var leftvar = (screen.width-600)/2;
16	var topvar = (screen.height-400)/2;
17
18	//Массив ссылок
19
20	var LinksItem = [
21
22	'http://vkontakte.ru/share.php?url='+LinkUrl+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Поделиться ВКонтакте"',
23
24	'http://www.facebook.com/sharer.php?u='+LinkUrl+'&t='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в Facebook"',
25
26	'http://twitter.com/share?text='+LinkTitle+'&url='+LinkUrl+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в Twitter"',
27
28	'http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl='+LinkUrl+'&cntitle='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в LiveInternet"',
29
30	'http://zakladki.yandex.ru/newlink.xml?url='+LinkUrl+'&name='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в Яндекс закладки"',
31
32	'http://connect.mail.ru/share?url='+LinkUrl+'&title='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в Мой Мир"',
33
34	'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl='+LinkUrl+'&title='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в Одноклассники"',
35
36	'http://www.livejournal.com/update.bml?event='+LinkUrl+'&subject='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в ЖЖ"',
37
38	'http://www.tumblr.com/share" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;" title="Добавить в ЖЖ"'
39
40	];
41
42	
43
44	var sdvig = 0;
45	var sdvig2 = 0;
46
47	
48
49	// Построение списка закладок
50
51	for (i=0; i<LinksItem.length; i++)
52	{
53
54		var getLinks = $('<a href="'+LinksItem[i]+' style="background: url(http://o2biz.ru/templates/Default/images/tt-fav.png) -'+sdvig+'px top  no-repeat;" target="_blank"></a>');
55
56		getLinks.appendTo("#tt_social");
57		var sdvig = sdvig + 26;
58		var sdvig2 = sdvig2 + 25;
59
60	}
61
62	
63
64});

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.