PageSourceSearch

https://www.hinlim.com/catalog/view/javascript/opentheme/ocquickview/ocquickview.js

js hinlim.com collected 2026-09-24 13:23:10 UTC 1,355 bytes, 47 lines download raw bytes

1//<![CDATA[
2$(window).load(function () {
3	ocquickview.initQuickViewContainer();
4});
5
6var ocquickview = {
7	'initQuickViewContainer' : function () {
8		$('body').append('<div class="quickview-container"></div>');
9		$('div.quickview-container').load('index.php?route=product/ocquickview/appendcontainer');
10	},
11
12	'appendCloseFrameLink' : function () {
13		$('div#quickview-content').prepend("<a href='javascript:void(0);' class='a-qv-close' onclick='ocquickview.closeQVFrame()'>Close</a>");
14	},
15
16	'closeQVFrame' : function () {
17		$('#quickview-bg-block').hide();
18    	$('.quickview-load-img').hide();
19    	$('div#quickview-content').hide(600).html('');
20	},
21
22	'ajaxView'	: function (url) {
23		if(url.search('route=product/product') != -1) {
24			url = url.replace('route=product/product', 'route=product/ocquickview');
25		} else {
26			url = 'index.php?route=product/ocquickview/seoview&ourl=' + url;
27		}
28
29		$.ajax({
30			url 		: url,
31			type		: 'get',
32			beforeSend	: function() {
33				$('#quickview-bg-block').show();
34				$('.quickview-load-img').show();
35			},
36			success		: function(json) {
37				if(json['success'] == true) {
38					$('.quickview-load-img').hide();
39					$('#quickview-content').html(json['html']);
40					ocquickview.appendCloseFrameLink();
41					$('#quickview-content').show(600);
42				}
43			}
44		});
45	}
46};
47//]]>

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.