PageSourceSearch

https://9264794.xn--p1ai/assets/templates/default1/js/city-select/city_select.js

js 9264794.xn--p1ai collected 2026-10-09 22:43:32 UTC 1,364 bytes, 105 lines download raw bytes

1(function($){
2
3var city_data, city = 'Москва';
4
5
6
7if (YMaps.location && YMaps.location.city != '') {
8
9    city = YMaps.location.city;
10
11}
12
13
14
15$(function(){
16
17	$('#city-select .city-link').click(function(){
18
19		if (!$.browser.msie) {
20
21			var pos_left = $('#city-select .city-link').offset().left;
22
23			$('.city-list').offset({left: pos_left}).fadeToggle(200);
24
25		} else {
26
27			$('.city-list').toggle(200);
28
29		}
30
31
32
33		return false;
34
35	});
36
37
38
39	$('.city-list .city-item').click(function(){
40
41		city = $(this).text();
42
43		$('#city-select .city-link').text(city);
44
45		$('#city-select .city-data').html(city_data[city]);
46
47
48
49		$('.city-list').hide();
50
51
52
53		return false;
54
55	});
56
57
58
59	$('.city-list').bind('mouseleave', function(){
60
61		$(this).fadeOut(100);
62
63	});
64
65
66
67	$('body').click(function(){
68
69		$('.city-list').hide();
70
71	});
72
73
74
75	$.getJSON('/assets/templates/default1/js/city-select/city_data.js',
76
77		function(data) {
78
79			city_data = data;
80
81			city = data[city] ? city : 'Москва';
82
83
84
85			// список городов
86
87			for (var cname in city_data) {
88
89				$('.city-list .city-item:first').clone(true).appendTo('.city-list').html(cname);
90
91			}
92
93
94
95			$('#city-select .city-link').text(city);
96
97			$('#city-select .city-data').html(city_data[city]);
98
99		}
100
101	)
102
103});
104
105})(jq);

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.