PageSourceSearch

https://www.eprice.com.tw/js/news/search.trigger.js?1790917749

js eprice.com.tw collected 2026-10-02 05:09:32 UTC 1,760 bytes, 70 lines download raw bytes

1$(function(){
2	
3	/* 2015.06.02 新增 */
4	$('#news-manu-search .manu-search').bind('click', function(e){
5		e.preventDefault();
6		var _m = $('#smanu').val();
7
8		var $p = $('#sprod_id').first();
9		
10		if ( parseInt(_m, 10) == 0 ) {
11			$.fn.show_alert_dialog("請選擇廠牌");
12			return false;
13		}
14		
15		if ( parseInt($p.val(), 10) == 0 ) {
16			var _u = '/news';
17			_u += ( _m == 0 )? '' : '/' + _m;
18			_u += '/all/1/';
19
20			location.href = _u;
21			return false;
22		}
23		
24		$p = $p.children(':selected').first();
25		var _u = '/' + $p.data('lib') + '/review/c01-p' + $p.val() + '-' + $p.data('nameurl') + '/';
26		
27		location.href = _u;
28		
29	});
30
31	$('#smanu').bind('change', function(e){
32		$m = $(this);
33		$p = $('#sprod_id').first();
34		$p.find('option').remove();
35		
36		if ( parseInt($m.val(), 10) == 0 ) {
37			$p.append("<option value=\"0\" data-lib=\"\">型號不拘</option>");
38			return false;
39		}
40		
41		var args = {
42			'type': $m.val(),
43			'csrf': $.gv.csrf
44		};
45
46		$.ajax({
47			url: '/ajax/news/get_name_of_manu.php',
48			type: 'post',
49			dataType: 'xml',
50			data: $.param(args),
51			timeout: 5000,
52			success: function (data) {
53				var _code = $(data).find('code').first().text();
54				var _msg = $(data).find('msg').first().text();
55				if ( _code == '1' ) {
56					$(data).find('prod').each(function(index, element) {
57						var _prod_id = $(element).find('prod_id').first().text();
58						var _lib = $(element).find('lib').first().text();
59						var _name = $(element).find('name').first().text();
60						var _nameurl = $(element).find('nameurl').first().text();
61               	        $p.append("<option value=\"" + _prod_id + "\" data-lib=\"" + _lib + "\" data-nameurl=\"" + _nameurl + "\">" + _name + "</option>");
62                   	});
63				}
64			}
65		});
66		
67	});
68	
69	
70});

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.