PageSourceSearch

https://www.koreaittimes.com/script/resizePhoto.js?ver=11

js koreaittimes.com collected 2026-10-02 04:17:04 UTC 1,038 bytes, 34 lines download raw bytes

1/*
22017. 05 04 SJW
3
4기존 리사이즈 하는 소스를 다 삭제하고..
5간단히 컨테이너 가로값보다 이미지 원래 가로값이 클경우 버튼클래스 추가하고 클릭이벤트 주기
6*/
7
8function resizePhoto() {	
9
10	var $_container = $('#article-view-content-div');
11	var articleViewDivWidth = $_container.width();
12	
13	$_container.find('img').each(function(e){
14		if($(this).closest('figure').length) {
15			var ViewimageObj = new Image();
16			var $_thisImgObj = $(this);
17			ViewimageObj.src = $(this).attr("src");
18			ViewimageObj.onload = function() {
19				imageWidth = this.width;
20				if(articleViewDivWidth <= imageWidth) {
21					$_thisImgObj.closest('figure').addClass('bigsize');
22				}
23			};
24
25		}
26	});	
27
28	$_container.on('click', 'figure.bigsize', function(e){
29		$('<form action="/news/userArticlePhoto.html" method="POST"><input type="hidden" name="src" value="'+$(this).find('img').attr('src')+'"></form>').appendTo('body').submit();
30
31		//var src = $(this).find('img').attr('src');
32		//top.location.href = src;
33	});
34}

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.